Difference between revisions of "Template:TPVD-Platform"
Jump to navigation
Jump to search
m |
m |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{1}}} | <includeonly>{{#switch: {{{1}}} | ||
| Windows = [[Image:Win32.png|alt=Windows]] | |||
| MacOS = [[Image:Macosx.png|alt=MacOS]] | |||
| Linux = [[Image:Linux.png|alt=Linux]] | |||
| Linux64 = [[Image:Linux64.png|alt=Linux 64bit]] | |||
| iPhone = [[Image:iPhone.png|alt=iPhone]] | |||
| Android = [[Image:Android.png|alt=Android]] | |||
}}{{ | | {{{1}}} | ||
}}{{#ifeq: {{{showtext|}}}| 1| {{{1}}}}}{{#if: {{{2|}}}| {{{2}}}}}</includeonly><noinclude> | |||
'''Displays the icon for the platform, optionally with the name and some additional text.''' | |||
<nowiki> | <nowiki> | ||
Line 14: | Line 17: | ||
{{TPVD-Platform|Linux}} | {{TPVD-Platform|Linux}} | ||
{{TPVD-Platform|Linux64}} | |||
{{TPVD-Platform|Linux|Debian}} | {{TPVD-Platform|Linux|Debian}} | ||
{{TPVD-Platform|iPhone|showtext=}} | {{TPVD-Platform|iPhone|showtext=1}} | ||
{{TPVD-Platform|Android}} | {{TPVD-Platform|Android}} | ||
Line 29: | Line 34: | ||
{{TPVD-Platform|Linux}} | {{TPVD-Platform|Linux}} | ||
{{TPVD-Platform|Linux64}} | |||
A second argument is just displayed as text | |||
{{TPVD-Platform|Linux|Debian}} | {{TPVD-Platform|Linux|Debian}} | ||
{{TPVD-Platform|iPhone|showtext=}} | To display the text name beside the icon, add <tt>showtext=1</tt> parameter | ||
{{TPVD-Platform|iPhone|showtext=1}} | |||
{{TPVD-Platform|Android}} | {{TPVD-Platform|Android}} | ||
Platforms not recognized by the template just display the name: | |||
{{TPVD-Platform|Something}} | {{TPVD-Platform|Something}} | ||
</noinclude> | </noinclude> |
Latest revision as of 05:05, 23 April 2013
Displays the icon for the platform, optionally with the name and some additional text.
{{TPVD-Platform|Windows}} {{TPVD-Platform|MacOS}} {{TPVD-Platform|Linux}} {{TPVD-Platform|Linux64}} {{TPVD-Platform|Linux|Debian}} {{TPVD-Platform|iPhone|showtext=1}} {{TPVD-Platform|Android}} {{TPVD-Platform|Something}}
A second argument is just displayed as text
To display the text name beside the icon, add showtext=1 parameter
Platforms not recognized by the template just display the name:
Something