< User:Stux(Difference between revisions)
|
|
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>{{@|''username''|''Tweet ID''|''link text''|site=''site''}}</code>
| + | |
- | *<code>{{@|''#''|''hashtag text''|site=''site''}}</code>
| + | |
- | | + | |
- | === Examples ===
| + | |
- | *<code>{{@|StrongBadActual}}</code> ''returns'' {{@|StrongBadActual}}
| + | |
- | *<code>{{@|StrongBadActual|1349242412129017856|Tweet}}</code> ''returns'' {{@|StrongBadActual|1349242412129017856|Tweet}}
| + | |
- | *<code>{{@|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>{{@|#|Trogday}}</code> ''returns'' {{@|#|Trogday}}
| + | |
- | *<code>{{@|#|Trogday|site=Instagram}}</code> ''returns'' {{@|#|Trogday|site=Instagram}}
| + | |
- | | + | |
- | [[Category:Internal link templates|{{PAGENAME}}]]
| + | |
- | [[Category:Toon Article Formatting Templates|{{PAGENAME}}]]
| + | |
- | </noinclude> | + | |