Difference between revisions of "Template:Drop Sources/doc"
Jump to navigation
Jump to search
(Update example use of Template (capitalization, argument)) |
Demcookies (talk | contribs) (Update doc/usage of the Template) |
||
| Line 1: | Line 1: | ||
| − | + | The template automatically creates a table of sources of a item. Sources includes [[Monster]]s, [[Combat#Dungeons|Dungeons]] and [[Elite Scroll|Elite Challenges]]. | |
| + | |||
| + | The table has following columns: | ||
| + | {| class="wikitable sortable" | ||
| + | |- | ||
| + | ! Image !! Source !! Quantity !! Rarity !! Leagues | ||
| + | |} | ||
| + | |||
| + | =Usage= | ||
| + | The template takes optional parameters: | ||
| + | * <code>name, title</code> The name of the item which to get sources for. Defaults to the page name. | ||
| + | * <code>width</code> The width of the monster/key/scroll images. HTML attribute so no units. Defaults to 30 if not set. | ||
| + | * <code>height</code> The height of the monster/key/scroll images. HTML attribute so no units. Defaults to 30 if not set. | ||
| + | |||
=Example= | =Example= | ||
==Input== | ==Input== | ||
| − | <code><nowiki>{{Drop Sources| | + | <code><nowiki>{{Drop Sources|name=Gold Bar|width=30|height=30}}</nowiki></code> |
| + | <br>The same output is achieved by <code><nowiki>{{Drop Sources}}</nowiki></code> if called from the page [[Gold Bar]]. | ||
| + | |||
==Output== | ==Output== | ||
| − | {{Drop Sources| | + | {{Drop Sources|name=Gold Bar|width=30|height=30}} |
| + | |||
| + | |||
| + | =TODO= | ||
| + | * Add containers to the possible drop sources. | ||
| + | * Add quests to the the possible drop sources. ??? | ||
| + | * Add option to display Rarity as a fraction and percentage. | ||
| + | * Add indicator to league icons to inform if league is active. | ||
| + | |||
| + | <includeonly>[[Category:Template]]</includeonly> | ||
Latest revision as of 20:56, 21 April 2025
The template automatically creates a table of sources of a item. Sources includes Monsters, Dungeons and Elite Challenges.
The table has following columns:
| Image | Source | Quantity | Rarity | Leagues |
|---|
Contents
Usage
The template takes optional parameters:
name, titleThe name of the item which to get sources for. Defaults to the page name.widthThe width of the monster/key/scroll images. HTML attribute so no units. Defaults to 30 if not set.heightThe height of the monster/key/scroll images. HTML attribute so no units. Defaults to 30 if not set.
Example
Input
{{Drop Sources|name=Gold Bar|width=30|height=30}}
The same output is achieved by {{Drop Sources}} if called from the page Gold Bar.
Output
| Source | Quantity | Rarity | Leagues | |
|---|---|---|---|---|
| Cursed Naga | 1–2 | 1% | All | |
| Corrupted Naga | 1–5 | 5% | All | |
| Ancient Dwarven Golem | [Expand][Collapse]▼▲ | |||
| Ancient Dwarven Golem | 1–12 | 50% | All | |
| Ancient Dwarven Golem | 1–24 | 10% | All | |
TODO
- Add containers to the possible drop sources.
- Add quests to the the possible drop sources. ???
- Add option to display Rarity as a fraction and percentage.
- Add indicator to league icons to inform if league is active.