Template:Infobox Item: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{infobox
<includeonly>
|aboveclass = mergedtoprow {{#if:{{{tag-line|}}}||mergedbottomrow}} name
{{infobox
|autoheaders = y
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|subheaderrowclass1 = mergedbottomrow title
|subheader = {{{tag|}}}
|subheader1 = {{#if:{{{tag-line|}}}|{{{tag-line|}}}}}
|image = {{{image|}}}
|imagerowclass1 = mergedtoprow {{#if:{{{image2|}}}||mergedbottomrow}}
|caption = {{{caption|}}}
|image1 = {{#if:{{{image1|}}}|[[File:{{{image1|}}}|250px]]}}
 
|caption1 = {{#if:{{{imagecaption1|}}}|{{{imagecaption1|}}}}}
|header1 = 5e Statistics
|imagerowclass2 = mergedbottomrow
|label2 = Rarity
|image2 = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|250px]]}}
|data2 = {{#if:{{{rarity|}}}|[[:Category:{{{rarity|}}} Items|{{{rarity|}}}]]|[[:Category:Common Items|Common]]}}
|caption2 = {{#if:{{{imagecaption2|}}}|{{{imagecaption2|}}}}}
|label3 = Type
|imagerowclass3 = mergedtoprow mergedbottomrow
|data3 = {{#if:{{{type|}}}|[[:Category:{{{type|}}}s|{{{type|}}}]]}}
|image3 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}}}
|rowclass1 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{type|}}}|1|0}}or{{#if:{{{creator|}}}|1|0}}}}|1||mergedbottomrow}}
|label1 = Rarity
|data1 = {{#if:{{{rarity|}}}|{{{rarity|}}}|}}
|rowclass2 = {{#ifeq:{{#expr:{{#if:{{{creator|}}}|1|0}}}}|1|mergedrow|mergedbottomrow}}
|label2 = Type
|data2 = {{#if:{{{type|}}}|{{{type|}}}|}}
|rowclass3 = mergedbottomrow
|label3 = Creator
|data3 = {{#if:{{{creator|}}}|{{{creator|}}}|}}
|rowclass4 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{cursed|}}}|1|0}}}}|1||mergedbottomrow}}
|label4 = Attunement?
|label4 = Attunement?
|data4 = {{#if:{{{attunement|}}}|{{{attunement|}}}|}}
|data4 = {{#if:{{{attunement|}}}|[[:Category:Items Requiring Attunement|Yes]]}}
|rowclass5 = {{#ifeq:{{#expr:{{#if:{{{attunement|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow
|label5 = Cursed?
|label5 = Cursed?
|data5 = {{#if:{{{cursed|}}}|{{{cursed|}}}|}}
|data5 = {{#if:{{{cursed|}}}|[[:Category:Cursed Items|Yes]]}}
|rowclass6 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{lastsession|}}}|1|0}}or{{#if:{{{location|}}}|1|0}}}}|1||mergedbottomrow}}
|label6 = Value
|label6 = First Appearance
|data6 = {{{value|}}}
|data6 = {{#if:{{{firstsession|}}}|{{{firstsession|}}}|}}
 
|rowclass7 = mergedrow
|header7 = Unique Item
|label7 = Last Appearance
|label8 = Creator
|data7 = {{#if:{{{lastsession|}}}|{{{lastsession|}}}|}}
|data8 = {{{creator|}}}
|rowclass8 = {{#ifeq:{{#expr:{{#if:{{{firstsession|}}}|1|0}}or{{#if:{{{lastsession|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow
|label9 = Current Location
|label8 = Current Location
|data9 = {{{location|}}}
|data8 = {{#if:{{{location|}}}|{{{location|}}}|}}
 
|belowclass = mergedtoprow mergedbottomrow
|header10 = Appearances
|below =  
|label11 = First Appearance
}}[[Category:All Items]]{{#if:{{{rarity|}}}|[[Category:{{{rarity|}}} Items]]}}{{#if:{{{type|}}}|[[Category:{{{type|}}}s]]}}{{#if:{{{cursed|}}}|[[Category:Cursed Items]]}}</includeonly><noinclude>[[Category:Templates]]</noinclude>
|data11 = {{{firstappears|}}}
|label12 = Latest Appearance
|data12 = {{{lastappears|}}}
 
|aboveclass = mergedtoprow name
|subheaderrowclass1 = mergedbottomrow tag
|imagerowclass1 = mergedtoprow mergedbottomrow
|rowclass1 = mergedtoprow item
|rowclass2 = mergedrow
|rowclass3 = mergedrow
|rowclass4 = mergedrow
|rowclass5 = mergedrow
|rowclass6 = mergedbottomrow
 
|rowclass7 = mergedtoprow item
|rowclass8 = mergedrow
|rowclass9 = mergedbottomrow
 
|rowclass10 = mergedtoprow item
|rowclass11 = mergedrow
|rowclass12 = mergedbottomrow
}}</includeonly><noinclude>
{{Documentation}}
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
</noinclude>

Latest revision as of 10:28, 30 May 2022