Template:prs
From Homestar Runner Wiki
(Difference between revisions)
(→Usage: slightly better wording for example) |
m (format structure of the code (and switch to #if for alt)) |
||
Line 1: | Line 1: | ||
- | [[{{#ifeq:{{{site|}}}||@StrongBadActual Tweets {{{4|{{{year}}}}}}|@strongbadactual (Instagram)}}#{{{1|{{{ID}}}}}}|{{# | + | [[<!-- |
+ | -->{{#ifeq:{{{site|}}}|<!-- /* choose target page */ | ||
+ | -->|@StrongBadActual Tweets {{{4|{{{year}}}}}}<!-- | ||
+ | -->|@strongbadactual (Instagram)<!-- | ||
+ | -->}}<!-- | ||
+ | -->#{{{1|{{{ID}}}}}}<!-- /* target anchor */ | ||
+ | -->|{{#if:{{{alt|}}}<!-- /* link text */ | ||
+ | -->|{{{alt}}}<!-- | ||
+ | -->|{{{2|{{{day}}}}}} {{{3|{{{month}}}}}} {{{4|{{{year}}}}}}<!-- | ||
+ | -->}}<!-- | ||
+ | -->]]<noinclude> | ||
This template handles the short link portion of {{tl|postref}}. | This template handles the short link portion of {{tl|postref}}. |
Revision as of 21:26, 3 January 2023
[[@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:
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 is a tweet link}}
Produces the following result: