Difference between revisions of "Template:DbLink"
From HeRO Wiki
(Added a new template) |
m (Removed blank line from template.) |
||
(One intermediate revision by one user not shown) | |||
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> | ||
{{DbLink|NNNN|####}} | {{DbLink|NNNN|####}} | ||
</pre> | </pre> | ||
− | Where #### is the item identifier | + | Where NNNN is the item name to display and #### is the item identifier.<br> |
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. | 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. | ||
<br> | <br> |
Latest revision as of 23:00, 28 December 2024
Usage
{{DbLink|NNNN|####}}
Where NNNN is the item name to display and #### is the item identifier.
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