Welcome to IOPWiki, Commander.
We are searching for new editors to keep track of Girls' Frontline 2 content, as well as veteran players to complete the data of Girls' Frontline and Project Neural Cloud characters.
You can contribute without an account. Learn how to contribute and join our Discord server.

Template:doll name/doc: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
Initial setup
 
m Removed unfitting category
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
Inline template for displaying a [[T-Doll]] in the proper colours. Adds a fitting class icon for text and a tooltip.
<templatedata>
 
{
== Parameters ==
"params": {
{{Template Parameter Table|1=
"1": {
{{Template Parameter|1|required=yes|The name or title of the T-Doll. This should be the Wiki-Page name of the T-Doll.}}
"label": "T-Doll name",
{{Template Parameter|2|required=yes|The classification of the T-Doll (HG, SMG, AR, RF, MG).}}
"description": "The name of the T-Doll. This has to be the Wiki page name for the Link to work.",
{{Template Parameter|3|required=yes|The rarity of the T-Doll (2-6 or EXTRA).}}
"example": "IDW",
{{Template Parameter|4|(Optional) The index number of the T-Doll.}}
"type": "wiki-page-name",
{{Template Parameter|costume|Optional parameter to display the tooltip with a specific costume. Example: <code>costume1</code> }}
"required": true
}}
},
"2": {
"label": "Classification",
"description": "The class of the T-Doll. The following values are valid: AR, SMG, HG, MG, RF",
"example": "SMG",
"type": "string",
"required": true
},
"3": {
"label": "Rarity",
"description": "The rarity of the T-Doll. It could either be the number 2-6 or extra.",
"example": "4",
"type": "string",
"required": true
},
"4": {
"label": "Index number",
"description": "The index number of the T-Doll.",
"example": "14",
"type": "number"
},
"5": {
"aliases": [
"costume"
],
"label": "Key of costume",
"description": "The costume parameter to determine the preview image seen in the tooltip.",
"example": "costume3",
"type": "string"
}
},
"description": "Inline template for displaying a T-Doll link. The link will be displayed with the proper classification icon, colour and tooltip.",
"format": "inline"
}
</templatedata>


== Usage ==
== Usage ==

Latest revision as of 08:38, 8 December 2020

Inline template for displaying a T-Doll link. The link will be displayed with the proper classification icon, colour and tooltip.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
T-Doll name1

The name of the T-Doll. This has to be the Wiki page name for the Link to work.

Example
IDW
Page namerequired
Classification2

The class of the T-Doll. The following values are valid: AR, SMG, HG, MG, RF

Example
SMG
Stringrequired
Rarity3

The rarity of the T-Doll. It could either be the number 2-6 or extra.

Example
4
Stringrequired
Index number4

The index number of the T-Doll.

Example
14
Numberoptional
Key of costume5 costume

The costume parameter to determine the preview image seen in the tooltip.

Example
costume3
Stringoptional

Usage[edit]

See the template's testcases:


Simple call
Wiki code
{{doll name|G28|RF|4}}
Main version RF G28G28G28
Sandbox version Template:doll name/sandbox
Different costume in tooltip
Wiki code
{{doll name|G28|RF|4|costume=costume2}}
Main version RF G28G28G28
Sandbox version Template:doll name/sandbox
With index number
Wiki code
{{doll name|G28|RF|4|146}}
Main version RF G28G28G28146
Sandbox version Template:doll name/sandbox

See also[edit]