Difference between revisions of "Template:DbLink"

From HeRO Wiki
Jump to: navigation, search
(Updated template.)
m (Removed blank line from template.)
 
Line 1: Line 1:
<includeonly>
+
<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]]
{{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 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>

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:

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