Template:Indicator: Difference between revisions
Jump to navigation
Jump to search
SagiriHimoto (talk | contribs) Reworked to use a switch case, since there's only one variable here. You guys failed to code this template twice now |
mNo edit summary |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><span style="image-rendering:pixelated;">{{#switch:{{{1|}}}|online=[[File:online-indicator.png|25px|sub|center|This level is online.]]|reuploaded=[[File:Reuploaded-indicator.png|25px|sub|center|This level has been reuploaded and is online.]]|pending=[[File:pending-indicator.png|25px|sub|center|This level is pending playtesting on the current version.]]|deleted=[[File:deleted-indicator.png|25px|sub|center|This level has been deleted.]]|0={{#switch:{{{2|0}}}|0=[[File:online-indicator.png|25px|sub|center|This level is online.]]|1=[[File:Reuploaded-indicator.png|25px|sub|center|This level has been reuploaded and is online.]]}}|1={{#switch:{{{2|0}}}|0=[[File:pending-indicator.png|25px|sub|center|This level is pending playtesting on the current version.]]|1=[[File:deleted-indicator.png|25px|sub|center|This level has been deleted.]]}}}}</span></includeonly><noinclude>A simple template to indicate the status of | <includeonly><span style="image-rendering:pixelated;"> | ||
{{#switch:{{{1|}}} | |||
|online=[[File:online-indicator.png|25px|sub|center|This level is online.]] | |||
|reuploaded=[[File:Reuploaded-indicator.png|25px|sub|center|This level has been reuploaded and is online.]] | |||
|pending=[[File:pending-indicator.png|25px|sub|center|This level is pending playtesting on the current version.]] | |||
|deleted=[[File:deleted-indicator.png|25px|sub|center|This level has been deleted.]] | |||
|used=[[File:online-indicator.png|25px|sub|center|This is used in the latest version of the game.]] | |||
|unused=[[File:deleted-indicator.png|25px|sub|center|This is no longer used in the latest version of the game.]] | |||
|winner=[[File:online-indicator.png|25px|sub|center|This was selected as one of the winners.]] | |||
|honor=[[File:Reuploaded-indicator.png|25px|sub|center|This was selected as an honorable mention.]] | |||
|loser=[[File:Indicator-Colorless.png|25px|sub|center|This level received no special mention.]] | |||
|disq=[[File:Indicator-Purple.png|25px|sub|center|This level was disqualified.]] | |||
|0={{#switch:{{{2|0}}} | |||
|0=[[File:online-indicator.png|25px|sub|center|This level is online.]] | |||
|1=[[File:Reuploaded-indicator.png|25px|sub|center|This level has been reuploaded and is online.]]}} | |||
|1={{#switch:{{{2|0}}}|0=[[File:pending-indicator.png|25px|sub|center|This level is pending playtesting on the current version.]] | |||
|1=[[File:deleted-indicator.png|25px|sub|center|This level has been deleted.]]}}}}</span> | |||
</includeonly><noinclude>A simple template to indicate the status of various things. This template was meant for use on the [[Puzzle]] and [[Blind Kaizo Race]] pages and is an edit of [[:Template:MscTileInf]] originally by [[:User:SagiriHimoto|Sagiri Himoto]], but has since been expanded to support extra uses. Icons are automatically centered. | |||
==Parameters== | ==Parameters== | ||
| Line 5: | Line 22: | ||
==Examples== | ==Examples== | ||
===Standard Levels=== | |||
{| class="wikitable plainrowheaders sortable" | {| class="wikitable plainrowheaders sortable" | ||
|+ style="text-align:left"| | |+ style="text-align:left"| | ||
| Line 28: | Line 46: | ||
|- | |- | ||
|} | |} | ||
[[Category:Templates]]</noinclude> | |||
===Contest Entries=== | |||
{| class="wikitable plainrowheaders sortable" | |||
|+ style="text-align:left"| | |||
! scope="col" | Usage | |||
! scope="col" | Code | |||
! scope="col" | Output | |||
|- | |||
|Winner | |||
|'''<nowiki>{{Indicator|winner}}</nowiki>''' | |||
|colspan="2"|{{Indicator|winner}} | |||
|- | |||
|Honorable Mention | |||
|'''<nowiki>{{Indicator|honor}}</nowiki>''' | |||
|colspan="2"|{{Indicator|honor}} | |||
|- | |||
|Disqualified | |||
|'''<nowiki>{{Indicator|disq}}</nowiki>''' | |||
|colspan="2"|{{Indicator|disq}} | |||
|- | |||
|Other Entries | |||
|'''<nowiki>{{Indicator|loser}}</nowiki>''' | |||
|colspan="2"|{{Indicator|loser}} | |||
|- | |||
|} | |||
===Other=== | |||
{| class="wikitable plainrowheaders sortable" | |||
|+ style="text-align:left"| | |||
! scope="col" | Usage | |||
! scope="col" | Code | |||
! scope="col" | Output | |||
|- | |||
|Used | |||
|'''<nowiki>{{Indicator|used}}</nowiki>''' | |||
|colspan="2"|{{Indicator|used}} | |||
|- | |||
|Unused | |||
|'''<nowiki>{{Indicator|unused}}</nowiki>''' | |||
|colspan="2"|{{Indicator|unused}} | |||
|} | |||
[[Category:Templates]] [[Category:Image Templates]]</noinclude> | |||
Latest revision as of 21:58, 12 May 2025
A simple template to indicate the status of various things. This template was meant for use on the Puzzle and Blind Kaizo Race pages and is an edit of Template:MscTileInf originally by Sagiri Himoto, but has since been expanded to support extra uses. Icons are automatically centered.
Parameters
There are two parameters, both of which are required for the template to function correctly (see below examples).
Examples
Standard Levels
Contest Entries
Other
| Usage | Code | Output | |
|---|---|---|---|
| Used | {{Indicator|used}} |
| |
| Unused | {{Indicator|unused}} |
| |





