Template:DropsLine/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
PinnacleHigh (talk | contribs) No edit summary |
PinnacleHigh (talk | contribs) No edit summary Tag: Manual revert |
||
Line 80: | 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". |
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". |
||
{{TemplateData|<templatedata> |
|||
<includeonly><tr> |
|||
{ |
|||
<td style="border: 1px solid #cccccc;">{{#if:{{{image|}}}|[[File:{{{image}}}|30px|link={{{name}}}]]|[[File:{{{name}}}.png|30px]]}}</td> |
|||
"params": { |
|||
<td style="border: 1px solid #cccccc;">{{#if:{{{displayname|}}}|[[{{{name}}}|{{{displayname}}}]]|[[{{{name}}}]]}}</td> |
|||
"name": { |
|||
<td style="border: 1px solid #cccccc;">{{#if:{{{quantity|}}}|{{{quantity}}}|Unknown}}</td> |
|||
"label": "Name", |
|||
<td style="border: 1px solid #cccccc;">{{#if:{{{frequency|}}}|{{{frequency}}}|Unknown}}</td> |
|||
"description": "Name of the item's article page", |
|||
<td style="border: 1px solid #cccccc;">{{#if:{{{rarity|}}}|{{{rarity}}}|Unknown}}</td> |
|||
"example": "Cabbage", |
|||
<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> |
|||
"type": "wiki-page-name", |
|||
</tr></includeonly><noinclude>{{/doc}}</noinclude> |
|||
"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>}} |