Template:TPVD-Platform: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
| MacOS = [[Image:Macosx.png|alt=MacOS]] | | MacOS = [[Image:Macosx.png|alt=MacOS]] | ||
| Linux = [[Image:Linux.png|alt=Linux]] | | Linux = [[Image:Linux.png|alt=Linux]] | ||
| Linux64 = [[Image:Linux64.png|alt=Linux 64bit]] | |||
| iPhone = [[Image:iPhone.png|alt=iPhone]] | | iPhone = [[Image:iPhone.png|alt=iPhone]] | ||
| Android = [[Image:Android.png|alt=Android]] | | Android = [[Image:Android.png|alt=Android]] | ||
| {{{1}}} | | {{{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}} | ||
| 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 06: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