Template:Icon

From Emulation General Wiki
Revision as of 00:12, 28 December 2019 by FosterHaven (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
    
Icon

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 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.

Example[edit]

Basic usage[edit]

{{Icon|Windows|Linux|macOS|Android|iOS}}

Result: Windows Linux macOS Android iOS

In a table[edit]

{| class="wikitable" style="text-align:center;"
!Name
!Platform(s)
!Recommended
|-
|Example
|align=left|{{Icon|Win|Mac|APK}}
|{{✓}}
|}

Result:

Name Platform(s) Recommended
Example Windows macOS Android

Parameters[edit]

The list of platforms is documented at the subtemplate's page.

1
The first value. Required because a platform needs to be specified for this template to be useful.
2, 3, 4, 5, 6
The rest of the values. Optional because only one platform is required.