Template:Infobox Item: Difference between revisions

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

Revision as of 10:29, 22 May 2022