Template:postref
From Homestar Runner Wiki
(Difference between revisions)
(new template name) |
(default parameters) |
||
Line 1: | Line 1: | ||
- | {{#ifeq:{{{site|}}}||[[@StrongBadActual]] Tweet|[[@strongbadactual (Instagram)|@strongbadactual]] Instagram post}} ([[{{#ifeq:{{{site|}}}||@StrongBadActual Tweets {{{4|{{{year}}}}}}|@strongbadactual (Instagram)}}#{{{1|{{{ID}}}}}}|{{{2|{{{day}}}}}} {{{3|{{{month}}}}}} {{{4|{{{year}}}}}}]])<noinclude> | + | {{#ifeq:{{{site|}}}||[[@StrongBadActual]] Tweet|[[@strongbadactual (Instagram)|@strongbadactual]] Instagram post}} ([[{{#ifeq:{{{site|}}}||@StrongBadActual Tweets {{{4|{{{year|Month}}}}}}|@strongbadactual (Instagram)}}#{{{1|{{{ID|ID}}}}}}|{{{2|{{{day|Day}}}}}} {{{3|{{{month|Month}}}}}} {{{4|{{{year|Year}}}}}}]])<noinclude> |
==Usage== | ==Usage== | ||
<code><nowiki>{{postref|1254408772249845763|26|Apr|2020}}</nowiki></code> | <code><nowiki>{{postref|1254408772249845763|26|Apr|2020}}</nowiki></code> |
Revision as of 20:54, 5 September 2020
@StrongBadActual Tweet (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)