Template:Loot Table: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) mNo edit summary |
CptTwinkie (talk | contribs) m (→Usage) |
||
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" | <includeonly>{| class="wikitable" | ||
|- | |- | ||
!colspan=" | !colspan="2"|{{{name|}}} Loot | ||
|- | |- | ||
| Rolls | | Rolls | ||
| | | | ||
{{{rolls}}} | {{{rolls|}}} | ||
|- | {{#if:{{{droppedalways|}}}|<!--TRUE-->{{!}}- | ||
{{!}} Always Dropped | |||
{{!}} | |||
{{{droppedalways}}} | {{{droppedalways|}}}|<!--FALSE-->}} | ||
|- | |- | ||
| | | | ||
Weighted Drops | Weighted Drops | ||
| | | | ||
{{{droppedbyweight}}} | {{{droppedbyweight|}}} | ||
|} | {{#if:{{{sourcepage|}}}|<!--TRUE-->{{!}}- | ||
! colspan=2 style="margin: 0; padding: 0;" {{!}} <p class="plainlinks" style="margin: 0; padding: 0;"><small>([{{fullurl:{{{sourcepage}}}}} View] {{!}} [{{fullurl:{{{sourcepage}}}|action=edit}} Edit])</small></p>}} | |||
|}</includeonly><noinclude> | |||
==Example== | |||
{{Loot Table | |||
|name=Journeyman's Treasure Map | |||
|rolls=3 | |||
|droppedalways=Fancy Equipment<br/> | |||
Common Equipment | |||
|droppedbyweight= | |||
17% {{Small_Image_Number_Link|StripsLeather.png|5|Leather Strips}}<br/> | |||
22% {{Small_Image_Number_Link|MetalParts.png|15|Metal Parts}}<br/> | |||
11% {{Small_Image_Number_Link|JarClayWithLinseedOil.png|1|Linseed Oil}}<br/> | |||
06% {{Small_Image_Number_Link|IngotSteel.png|1|Steel Ingot}}<br/> | |||
17% {{Small_Image_Number_Link|IngotIron.png|2|Iron Ingot}}<br/> | |||
17% {{Small_Image_Number_Link|IngotBronze.png|2|Bronze Ingot}} | |||
}} | |||
==Usage== | |||
Used to format loot tables that define random item generation. | |||
<pre>{{Loot Table | |||
|name=<NameOfTable> | |||
|rolls=<NumberOfPicks> | |||
|droppedalways=<ItemsAlwaysGenerated> | |||
droppedbyweight=<ItemsSometimesGenerated> | |||
}}</pre> | |||
*The code above can be pasted into your page and edited. | |||
*The attribute ''droppedalways'' can be left out entirely and it will not be displayed. | |||
< | ==Example Source== | ||
|name= | <pre>{{Loot Table | ||
|rolls= | |name=Journeyman's Treasure Map | ||
|droppedalways= | |rolls=3 | ||
droppedbyweight= | |droppedalways=Fancy Equipment<br/> | ||
}} | Common Equipment | ||
|droppedbyweight= | |||
17% {{Small_Image_Number_Link|StripsLeather.png|5|Leather Strips}}<br/> | |||
22% {{Small_Image_Number_Link|MetalParts.png|15|Metal Parts}}<br/> | |||
11% {{Small_Image_Number_Link|JarClayWithLinseedOil.png|1|Linseed Oil}}<br/> | |||
06% {{Small_Image_Number_Link|IngotSteel.png|1|Steel Ingot}}<br/> | |||
17% {{Small_Image_Number_Link|IngotIron.png|2|Iron Ingot}}<br/> | |||
17% {{Small_Image_Number_Link|IngotBronze.png|2|Bronze Ingot}} | |||
}}</pre> | |||
[[Category:Templates/Formatting]] | |||
</noinclude> |
Latest revision as of 08:12, 29 October 2018
Example
Journeyman's Treasure Map Loot | |
---|---|
Rolls |
3 |
Always Dropped |
Fancy Equipment |
Weighted Drops |
17% 5 Leather Strips |
Usage
Used to format loot tables that define random item generation.
{{Loot Table |name=<NameOfTable> |rolls=<NumberOfPicks> |droppedalways=<ItemsAlwaysGenerated> droppedbyweight=<ItemsSometimesGenerated> }}
- The code above can be pasted into your page and edited.
- The attribute droppedalways can be left out entirely and it will not be displayed.
Example Source
{{Loot Table |name=Journeyman's Treasure Map |rolls=3 |droppedalways=Fancy Equipment<br/> Common Equipment |droppedbyweight= 17% {{Small_Image_Number_Link|StripsLeather.png|5|Leather Strips}}<br/> 22% {{Small_Image_Number_Link|MetalParts.png|15|Metal Parts}}<br/> 11% {{Small_Image_Number_Link|JarClayWithLinseedOil.png|1|Linseed Oil}}<br/> 06% {{Small_Image_Number_Link|IngotSteel.png|1|Steel Ingot}}<br/> 17% {{Small_Image_Number_Link|IngotIron.png|2|Iron Ingot}}<br/> 17% {{Small_Image_Number_Link|IngotBronze.png|2|Bronze Ingot}} }}