Template:Item: Difference between revisions
From OmegaMMO
No edit summary Tag: Reverted |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[https://www.divine-pride.net/database/item/{{{ | <includeonly>{{#ifeq: {{{4|}}} ||[https://www.divine-pride.net/database/item/{{{2|501}}} {{{1|Red Potion}}}]}} <img src="https://www.divine-pride.net/img/items/{{{3|item}}}/iRO/{{{2|501}}}" alt="{{{1|Red Potion}}}" /> | ||
</includeonly><noinclude>__NOTOC__ | |||
== Description == | |||
The purpose of this template is to turn a set of coordinates into a copyable link for use with the in-game syntax. | |||
==Usage== | |||
<pre>{{Item|Item Name|Item ID|Type|nolink}}</pre> | |||
* '''Item Name''' The name of the item would you like Ex. Red Potion. | |||
* '''Item ID''' is the item ID Ex. 501. | |||
* '''Type''' Select 'item' if you want inventory item or 'collection' if you want the picture in description item. | |||
* '''nolink''' Select 'nolink' if you want hide the link to divine pride or item name. | |||
=== Example === | |||
{|class=wikitable | |||
! Code Used | |||
! Result | |||
|- | |||
|<code><nowiki>{{Item|Red Potion|501|item}}</nowiki></code> | |||
| {{Item|Red Potion|501|item}} | |||
|- | |||
|<code><nowiki>{{Item|Red Potion|501|item|nolink}}</nowiki></code> | |||
| {{Item|Red Potion|501|item|nolink}} | |||
|- | |||
|<code><nowiki>{{Item|Red Potion|501|collection}}</nowiki></code> | |||
| {{Item|Red Potion|501|collection}} | |||
|- | |||
|<code><nowiki>{{Item|Red Potion|501|collection|nolink}}</nowiki></code> | |||
| {{Item|Red Potion|501|collection|nolink}} | |||
|} | |||
[[Category:Templates]]</noinclude> |
Latest revision as of 16:21, 21 May 2025
Description
The purpose of this template is to turn a set of coordinates into a copyable link for use with the in-game syntax.
Usage
{{Item|Item Name|Item ID|Type|nolink}}
- Item Name The name of the item would you like Ex. Red Potion.
- Item ID is the item ID Ex. 501.
- Type Select 'item' if you want inventory item or 'collection' if you want the picture in description item.
- nolink Select 'nolink' if you want hide the link to divine pride or item name.
Example
Code Used | Result |
---|---|
{{Item|Red Potion|501|item}}
|
Red Potion |
{{Item|Red Potion|501|item|nolink}}
|
|
{{Item|Red Potion|501|collection}}
|
Red Potion |
{{Item|Red Potion|501|collection|nolink}}
|