Editing Template:DropsLine/doc

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

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 colors and similar.
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>}}
Please note that all contributions to Brighter Shores Wiki are considered to be released under the CC BY-NC-SA 3.0 (see Brighter Shores:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template

This page is a member of a hidden category: