Difference between revisions of "Template:Twitter"
From Lolibrary Wiki
(Initial twitter link template) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{social url= | {{social | url=https://twitter.com/{{urlencode:{{{1}}}|PATH}} | display={{{1}}} | class=twitter}} | ||
<noinclude> | |||
{{Documentation|content= | |||
Provides a uniform way for embedding twitter links | |||
== Usage == | |||
{{Parameter names example | |||
| <!-- twitter username --> | |||
}} | |||
<syntaxhighlight lang="html" style="overflow: hidden; background: unset;"> | |||
{{Twitter | <!-- username -->}} | |||
</syntaxhighlight> | |||
{{Clear}} | |||
== Example == | |||
{{Twitter | twitter}} | |||
<syntaxhighlight lang="html" style="overflow: hidden; background: unset;"> | |||
{{Twitter | twitter}} | |||
</syntaxhighlight> | |||
}} | |||
<templatedata> | |||
{ | |||
"description": "Standardized twitter link", | |||
"params": { | |||
"1": { | |||
"label": "username", | |||
"description": "Twitter username", | |||
"type": "string" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> |