Template:prs
From Homestar Runner Wiki
(Difference between revisions)
(add support for ronginald links; use post-getType template to facilitate site name detection, but ensure twitter remains the default) |
(add full date format parameter) |
||
Line 8: | Line 8: | ||
-->|{{#if:{{{alt|}}}<!-- /* link text */ | -->|{{#if:{{{alt|}}}<!-- /* link text */ | ||
-->|{{{alt}}}<!-- | -->|{{{alt}}}<!-- | ||
- | -->|{{{2|{{{day}}}}}} {{{3|{{{month}}}}}} {{{4|{{{year}}}}}}<!-- | + | -->|{{#if:{{{full|}}}<!-- |
- | -->}}<!-- | + | -->|{{#time:F|{{{3|{{{month}}}}}}}} {{{2|{{{day}}}}}}, {{{4|{{{year}}}}}}<!-- |
+ | -->|{{{2|{{{day}}}}}} {{{3|{{{month}}}}}} {{{4|{{{year}}}}}}<!-- | ||
+ | -->}}<!-- /* end {{#if:{{{full|}}} */ | ||
+ | -->}}<!-- /* end {{#if:{{{alt|}}}*/ | ||
-->]]<noinclude> | -->]]<noinclude> | ||
Line 28: | Line 31: | ||
<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 display the full date format: | ||
+ | |||
+ | <code><nowiki>{{prs|1254408772249845763|26|Apr|2020|full=1}}</nowiki></code> | ||
+ | |||
+ | Produces the following result: | ||
+ | |||
+ | {{prs|1254408772249845763|26|Apr|2020|full=1}} | ||
If you want to use an alternate message: | If you want to use an alternate message: |
Revision as of 23:05, 8 January 2023
[[@StrongBadActual Tweets {{{year}}}#{{{ID}}}|{{{day}}} {{{month}}} {{{year}}}]]
This template handles the short link portion of {{postref}}. Uses {{post-getType}} to determine post type.
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 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: