Template:DropsLine/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 80:
A manual configuration of the item's image. Only use this parameter when the image name (minus extension) does not exactly match the item name. Casing is important, so be sure the <code>name</code> parameter also leads directly to the item's page. Do not add square brackets and the "File:" prefix. Just use "Name.png".
 
<includeonly><tr>
{{TemplateData|<templatedata>
<td style="border: 1px solid #cccccc;">{{#if:{{{image|}}}|[[File:{{{image}}}|30px|link={{{name}}}]]|[[File:{{{name}}}.png|30px]]}}</td>
{
<td style="border: 1px solid #cccccc;">{{#if:{{{displayname|}}}|[[{{{name}}}|{{{displayname}}}]]|[[{{{name}}}]]}}</td>
"params": {
<td style="border: 1px solid #cccccc;">{{#if:{{{quantity|}}}|{{{quantity}}}|Unknown}}</td>
"name": {
<td style="border: 1px solid #cccccc;">{{#if:{{{frequency|}}}|{{{frequency}}}|Unknown}}</td>
"label": "Name",
<td style="border: 1px solid #cccccc;">{{#if:{{{rarity|}}}|{{{rarity}}}|Unknown}}</td>
"description": "Name of the item's article page",
<td style="border: 1px solid #cccccc;">{{#vardefine:value|{{#ifeq:{{{name}}}|Coins|1|{{#ask:[[{{{name}}}]]|?Value=|mainlabel=-}}}}}}{{#if:{{#var:value}}|{{#if:{{{quantity|}}}|{{Currency|{{#expr:{{#var:value}}*{{{quantity}}}}}}}|{{Currency|{{#var:value}}}}}}|Unknown}}</td>
"example": "Cabbage",
</tr></includeonly><noinclude>{{/doc}}</noinclude>
"type": "wiki-page-name",
"required": true
},
"quantity": {
"label": "Quantity",
"description": "Quantity of the item dropped by the source. Can be a comma-separated list and/or range. Include (noted) if it applies.",
"example": "1-10",
"type": "string",
"required": true
},
"frequency": {
"label": "Frequency",
"description": "Frequency of the item dropping. Frequency can either be a number or a category, a number is preferred.",
"example": "1/128",
"type": "string",
"required": true
},
"rarity": {
"label": "Rarity",
"description": "Rarity level of the item, such as Common, Uncommon, Rare, or Very rare.",
"example": "Common",
"type": "string",
"required": false
},
"image": {
"label": "Image",
"description": "A manual configuration of the item's image. Only use this parameter when the image name (minus extension) does not exactly match the item name.",
"example": "Cabbage.png",
"type": "wiki-file-name"
}
},
"description": "Template for an individual drop line inside drop tables.",
"format": "\n{{_|_=_}}\n"
}
</templatedata>}}
59

edits