Template:postref
From Homestar Runner Wiki
(Instagram functionality and optional labels for quick typing) |
(Reduce template include size. See Template:post-getType documentation for more details.) |
||
| (includes 14 intermediate revisions) | |||
| Line 1: | Line 1: | ||
| - | {{# | + | {{#if:{{{posted|}}}<!-- |
| + | -->|{{#switch:{{post-getType|{{{site|Twitter}}}}}<!-- /* choose target page and heading */ | ||
| + | -->|I=posted to [[@strongbadactual (Instagram)|Instagram]] <!-- | ||
| + | -->|B=posted to [[@strongbadnofoolin.bsky.social|Bluesky]] <!-- | ||
| + | -->|r=posted to [[@ronginald|Twitter]]<!-- | ||
| + | -->|#default=posted to [[@StrongBadActual|Twitter]]<!-- | ||
| + | -->}} on {{b}}<!-- | ||
| + | -->|{{#switch:{{post-getType|{{{site|Twitter}}}}}<!-- /* choose target page and heading */ | ||
| + | -->|I=[[@strongbadactual (Instagram)|@strongbadactual]] Instagram post<!-- | ||
| + | -->|B=[[@strongbadnofoolin.bsky.social]] Bluesky post<!-- | ||
| + | -->|r=[[@ronginald]] tweet<!-- | ||
| + | -->|#default=[[@StrongBadActual]] tweet<!-- | ||
| + | -->}} (<!-- /* end {{#switch:}} */ | ||
| + | -->}}<!-- /* end {{#if:{{{posted|}}} */ | ||
| + | -->{{prs|{{{1|{{{ID}}}}}}|{{{2|{{{day}}}}}}|{{{3|{{{month}}}}}}|{{{4|{{{year}}}}}}|site={{{site|}}}|full={{{posted|}}}<!-- | ||
| + | -->}}{{#if:{{{posted|}}}||)}}<!-- /* posted does not use parenthesis around {{prs}} */ | ||
| + | --><noinclude> | ||
==Usage== | ==Usage== | ||
| - | <code><nowiki>{{ | + | <code><nowiki>{{postref|1254408772249845763|26|Apr|2020}}</nowiki></code> |
Or with labelled parameters: | Or with labelled parameters: | ||
| - | <code><nowiki>{{ | + | <code><nowiki>{{postref|ID=1254408772249845763|day=26|month=Apr|year=2020}}</nowiki></code> |
Produces the following result: | Produces the following result: | ||
| - | {{ | + | {{postref|ID=1254408772249845763|day=26|month=Apr|year=2020}} |
| + | |||
| + | Or with the "posted" parameter: | ||
| + | |||
| + | <code><nowiki>{{postref|1254408772249845763|26|Apr|2020|posted=1}}</nowiki></code><br> | ||
| + | {{postref|1254408772249845763|26|Apr|2020|posted=1}} | ||
Or for Instagram posts: | Or for Instagram posts: | ||
| - | <code><nowiki>{{ | + | <code><nowiki>{{postref|site=Instagram|BzWAeVkAAme|30|Jun|2019}}</nowiki></code><br> |
| - | {{ | + | {{postref|site=Instagram|BzWAeVkAAme|30|Jun|2019}} |
| + | |||
| + | Or for Bluesky posts: | ||
| + | |||
| + | <code><nowiki>{{postref|site=Bluesky|3lcqald3s5k2i|08|Dec|2024}}</nowiki></code><br> | ||
| + | {{postref|site=Bluesky|3lcqald3s5k2i|08|Dec|2024}} | ||
| + | |||
| + | Or for @ronginald historical posts: | ||
| + | |||
| + | <code><nowiki>{{postref|site=ronginald|114395585209053184|15|Sep|2011}}</nowiki></code><br> | ||
| + | {{postref|site=ronginald|114395585209053184|15|Sep|2011}} | ||
| + | |||
| + | ==See Also== | ||
| + | * Template {{tl|prs}} for shorter links | ||
| + | * Uses {{tl|post-getType}} to determine post type. (See documentation for abbreviated code values.) | ||
[[Category:Internal link templates|{{PAGENAME}}]] | [[Category:Internal link templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Current revision as of 15:22, 26 October 2025
@StrongBadActual tweet ([[@StrongBadActual Tweets {{{year}}}#{{{ID}}}|{{{day}}} {{{month}}} {{{year}}}]])
[edit] 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 Bluesky posts:
{{postref|site=Bluesky|3lcqald3s5k2i|08|Dec|2024}}
@strongbadnofoolin.bsky.social Bluesky post (08 Dec 2024)
Or for @ronginald historical posts:
{{postref|site=ronginald|114395585209053184|15|Sep|2011}}
@ronginald tweet (15 Sep 2011)
[edit] See Also
- Template {{prs}} for shorter links
- Uses {{post-getType}} to determine post type. (See documentation for abbreviated code values.)
