Template:@

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(+cat)
(synchronize with sandbox)
 
Line 1: Line 1:
-
{{#ifeq:{{{1|}}}|#|{{#ifeq:{{{site|{{#ifeq:{{PAGENAME}}|@strongbadactual (Instagram)|Instagram|Twitter}}}}}|Instagram|[[instagram:explore/tags/{{{2}}}/|#{{{2}}}]]|[[Twitter:hashtag/{{{2}}}|#{{{2}}}]]}}<!--
+
{{#ifeq:{{{1|}}}|#|<!--
-
 
+
  /* Handle Hashtag Links */
-
-->|[[{{{site|{{#ifeq:{{PAGENAME}}|@strongbadactual (Instagram)|Instagram|Twitter}}}}}:{{{1}}}{{#if:{{{2|}}}|/status/{{{2|}}}|}}|{{{3|@{{{1}}}}}}]]}}<noinclude>
+
  -->{{#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 ===
=== Usage ===
Line 12: Line 19:
*<code>&#123;&#123;@|StrongBadActual|site=Instagram}}</code> ''returns'' {{@|StrongBadActual|site=Instagram}}
*<code>&#123;&#123;@|StrongBadActual|site=Instagram}}</code> ''returns'' {{@|StrongBadActual|site=Instagram}}
**This feature is incompatible with most other template parameters.
**This feature is incompatible with most other template parameters.
-
**On [[@strongbadactual (Instagram)]], the site defaults to Instagram. Elsewhere, it defaults to Twitter.
+
**On [[@strongbadactual (Instagram)]], the site defaults to Instagram. Elsewhere, it defaults to Twitter ([[@StrongBadActual]]).
-
**Only [[twitter:StrongBadActual|Twitter]], [[instagram:strongbadactual|Instagram]], and [[twitch:StrongBadActual|Twitch]] are supported.
+
**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}}</code> ''returns'' {{@|#|Trogday}}
*<code>&#123;&#123;@|#|Trogday|site=Instagram}}</code> ''returns'' {{@|#|Trogday|site=Instagram}}
*<code>&#123;&#123;@|#|Trogday|site=Instagram}}</code> ''returns'' {{@|#|Trogday|site=Instagram}}

Current revision as of 13:03, 9 June 2025

[[Twitter:{{{1}}}|@{{{1}}}]]

[edit] Usage

  • {{@|username|Tweet ID|link text|site=site}}
  • {{@|#|hashtag text|site=site}}

[edit] Examples

Personal tools