Template:ExpansionIcon/doc: Difference between revisions

From Melvor Idle
(Created page with "=== 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 e...")
 
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
   * '''AoD''' - Returns "atlas of discovery".
   * '''AoD''' - Returns "atlas of discovery".
   * '''TotH''' - Returns "throne of the herald".
   * '''TotH''' - Returns "throne of the herald".
   * '''None''' - Returns "base game". This is also the default value if no parameter is provided.
   * '''None''' - Returns "base game".
  * '''Base game''' - Returns "base game".


When left empty, "Unknown" is returned.
When left empty, "Unknown" is returned.


Usage example:
'''Usage example:'''
 
{{T|ExpansionIcon|ItA}} Returns: {{ExpansionIcon|ItA}}
{{T|ExpansionIcon|ItA}} Returns: {{ExpansionIcon|ItA}}



Latest revision as of 23:17, 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: Atlas of Discovery Expansion

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

{{ExpansionIcon|None}} Returns: Melvor Logo.svg Base game

{{ExpansionIcon}} Returns: Unknown