Difference between revisions of "Template:DbItem"
From HeRO Wiki
(Added a new template) |
m (Modified URL to the new database app.) |
||
| (4 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{{Template:Ifwp|1={{{2}}}|2=<span class="plainlinks">[https://hero-server | + | <includeonly>{{Template:Ifwp|1={{{2|}}}|2=<span class="plainlinks">[https://db.hero-server.xyz/item-search?id={{{2}}} {{{1}}}]</span>|3={{{1}}}}}</includeonly><noinclude>[[category:Template]] |
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
| − | {{ | + | {{DbItem|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> | ||
'''Examples:''' | '''Examples:''' | ||
| − | # <nowiki>{{ | + | # <nowiki>{{DbItem|Fragment|7094}}</nowiki> {{DbItem|Fragment|7094}} |
| − | # <nowiki>{{ | + | # <nowiki>{{DbItem|Fragment}}</nowiki> {{DbItem|Fragment}} |
</noinclude> | </noinclude> | ||
Latest revision as of 10:56, 4 May 2025
Usage
{{DbItem|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:
- {{DbItem|Fragment|7094}} Fragment
- {{DbItem|Fragment}} Fragment