Template:Item Infobox: Difference between revisions
Created page with "<includeonly> <infobox> <title source="title1"/> </infobox> </includeonly> <noinclude> Example usage: {{Item Infobox | title1=Example}} <pre> {{Item Infobox | title1=Example}} </pre> <templatedata> {"params":{"title1":{"suggested":true}},"sets":[],"maps":{}} </templatedata> </noinclude>" |
imported from ZZZ. crazy there's no item infobox lol. |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{DISPLAYTITLE:{{{title|{{PAGENAME}}}}}|noreplace}}<infobox type="item" theme-source="rarity"> | ||
< | <title source="title"> | ||
<default>{{PAGENAME}}</default> | |||
</title> | |||
<image source="image"> | |||
<default>Item {{SanitizeFileName|{{{title|{{PAGENAME}}}}}}}.png</default> | |||
<caption source="caption" /> | |||
</image> | |||
<group> | |||
<data source="category"> | |||
<label>Storage Category</label> | |||
<format>[[{{{category|}}}]]</format> | |||
</data> | |||
<data source="group"> | |||
<label>Item Group</label> | |||
<format>[[{{{group|}}}]]{{#if:{{{group2|}}}|<br />[[{{{group2}}}]]}}{{#if:{{{group3|}}}|<br />[[{{{group3}}}]]}}</format> | |||
</data> | |||
<data source="type"> | |||
<label>Item Type</label> | |||
<format>[[{{{type|}}}]]</format> | |||
</data> | |||
<data source="rarity"> | |||
<label>Rarity</label> | |||
<format>{{Icon/Stars|{{{rarity|}}}}}</format> | |||
</data> | |||
<data source="effect"> | |||
<label>Effect</label> | |||
</data> | |||
<data source="description"> | |||
<label>Description</label> | |||
</data> | |||
</group> | |||
<group> | |||
<panel> | |||
<section> | |||
<label>How to Obtain</label> | |||
<data source="source1"> | |||
<label>Source{{#if:{{{source2|}}}| 1}}</label> | |||
</data> | |||
<data source="source2"> | |||
<label>Source 2</label> | |||
</data> | |||
<data source="source3"> | |||
<label>Source 3</label> | |||
</data> | |||
<data source="source4"> | |||
<label>Source 4</label> | |||
</data> | |||
<data source="source5"> | |||
<label>Source 5</label> | |||
</data> | |||
<data source="source6"> | |||
<label>Source 6</label> | |||
</data> | |||
<data source="source7"> | |||
<label>Source 7</label> | |||
</data> | |||
<data source="source8"> | |||
<label>Source 8</label> | |||
</data> | |||
<data source="source9"> | |||
<label>Source 9</label> | |||
</data> | |||
<data source="source10"> | |||
<label>Source 10</label> | |||
</data> | |||
</section> | |||
</panel> | |||
</group> | |||
</infobox> | </infobox> | ||
< | {{Namespace|main=<!-- | ||
< | Set page display title if title is different from page name | ||
-->{{#if:{{{id|}}}|[[Category:Item|{{{id|}}}]]|[[Category:Item]][[Category:Items Missing ID]]}}<!-- | |||
{{ | -->[[Category:Items]]<!-- | ||
-->{{#ifeq:{{NAMESPACE}}||<!-- | |||
< | -->{{#if:{{{title|}}}{{{displaytitle|}}}|{{#ifeq:{{PAGENAME}}|{{{title}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{title}}}}}}|noreplace}}}}}}}}<!-- | ||
{{ | -->}}<!-- | ||
-->{{#if:{{{type|}}}|[[Category:{{{type|}}}]]}}<!-- | |||
< | -->{{#if:{{{category|}}}|[[Category:{{{category|}}}]]}}<!-- | ||
-->{{#if:{{{group|}}}|[[Category:{{{group|}}}]]}}<!-- | |||
{ | -->{{#if:{{{group2|}}}|[[Category:{{{group2|}}}]]}}<!-- | ||
</ | -->{{#if:{{{group3|}}}|[[Category:{{{group3|}}}]]}}<!-- | ||
</noinclude> | -->{{#if:{{{rarity|}}}|{{Array|{{{rarity}}}|;|format=[[Category:{item}-Rank Items]][[Category:Items by Rarity|{item}]]}}|}}<!-- | ||
-->{{#if:{{{event|}}}|[[Category:{{{event|}}}]]}}<!-- | |||
-->}}</includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | |||