Template:postref
From Homestar Runner Wiki
(Difference between revisions)
Bleu Ninja (Talk | contribs) m (lowercase "tweet") |
Bleu Ninja (Talk | contribs) (Linking "posted" gives the impression that clicking that link will take you to the *post*, link platform instead to reduce ambiguity.) |
||
| Line 1: | Line 1: | ||
{{#if:{{{posted|}}}<!-- | {{#if:{{{posted|}}}<!-- | ||
-->|{{#switch:{{post-getType|{{{site|Twitter}}}}}<!-- /* choose target page and heading */ | -->|{{#switch:{{post-getType|{{{site|Twitter}}}}}<!-- /* choose target page and heading */ | ||
| - | -->|Instagram=[[@strongbadactual (Instagram)| | + | -->|Instagram=posted to [[@strongbadactual (Instagram)|Instagram]] <!-- |
| - | -->|ronginald=[[@ronginald| | + | -->|ronginald=posted to [[@ronginald|Twitter]]<!-- |
| - | -->|#default=[[@StrongBadActual| | + | -->|#default=posted to [[@StrongBadActual|Twitter]]<!-- |
-->}} on {{b}}<!-- | -->}} on {{b}}<!-- | ||
-->|{{#switch:{{post-getType|{{{site|Twitter}}}}}<!-- /* choose target page and heading */ | -->|{{#switch:{{post-getType|{{{site|Twitter}}}}}<!-- /* choose target page and heading */ | ||
Revision as of 05:22, 23 November 2024
@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 with the "posted" parameter:
{{postref|1254408772249845763|26|Apr|2020|posted=1}}
posted to Twitter on April 26, 2020
Or for Instagram posts:
{{postref|site=Instagram|BzWAeVkAAme|30|Jun|2019}}
@strongbadactual Instagram post (30 Jun 2019)
Or for @ronginald historical posts:
{{postref|site=ronginald|114395585209053184|15|Sep|2011}}
@ronginald tweet (15 Sep 2011)
See Also
- Template {{prs}} for shorter links
- Uses {{post-getType}} to determine post type.
