Difference between revisions of "Template:TPVD-Platform"

From Second Life Wiki
Jump to navigation Jump to search
m (Created page with '<includeonly>{{#switch: {{{1}}} | Windows = alt=Windows{{{#if: {{{showtext}}}| Windows}}} | MacOS = alt=MacOS{{{#if: {{{showtext...')
 
m
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}}
<includeonly>{{#switch: {{{1}}}
| Windows = [[Image:Win32.png|alt=Windows]]{{{#if: {{{showtext}}}|&nbsp;Windows}}}
| Windows = [[Image:Win32.png|alt=Windows]]
| MacOS  = [[Image:Macosx.png|alt=MacOS]]{{{#if: {{{showtext}}}|&nbsp;MacOS}}}
| MacOS  = [[Image:Macosx.png|alt=MacOS]]
| Linux  = [[Image:Linux.png|alt=Linux]]{{{#if: {{{showtext}}}|&nbsp;Linux}}}
| Linux  = [[Image:Linux.png|alt=Linux]]
| iPhone  = [[Image:iPhone.png|alt=iPhone]]{{{#if: {{{showtext}}}|&nbsp;iPhone}}}
| Linux64 = [[Image:Linux64.png|alt=Linux 64bit]]
| Android = [[Image:Android.png|alt=Android]]{{{#if: {{{showtext}}}|&nbsp;Android}}}
| iPhone  = [[Image:iPhone.png|alt=iPhone]]
| default {{{1}}}
| Android = [[Image:Android.png|alt=Android]]
}}{{{2|}}}</includeonly><noinclude>
| {{{1}}}
}}{{#ifeq: {{{showtext|}}}| 1|&nbsp;{{{1}}}}}{{#if: {{{2|}}}|&nbsp;{{{2}}}}}</includeonly><noinclude>
 
'''Displays the icon for the platform, optionally with the name and some additional text.'''


  <nowiki>
  <nowiki>
  {{TPVD-Platform|Windows}}
  {{TPVD-Platform|Windows}}
  {{TPVD-Platform|MacOS}}
  {{TPVD-Platform|MacOS}}
  {{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}}
  {{TPVD-Platform|Something}}
  {{TPVD-Platform|Something}}
  </nowiki>
  </nowiki>


{{TPVD-Platform|Windows}}
{{TPVD-Platform|Windows}}
{{TPVD-Platform|MacOS}}
{{TPVD-Platform|MacOS}}
{{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}}
 

Windows

MacOS

Linux

Linux 64bit

A second argument is just displayed as text

Linux Debian

To display the text name beside the icon, add showtext=1 parameter

iPhone iPhone

Android

Platforms not recognized by the template just display the name:

Something