Template:Bbdw/item: Difference between revisions

Template page
(Updating BBDW Items to link to Gameplay:Items_(BBDW))
(added display and amount parameters)
Line 1: Line 1:
<includeonly><div style="display:inline;">{{tt
<includeonly><div style="display:inline;">{{tt
|{{#if:{{{icon|}}}|[[File:{{{icon|}}}|25x25px|link=]]|[[File:BBDW Double Skill Up Placeholder.png|25x25px|link=]]}}[[Gameplay:Items (BBDW)#{{{nameen|}}}|{{{nameen|}}}]]<!--
|{{#ifeq:{{{display|}}}|noicon|{{{icon|}}}|{{#if:{{{icon|}}}|[[File:{{{icon|}}}|25x25px|link=]]|[[File:BBDW Double Skill Up Placeholder.png|25x25px|link=]]}}}}{{#ifeq:{{{display|}}}|icononly||[[Gameplay:Items (BBDW)#{{{nameen|}}}|{{{nameen|}}}]]}}<!--
-->|{{#if:{{{notes|}}}|{{{notes|}}}<hr/>}}<i><small>{{{itemdesc|}}}</small></i><!--
-->|{{#if:{{{notes|}}}|{{{notes|}}}<hr/>}}<i><small>{{{itemdesc|}}}</small></i><!--
-->}}</div></includeonly><noinclude>
-->}}{{#if:{{{amount|}}}|&nbsp;x{{{amount|}}}}}</div></includeonly><noinclude>
Do not use this template directly.
Do not use this template directly.


Line 12: Line 12:
|itemdesc=test
|itemdesc=test
|notes=test2
|notes=test2
|amount=10
|display=noicon
}}
}}
<pre><nowiki>
<pre><nowiki>
Line 19: Line 21:
|itemdesc=test
|itemdesc=test
|notes=test2
|notes=test2
|amount=10
|display=icononly, noicon (by default shows both icon and item name)
}}
}}
</nowiki></pre>
</nowiki></pre>
</noinclude>
</noinclude>

Revision as of 16:13, 4 March 2021

Do not use this template directly.

Use {{bbdw|item|item name}} instead.

Usage

 x10
{{bbdw/item
|nameen=item name
|icon=icon name
|itemdesc=test
|notes=test2
|amount=10
|display=icononly, noicon (by default shows both icon and item name)
}}