Template:postref
From Homestar Runner Wiki
(Difference between revisions)
(this should correctly pass the site variable to the child (*crosses fingers*)) |
m (format structure of the code) |
||
Line 1: | Line 1: | ||
- | {{#ifeq:{{{site|}}}||[[@StrongBadActual]] Tweet|[[@strongbadactual (Instagram)|@strongbadactual]] Instagram post}} ({{prs|{{{1|{{{ID}}}}}}|{{{2|{{{day}}}}}}|{{{3|{{{month}}}}}}|{{{4|{{{year}}}}}}|site={{{site|}}}}})<noinclude> | + | {{#ifeq:{{{site|}}}|<!-- |
+ | -->|[[@StrongBadActual]] Tweet<!-- | ||
+ | -->|[[@strongbadactual (Instagram)|@strongbadactual]] Instagram post<!-- | ||
+ | -->}} (<!-- | ||
+ | -->{{prs|{{{1|{{{ID}}}}}}|{{{2|{{{day}}}}}}|{{{3|{{{month}}}}}}|{{{4|{{{year}}}}}}|site={{{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 21:41, 3 January 2023
@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)
See Also
- Template {{prs}} for shorter links