Editing Template:DropsLine/doc
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 53: | Line 53: | ||
====Number==== |
====Number==== |
||
They should generally be added as a fraction, e.g. <code>1/128</code>, <code>10/512</code>, <code>1/5000</code> etc. The template will automatically provide |
They should generally be added as a fraction, e.g. <code>1/128</code>, <code>10/512</code>, <code>1/5000</code> etc. The template will automatically provide colours and similar. |
||
====Category==== |
====Category==== |
||
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". |
||
<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>}} |