Difference between revisions of "Template:DbItem"

From HeRO Wiki
Jump to: navigation, search
m (Psithief moved page Template:DbLink to Template:DbItem: Needs a distinction monster vs. items)
m (Modified URL to the new database app.)
 
(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>|3={{{1}}}}}</includeonly><noinclude>[[category:Template]]
+
<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>
−
{{DbLink|NNNN|####}}
+
{{DbItem|NNNN|####}}
 
</pre>
 
</pre>
 
Where NNNN is the item name to display and #### is the item identifier.<br>
 
Where NNNN is the item name to display and #### is the item identifier.<br>
Line 8: Line 8:
 
<br>
 
<br>
 
'''Examples:'''
 
'''Examples:'''
−
# <nowiki>{{DbLink|Fragment|7094}}</nowiki> {{DbLink|Fragment|7094}}
+
# <nowiki>{{DbItem|Fragment|7094}}</nowiki> {{DbItem|Fragment|7094}}
−
# <nowiki>{{DbLink|Fragment}}</nowiki> {{DbLink|Fragment}}
+
# <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:

  1. {{DbItem|Fragment|7094}} Fragment
  2. {{DbItem|Fragment}} Fragment