Template:postref
From Homestar Runner Wiki
(Difference between revisions)
(undo revision 793032; these parameter values are not functional values and may add confusion to those using the template) |
(move linking logic to prs template. Hopefully my shortened testing is sufficient!) |
||
Line 1: | Line 1: | ||
- | {{#ifeq:{{{site|}}}||[[@StrongBadActual]] Tweet|[[@strongbadactual (Instagram)|@strongbadactual]] Instagram post}} ( | + | {{#ifeq:{{{site|}}}||[[@StrongBadActual]] Tweet|[[@strongbadactual (Instagram)|@strongbadactual]] Instagram post}} ({{prs|{{{1|{{{ID}}}}}}|{{{2|{{{day}}}}}}|{{{3|{{{month}}}}}}|{{{4|{{{year}}}}}}|{{{site|}}}}})<noinclude> |
==Usage== | ==Usage== | ||
<code><nowiki>{{postref|1254408772249845763|26|Apr|2020}}</nowiki></code> | <code><nowiki>{{postref|1254408772249845763|26|Apr|2020}}</nowiki></code> |
Revision as of 11:43, 15 November 2020
@StrongBadActual Tweet ([[@StrongBadActual Tweets {{{year}}}#{{{ID}}}|{{{day}}} {{{month}}} {{{year}}}]])
Usage
{{postref|1254408772249845763|26|Apr|2020}}
Or with labelled parameters:
{{postref|ID=1254408772249845763|day=26|month=Apr|year=2020}}
Produces the following result:
@StrongBadActual tweet (26 Apr 2020)
Or for Instagram posts:
{{postref|site=Instagram|BzWAeVkAAme|30|Jun|2019}}
@strongbadactual Instagram post (30 Jun 2019)