Template:prs
From Homestar Runner Wiki
(add full date format parameter) |
(add Bluesky support (for now, all posts are on the page but this might change in the future)) |
||
Line 2: | Line 2: | ||
-->{{#switch:{{post-getType|{{{site|Twitter}}}}}<!-- /* choose target page */ | -->{{#switch:{{post-getType|{{{site|Twitter}}}}}<!-- /* choose target page */ | ||
-->|Instagram=@strongbadactual (Instagram)<!-- | -->|Instagram=@strongbadactual (Instagram)<!-- | ||
+ | -->|Bluesky=@StrongBadNoFoolin.bsky.social<!-- | ||
-->|ronginald=@ronginald<!-- | -->|ronginald=@ronginald<!-- | ||
-->|#default=@StrongBadActual Tweets {{{4|{{{year}}}}}}<!-- | -->|#default=@StrongBadActual Tweets {{{4|{{{year}}}}}}<!-- | ||
Line 31: | Line 32: | ||
<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}} | ||
+ | |||
+ | Or for Bluesky posts: | ||
+ | |||
+ | <code><nowiki>{{prs|site=Bluesky|3lcqald3s5k2i|08|Dec|2024}}</nowiki></code><br> | ||
+ | {{prs|site=Bluesky|3lcqald3s5k2i|08|Dec|2024}} | ||
If you want to display the full date format: | If you want to display the full date format: |
Current revision as of 15:10, 8 December 2024
[[@StrongBadActual Tweets {{{year}}}#{{{ID}}}|{{{day}}} {{{month}}} {{{year}}}]]
This template handles the short link portion of {{postref}}. Uses {{post-getType}} to determine post type.
[edit] 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
Or for Bluesky posts:
{{prs|site=Bluesky|3lcqald3s5k2i|08|Dec|2024}}
08 Dec 2024
If you want to display the full date format:
{{prs|1254408772249845763|26|Apr|2020|full=1}}
Produces the following result:
If you want to use an alternate message:
{{prs|1254408772249845763|26|Apr|2020|alt=this is a tweet link}}
Produces the following result: