Template:prs
From Homestar Runner Wiki
(Difference between revisions)
(add alt parameter if you want to use a different message, date parameters are not optional (tweets could be separated by month in the future for example)) |
(→Usage: slightly better wording for example) |
||
Line 20: | Line 20: | ||
If you want to use an alternate message: | If you want to use an alternate message: | ||
- | <code><nowiki>{{prs|1254408772249845763|26|Apr|2020|alt=this tweet link}}</nowiki></code> | + | <code><nowiki>{{prs|1254408772249845763|26|Apr|2020|alt=this is a tweet link}}</nowiki></code> |
Produces the following result: | Produces the following result: | ||
- | {{prs|1254408772249845763|26|Apr|2020|alt=this tweet link}} | + | {{prs|1254408772249845763|26|Apr|2020|alt=this is a tweet link}} |
[[Category:Internal link templates|{{PAGENAME}}]] | [[Category:Internal link templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 11:55, 15 November 2020
[[@StrongBadActual Tweets {{{year}}}#{{{ID}}}|{{{day}}} {{{month}}} {{{year}}}]]
This template handles the short link portion of {{postref}}.
Usage
{{prs|1254408772249845763|26|Apr|2020}}
Or with labelled parameters:
{{prs|ID=1254408772249845763|day=26|month=Apr|year=2020}}
Produces the following result:
Or for Instagram posts:
{{prs|site=Instagram|BzWAeVkAAme|30|Jun|2019}}
30 Jun 2019
If you want to use an alternate message:
{{prs|1254408772249845763|26|Apr|2020|alt=this is a tweet link}}
Produces the following result: