Template:prs

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(working towards separating the actual item linking from the overall standardized formatting (for one-off links))
(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))
Line 1: Line 1:
-
[[{{#ifeq:{{{site|}}}||@StrongBadActual Tweets {{{4|{{{year}}}}}}|@strongbadactual (Instagram)}}#{{{1|{{{ID}}}}}}|{{{2|{{{day}}}}}} {{{3|{{{month}}}}}} {{{4|{{{year}}}}}}]]<noinclude>
+
[[{{#ifeq:{{{site|}}}||@StrongBadActual Tweets {{{4|{{{year}}}}}}|@strongbadactual (Instagram)}}#{{{1|{{{ID}}}}}}|{{#ifeq:{{{alt|}}}||{{{2|{{{day}}}}}} {{{3|{{{month}}}}}} {{{4|{{{year}}}}}}|{{{alt}}}}}]]<noinclude>
This template handles the short link portion of {{tl|postref}}.
This template handles the short link portion of {{tl|postref}}.
Line 17: Line 17:
<code><nowiki>{{prs|site=Instagram|BzWAeVkAAme|30|Jun|2019}}</nowiki></code><br>
<code><nowiki>{{prs|site=Instagram|BzWAeVkAAme|30|Jun|2019}}</nowiki></code><br>
{{prs|site=Instagram|BzWAeVkAAme|30|Jun|2019}}
{{prs|site=Instagram|BzWAeVkAAme|30|Jun|2019}}
 +
 +
If you want to use an alternate message:
 +
 +
<code><nowiki>{{prs|1254408772249845763|26|Apr|2020|alt=this tweet link}}</nowiki></code>
 +
 +
Produces the following result:
 +
 +
{{prs|1254408772249845763|26|Apr|2020|alt=this tweet link}}
[[Category:Internal link templates|{{PAGENAME}}]]
[[Category:Internal link templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 11:54, 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:

26 Apr 2020

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 tweet link}}

Produces the following result:

this tweet link

Personal tools