Template:Twitter/doc/: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Changed redirect target from Template:Twitter/Doc to Template:Twitter/doc)
Tag: Redirect target changed
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Doc/subpage}}
#redirect [[Template:Twitter/doc]]
<!-- Please place categories where indicated at the bottom of this page.) -->
Link to Twitter (currently rebranding to {{twitter}}) website/post (tweets).
 
== Parameters and Examples ==
{| class="standard-table" style="width:100%"
! Parameter
! Description
! Example
! Preview
|-
| style="text-align:center" | No Parameters
| Creates a link to '''X''' website.
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{l4dwiki}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{twitter}} }}
|-
| style="text-align:center" | {{Code| {{param}} }}
| Links to the X post (Tweets).
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{twitter|DOTA2/status/1655246184683028480}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{twitter|DOTA2/status/1655246184683028480}} }}
|-
| style="text-align:center" | {{Code| {{param|2}} }}
| Set the name of the link.
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{twitter|DOTA2/status/1655246184683028480|@DOTA2 - The International 2023}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{twitter|DOTA2/status/1655246184683028480|@DOTA2 - The International 2023}} }}
|-
| style="text-align:center" | {{Code| {{param|icon}} }}
| Hide/shows the icon.<br>Values: {{code|show}} (default), {{code|hide}}
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{twitter|icon=hide}}</nowiki>}}
| style="padding:.2em .5em" | {{Capsule| {{twitter|icon=hide}} }}
|-
|}
 
== See Also ==
{{External link templates}}
 
{{Doc/Sandbox other|
<!-- Categories below this line, please -->
 
}}

Latest revision as of 04:15, 29 August 2023