User:Stux/template-sandbox2

From Homestar Runner Wiki

< User:Stux(Difference between revisions)
Jump to: navigation, search
(cleanup documentation, I'll have to work on this later...)
(revert for now, don't need this page to show up in categories.)
 
Line 1: Line 1:
-
{{#ifeq:{{{1|}}}|#|<!--
+
<noinclude>PLACEHOLDER</noinclude>
-
  /* Handle Hashtag Links */
+
-
  -->{{#ifeq:{{{site|{{#ifeq:{{PAGENAME}}|@strongbadactual (Instagram)|Instagram|Twitter}}}}}|Instagram<!-- /* Instagram or Twitter? */
+
-
    -->|[[instagram:explore/tags/{{{2}}}/|#{{{2}}}]]<!-- /* Instagram */
+
-
    -->|[[Twitter:hashtag/{{{2}}}|#{{{2}}}]]<!-- /* Twitter */
+
-
-->}}<!-- /* end {{#ifeq:{{{site|... */
+
-
  /* Handle regular links */
+
-
  -->|[[{{{site|{{#ifeq:{{PAGENAME}}|@strongbadactual (Instagram)|Instagram|Twitter}}}}}:{{{1}}}{{#if:{{{2|}}}|/status/{{{2|}}}|}}|{{{3|@{{{1}}}}}}]]<!-- /* Hard to parse, hard to split... But the "site" portion is the same as "Instagram or Twitter" above! */
+
-
-->}}<!-- /* end {{#ifeq|{{{1|}}}... */
+
-
--><noinclude>
+
-
 
+
-
=== Usage ===
+
-
*<code>&#123;&#123;@|''username''|''Tweet ID''|''link text''|site=''site''}}</code>
+
-
*<code>&#123;&#123;@|''#''|''hashtag text''|site=''site''}}</code>
+
-
 
+
-
=== Examples ===
+
-
*<code>&#123;&#123;@|StrongBadActual}}</code> ''returns'' {{@|StrongBadActual}}
+
-
*<code>&#123;&#123;@|StrongBadActual|1349242412129017856|Tweet}}</code> ''returns'' {{@|StrongBadActual|1349242412129017856|Tweet}}
+
-
*<code>&#123;&#123;@|StrongBadActual|site=Instagram}}</code> ''returns'' {{@|StrongBadActual|site=Instagram}}
+
-
**This feature is incompatible with most other template parameters.
+
-
**On [[@strongbadactual (Instagram)]], the site defaults to Instagram. Elsewhere, it defaults to Twitter ([[@StrongBadActual]]).
+
-
**Only [[twitter:StrongBadActual|Twitter]] and [[instagram:strongbadactual|Instagram]] are supported.
+
-
**{{todo}} Planned but not implemented: [[twitch:StrongBadActual|Twitch]] support (see [[Social Media]])
+
-
**{{todo}} Future: [[@strongbadnofoolin.bsky.social]] (Bluesky) support
+
-
**{{todo}} Add a full set of examples to this page!
+
-
*<code>&#123;&#123;@|#|Trogday}}</code> ''returns'' {{@|#|Trogday}}
+
-
*<code>&#123;&#123;@|#|Trogday|site=Instagram}}</code> ''returns'' {{@|#|Trogday|site=Instagram}}
+
-
 
+
-
[[Category:Internal link templates|{{PAGENAME}}]]
+
-
[[Category:Toon Article Formatting Templates|{{PAGENAME}}]]
+
-
</noinclude>
+

Current revision as of 13:18, 9 June 2025

PLACEHOLDER

Personal tools