Template:ExpansionIcon: Difference between revisions

From Melvor Idle
(Created page with "<includeonly>{{#switch: {{{1|}}} | ItA = {{ItA}} Into the Abyss Expansion | AoD = {{AoD}} Atlas of Discovery Expansion | TotH = {{TotH}} Throne of the Herald Expansion | None = Base game | #default = Unknown }}</includeonly><noinclude>{{/doc}}</noinclude> <noinclude> === Documentation === This template returns a specific text based on the provided input value. ==== Parameters ==== * '''1''' - The abbreviation for the game content. Acceptable values are: *...")
 
No edit summary
Line 6: Line 6:
| #default = Unknown
| #default = Unknown
}}</includeonly><noinclude>{{/doc}}</noinclude>
}}</includeonly><noinclude>{{/doc}}</noinclude>
<noinclude>
=== Documentation ===
This template returns a specific text based on the provided input value.
==== Parameters ====
* '''1''' - The abbreviation for the game content. Acceptable values are:
  * '''ItA''' - Returns "into the abyss".
  * '''AoD''' - Returns "atlas of discovery".
  * '''TotH''' - Returns "throne of the herald".
  * '''None''' - Returns "base game". This is also the default value if no parameter is provided.
When left empty, "Unknown" is returned.
Usage example:
<code><nowiki>{{ExpansionIcon|ItA}}</nowiki></code> will return "into the abyss".
<code><nowiki>{{ExpansionIcon|AoD}}</nowiki></code> will return "atlas of discovery".
<code><nowiki>{{ExpansionIcon|TotH}}</nowiki></code> will return "throne of the herald".
<code><nowiki>{{ExpansionIcon|None}}</nowiki></code> will return "base game".
<code><nowiki>{{ExpansionIcon}}</nowiki></code> will also return "base game".
</noinclude>

Revision as of 22:18, 22 June 2024

Documentation

This template returns a specific text based on the provided input value.

Parameters

  • 1 - The abbreviation for the game content. Acceptable values are:
 * ItA - Returns "into the abyss".
 * AoD - Returns "atlas of discovery".
 * TotH - Returns "throne of the herald".
 * None - Returns "base game".
 * Base game - Returns "base game".

When left empty, "Unknown" is returned.

Usage example:

{{ExpansionIcon|ItA}} Returns:

Error creating thumbnail: File missing

Into the Abyss Expansion

{{ExpansionIcon|AoD}} Returns: AoD.png Atlas of Discovery Expansion

{{ExpansionIcon|TotH}} Returns: TotH.svg Throne of the Herald Expansion

{{ExpansionIcon|None}} Returns: Base game

{{ExpansionIcon}} Returns: Unknown