Difference between revisions of "Template:DbLink"
From HeRO Wiki
(Added a new template) |
(Updated template.) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{Template:Ifwp|1={{{2}}}|2=<span class="plainlinks">[https://hero-server-db.herokuapp.com/item-search?id={{{2}}} {{{1}}}]</span> | + | <includeonly> |
+ | {{Template:Ifwp|1={{{2|}}}|2=<span class="plainlinks">[https://hero-server-db.herokuapp.com/item-search?id={{{2}}} {{{1}}}]</span>|3={{{1}}}}}</includeonly><noinclude>[[category:Template]] | ||
==Usage== | ==Usage== | ||
<pre> | <pre> |
Revision as of 22:58, 28 December 2024
Usage
{{DbLink|NNNN|####}}
Where #### is the item identifier and NNNN is the item name to display.
If the item ID is omitted, only the name of the item will be displayed. Use this behaviour as a placeholder when you want to get the wiki page info written up before you look up the item identifier.
Examples:
- {{DbLink|Fragment|7094}} Fragment
- {{DbLink|Fragment}} Fragment