Difference between revisions of "Template:DbItem"

From HeRO Wiki
Jump to: navigation, search
(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-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 #### is the item identifier and NNNN is the item name to display.<br>
+
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>{{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