Changes

Jump to navigation Jump to search

Template:Icon

218 bytes added, 00:12, 28 December 2019
no edit summary
<onlyinclude>{{#if:{{{tl|}}}|align=left{{!}}|}}{{Icon/File|{{{1}}}}} {{#if: {{{2|}}} | {{Icon/File|{{{2}}} }} | }} {{#if: {{{3|}}} | {{Icon/File|{{{3}}} }} | }} {{#if: {{{4|}}} | {{Icon/File|{{{4}}} }} | }} {{#if: {{{5|}}} | {{Icon/File|{{{5}}} }} | }} {{#if: {{{6|}}} | {{Icon/File|{{{6}}} }} | }}</onlyinclude><noinclude><br/>
<center><big>'''Icon'''</big></center>
A template for shorthand platform listing. To reduce the amount of effort needed to add new images (and thus, platforms), the actual values are passed to [[Template:Icon/File|a subtemplate]] that selects the icons. To add new images, edit the subtemplate, not this one. To scale up the number of platforms that can be listed, edit this article; currently up to six platforms can be listed though more can be added with relative ease.
__NOTOC__
==Example==
===Basic usage===
<pre>
{{Icon|Windows|Linux|macOS|Android|iOS}}
Result: {{Icon|Windows|Linux|macOS|Android|iOS}}
 
===In a table===
 
<pre>{| class="wikitable" style="text-align:center;"
!Name
!Platform(s)
!Recommended
|-
|Example
|align=left|{{Icon|Win|Mac|APK}}
|{{✓}}
|}</pre>
 
Result:
 
{| class="wikitable" style="text-align:center;"
!Name
!Platform(s)
!Recommended
|-
|Example
|align=left|{{Icon|Win|Mac|APK}}
|{{✓}}
|}
==Parameters==
;<code>2</code>, <code>3</code>, <code>4</code>, <code>5</code>, <code>6</code>
:The rest of the values. Optional because only one platform is required.
;<code>tl</code>
:Formats a table to align the images left for aesthetic reasons.
</noinclude>
927
edits

Navigation menu