Template:postref

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(New twitter formatting template I've been wanting to make for a while now)
(Instagram functionality and optional labels for quick typing)
Line 1: Line 1:
-
[[@StrongBadActual]] Tweet ([[@StrongBadActual Tweets {{{year}}}#{{{ID}}}|{{{day}}} {{{month}}} {{{year}}}]])<noinclude>
+
{{#ifeq:{{{site|}}}||[[@StrongBadActual]] Tweet|[[@strongbadactual (Instagram)|@strongbadactual]] Instagram post}} ([[{{#ifeq:{{{site|}}}||@StrongBadActual Tweets {{{4|{{{year}}}}}}|@strongbadactual (Instagram)}}#{{{1|{{{ID}}}}}}|{{{2|{{{day}}}}}} {{{3|{{{month}}}}}} {{{4|{{{year}}}}}}]])<noinclude>
 +
==Usage==
 +
<code><nowiki>{{twitterreference|1254408772249845763|26|Apr|2020}}</nowiki></code>
 +
 
 +
Or with labelled parameters:
 +
 
 +
<code><nowiki>{{twitterreference|ID=1254408772249845763|day=26|month=Apr|year=2020}}</nowiki></code>
 +
 
 +
Produces the following result:
 +
 
 +
{{twitterreference|ID=1254408772249845763|day=26|month=Apr|year=2020}}
 +
 
 +
Or for Instagram posts:
 +
 
 +
<code><nowiki>{{twitterreference|site=Instagram|BzWAeVkAAme|30|Jun|2019}}</nowiki></code><br>
 +
{{twitterreference|site=Instagram|BzWAeVkAAme|30|Jun|2019}}
 +
 
[[Category:Internal link templates|{{PAGENAME}}]]
[[Category:Internal link templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 22:14, 28 April 2020

@StrongBadActual Tweet ([[@StrongBadActual Tweets {{{year}}}#{{{ID}}}|{{{day}}} {{{month}}} {{{year}}}]])

Usage

{{twitterreference|1254408772249845763|26|Apr|2020}}

Or with labelled parameters:

{{twitterreference|ID=1254408772249845763|day=26|month=Apr|year=2020}}

Produces the following result:

@StrongBadActual tweet (26 Apr 2020)

Or for Instagram posts:

{{twitterreference|site=Instagram|BzWAeVkAAme|30|Jun|2019}}
@strongbadactual Instagram post (30 Jun 2019)

Personal tools