Template:postref

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(Usage: link to related template)
(this should correctly pass the site variable to the child (*crosses fingers*))
 
Line 1: Line 1:
-
{{#ifeq:{{{site|}}}||[[@StrongBadActual]] Tweet|[[@strongbadactual (Instagram)|@strongbadactual]] Instagram post}} ({{prs|{{{1|{{{ID}}}}}}|{{{2|{{{day}}}}}}|{{{3|{{{month}}}}}}|{{{4|{{{year}}}}}}|{{{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>

Current revision as of 13:58, 13 January 2021

@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
Personal tools