Difference between revisions of "Template:RandomDrop"

From DDO Compendium
 
(6 intermediate revisions by the same user not shown)
Line 3: Line 3:
|description = This template that can randomly drop.
|description = This template that can randomly drop.
|category = DropLocation Templates
|category = DropLocation Templates
|example1 = <nowiki>{{RandomDrop|The Dreaming Dark}}</nowiki>
|example1 = <nowiki>{{RandomDrop|{{PageLink|The Dreaming Dark |The Dreaming Dark (Quest)}}}}</nowiki>
|example1output = {{RandomDrop|The Dreaming Dark}}
|example1output = {{RandomDrop|{{PageLink|The Dreaming Dark |The Dreaming Dark (Quest)}}}}
|example2 = <nowiki>{{RandomDrop}}</nowiki>
|example2 = <nowiki>{{RandomDrop}}</nowiki>
|example2output = {{RandomDrop}}
|example2output = {{RandomDrop}}
Line 11: Line 11:
|parameter2name = Level Range
|parameter2name = Level Range
|parameter2description = The loot level range of the chests
|parameter2description = The loot level range of the chests
|parameter3name = Random Only Type
|parameter3description = Set to a value if this can only come from random drops, the value is used in the nonpurchaseable category.
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:RandomDrop||[[Category:Randomly Dropped Loot]]}}[[Random]]{{#if: {{{1|}}}|, Highest drop rate from {{RenderLink|{{{1|}}}}}}}{{#if: {{{2|}}}|, Any Chest with Loot Levels {{{2}}}}}</onlyinclude>
<onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:RandomDrop||[[Category:Randomly Dropped Loot]][[Category:Loot]]{{#if: {{{3|}}}|[[Category: Random Drop Only {{{3|}}}]]}}}}{{#switch: {{lc:{{#dplvar:vendorformat}}}}
| table=<tr><td colspan="5">[[Random]]{{#if: {{{2|}}}|, Any Chest with Loot Levels {{{2}}}|, any chest, quest reward, etc.}}{{#if: {{{1|}}}|, Highest drop rate from {{RenderLink|{{{1|}}}}}}}</td></tr>
|#default=[[Random]]{{#if: {{{2|}}}|, Any Chest with Loot Levels {{{2}}}|, any chest, quest reward, etc.}}{{#if: {{{1|}}}|, Highest drop rate from {{RenderLink|{{{1|}}}}}}}
}}</onlyinclude>

Latest revision as of 16:10, 12 July 2022

RandomDrop[edit]

This template that can randomly drop.

Example Usage
{{RandomDrop|{{PageLink|The Dreaming Dark |The Dreaming Dark (Quest)}}}}Random, any chest, quest reward, etc., Highest drop rate from The Dreaming Dark
{{RandomDrop}}Random, any chest, quest reward, etc.

Usage[edit]

{{RandomDrop|(Highest Chance)|(Level Range)|(Random Only Type)}}

Parameter Documentation
Highest ChanceQuest, Wilderness that has the highest chance. Leave blank if there isn't one.
Level RangeThe loot level range of the chests
Random Only TypeSet to a value if this can only come from random drops, the value is used in the nonpurchaseable category.

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.


Random, any chest, quest reward, etc.