Template:Infobox test: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(105 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{{infobox
{{infobox
|aboveclass = mergedtoprow {{#if:{{{title1|}}}||mergedbottomrow}} name
|autoheaders = y
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|subheaderrowclass1 = {{#if:{{{title2|}}}|mergedrow|mergedbottomrow}} title
|subheader = {{{tag|}}}
|subheader1 = {{#if:{{{title1|}}}|{{{title1|}}}}}
|image = {{{image|}}}
|subheaderrowclass2 = {{#if:{{{title3|}}}|mergedrow|mergedbottomrow}} title
|caption = {{{caption|}}}
|subheader2 = {{#if:{{{title2|}}}|{{{title2|}}}}}
 
|subheaderrowclass3 = {{#if:{{{title4|}}}|mergedrow|mergedbottomrow}} title
|header1 = 5th Edition Statistics
|subheader3 = {{#if:{{{title3|}}}|{{{title3|}}}}}
|label2 = Size
|subheaderrowclass4 = mergedbottomrow
|data2 = {{{size5e|}}}
|subheader4 = {{#if:{{{title4|}}}|{{{title4|}}}}}
|label3 = Type
|imagerowclass1 = mergedtoprow {{#if:{{{image2|}}}||mergedbottomrow}}
|data3 = {{{type5e|}}}
|image1 = {{#if:{{{image1|}}}|[[File:{{{image1|}}}|250px]]}}
|label4 = Tag(s)
|caption1 = {{#if:{{{imagecaption1|}}}|{{{imagecaption1|}}}}}
|data4 = {{{tags5e|}}}
|imagerowclass2 = mergedbottomrow
|label5 = Typical Alignment
|image2 = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|250px]]}}
|data5 = {{{alignment5e|}}}
|caption2 = {{#if:{{{imagecaption2|}}}|{{{imagecaption2|}}}}}
 
|image3 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}}}
|header6 = General Information
|rowclass1 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{race|}}}|1|0}}or{{#if:{{{class|}}}|1|0}}or{{#if:{{{faith|}}}|1|0}}or{{#if:{{{alignment|}}}|1|0}}}}|0|mergedbottomrow}}
|label7 = Patron Deity(s)
|label1 = Gender
|data7 = {{{deity|}}}
|data1 = {{#if:{{{gender|}}}|{{{gender|}}}}}
|label8 = Movement
|rowclass2 = {{#ifeq:{{#expr:{{#if:{{{gender|}}}|1|0}}}}|0|mergedtoprow}} {{#ifeq:{{#expr:{{#expr:{{#if:{{{gender|}}}|1|0}}}}and{{#expr:{{#if:{{{class|}}}|1|0}}or{{#if:{{{faith|}}}|1|0}}or{{#if:{{{alignment|}}}|1|0}}}}}}|1|mergedrow}} {{#ifeq:{{#expr:{{#if:{{{class|}}}|1|0}}or{{#if:{{{faith|}}}|1|0}}or{{#if:{{{alignment|}}}|1|0}}}}|0|mergedbottomrow}}
|data8 = {{{movement|}}}
|label2 = Race
|label9 = Vision
|data2 = {{#if:{{{race|}}}|{{{race|}}}}}
|data9 = {{{vision|}}}
|rowclass3 = {{#ifeq:{{#expr:{{#if:{{{gender|}}}|1|0}}or{{#if:{{{race|}}}|1|0}}}}|0|mergedtoprow}} {{#ifeq:{{#expr:{{#expr:{{#if:{{{gender|}}}|1|0}}or{{#if:{{{race|}}}|1|0}}}}and{{#expr:{{#if:{{{faith|}}}|1|0}}or{{#if:{{{alignment|}}}|1|0}}}}}}|1|mergedrow}} {{#ifeq:{{#expr:{{#if:{{{faith|}}}|1|0}}or{{#if:{{{alignment|}}}|1|0}}}}|0|mergedbottomrow}}
|label10 = Activity Cycle
|label3 = Class
|data10 = {{{sleep_cycle|}}}
|data3 = {{#if:{{{class|}}}|{{{class|}}}}}
|label11 = Diet
|rowclass4 = {{#ifeq:{{#expr:{{#if:{{{gender|}}}|1|0}}or{{#if:{{{race|}}}|1|0}}or{{#if:{{{class|}}}|1|0}}}}|0|mergedtoprow}} {{#ifeq:{{#expr:{{#expr:{{#if:{{{gender|}}}|1|0}}or{{#if:{{{race|}}}|1|0}}or{{#if:{{{class|}}}|1|0}}}}and{{#expr:{{#if:{{{alignment|}}}|1|0}}}}}}|1|mergedrow}} {{#ifeq:{{#expr:{{#if:{{{alignment|}}}|1|0}}}}|0|mergedbottomrow}}
|data11 = {{{diet|}}}
|label4 = Faith
|label12 = Average Lifespan
|data4 = {{#if:{{{faith|}}}|{{{faith|}}}}}
|data12 = {{{lifespan|}}}
|rowclass5 = {{#ifeq:{{#expr:{{#if:{{{gender|}}}|1|0}}or{{#if:{{{race|}}}|1|0}}or{{#if:{{{class|}}}|1|0}}or{{#if:{{{faith|}}}|1|0}}}}|0|mergedtoprow}} mergedbottomrow
|label13 = Homeland(s)
|label5 = Alignment
|data13 = {{{homeland|}}}
|data5 = {{#if:{{{alignment|}}}|{{{alignment|}}}}}
|label14 = Intelligence
|rowclass6 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{weight|}}}|1|0}}}}|0|mergedbottomrow}}
|data14 = {{{intelligence|}}}
|label6 = Height
|label15 = Language(s)
|data6 = {{#if:{{{height|}}}|{{{height|}}}}}
|data15 = {{{language|}}}
|rowclass7 = {{#ifeq:{{#expr:{{#if:{{{height|}}}|1|0}}}}|0|mergedtoprow}} mergedbottomrow
|label16 = Subraces
|label7 = Weight
|data16 = {{{subraces|}}}
|data7 = {{#if:{{{weight|}}}|{{{weight|}}}}}
|label17 = Favored Climate
|rowclass8 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{age|}}}|1|0}}or{{#if:{{{born|}}}|1|0}}or{{#if:{{{died|}}}|1|0}}}}|0|mergedbottomrow}}
|data17 = {{{favored_climate|}}}
|label8 = Status
|label18 = Favored Terrain
|data8 = {{#if:{{{status|}}}|{{{status|}}}}}
|data18 = {{{favored_terrain|}}}
|rowclass9 = {{#ifeq:{{#expr:{{#if:{{{status|}}}|1|0}}}}|0|mergedtoprow}} {{#ifeq:{{#expr:{{#expr:{{#if:{{{status|}}}|1|0}}}}and{{#expr:{{#if:{{{born|}}}|1|0}}or{{#if:{{{died|}}}|1|0}}}}}}|1|mergedrow}} {{#ifeq:{{#expr:{{#if:{{{born|}}}|1|0}}or{{#if:{{{died|}}}|1|0}}}}|0|mergedbottomrow}}
 
|label9 = Age
|header19 = Appearance
|data9 = {{#if:{{{age|}}}|{{{age|}}}}}
|label20 = Average Height
|rowclass10 = {{#ifeq:{{#expr:{{#if:{{{status|}}}|1|0}}or{{#if:{{{age|}}}|1|0}}}}|0|mergedtoprow}} {{#ifeq:{{#expr:{{#expr:{{#if:{{{status|}}}|1|0}}or{{#if:{{{age|}}}|1|0}}}}and{{#expr:{{#if:{{{died|}}}|1|0}}}}}}|1|mergedrow}} {{#ifeq:{{#expr:{{#if:{{{died|}}}|1|0}}}}|0|mergedbottomrow}}
|data20 = {{{height|}}}
|label10 = Born
|label21 = Wingspan
|data10 = {{#if:{{{born|}}}|{{{born|}}}}}
|data21 = {{{wingspan|}}}
|rowclass11 = {{#ifeq:{{#expr:{{#if:{{{status|}}}|1|0}}or{{#if:{{{age|}}}|1|0}}or{{#if:{{{born|}}}|1|0}}}}|0|mergedtoprow}} mergedbottomrow
|label22 = Skin Color(s)
|label11 = Died
|data22 = {{{skin_colors|}}}
|data11 = {{#if:{{{died|}}}|{{{died|}}}}}
|label23 = Hair Color(s)
|rowclass12 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{campaigns|}}}|1|0}}or{{#if:{{{firstsession|}}}|1|0}}or{{#if:{{{lastsession|}}}|1|0}}}}|0|mergedbottomrow}}
|data23 = {{{hair_colors|}}}
|label12 = Setting
|label24 = Feather Color(s)
|data12 = {{#if:{{{setting|}}}|{{{setting|}}}}}
|data24 = {{{feathers|}}}
|rowclass13 = {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}}}|0|mergedtoprow}} {{#ifeq:{{#expr:{{#expr:{{#if:{{{setting|}}}|1|0}}}}and{{#expr:{{#if:{{{firstsession|}}}|1|0}}or{{#if:{{{lastsession|}}}|1|0}}}}}}|1|mergedrow}} {{#ifeq:{{#expr:{{#if:{{{firstsession|}}}|1|0}}or{{#if:{{{lastsession|}}}|1|0}}}}|0|mergedbottomrow}}
|label25 = Eye Color(s)
|label13 = Campaigns
|data25 = {{{eye_color|}}}
|data13 = {{#if:{{{campaigns|}}}|{{{campaigns|}}}}}
|label26 = Build
|rowclass14 = {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}or{{#if:{{{campaigns|}}}|1|0}}}}|0|mergedtoprow}} {{#ifeq:{{#expr:{{#expr:{{#if:{{{setting|}}}|1|0}}or{{#if:{{{campaigns|}}}|1|0}}}}and{{#expr:{{#if:{{{lastsession|}}}|1|0}}}}}}|1|mergedrow}} {{#ifeq:{{#expr:{{#if:{{{lastsession|}}}|1|0}}}}|0|mergedbottomrow}}
|data26 = {{{build|}}}
|label14 = First Session
|label27 = Distinctions
|data14 = {{#if:{{{firstsession|}}}|{{{firstsession|}}}}}
|data27 = {{{distinctions|}}}
|rowclass15 = {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}or{{#if:{{{campaigns|}}}|1|0}}or{{#if:{{{firstsession|}}}|1|0}}}}|0|mergedtoprow}} mergedbottomrow
 
|label15 = Last Session
|aboveclass = mergedtoprow name
|data15 = {{#if:{{{lastsession|}}}|{{{lastsession|}}}}}
|subheaderrowclass1 = mergedbottomrow tag
|belowclass = mergedrowtop mergedrowbottom
|imagerowclass1 = mergedtoprow mergedbottomrow
|below = {{#if:{{{charactersheet|}}}|[{{{charactersheet|}}} Character Sheet]}}
|rowclass1 = mergedtoprow
[[Category:All Player Characters]]
|rowstyle1 = background:#DFDECF;
{{#vardefine:CampaignNumber|0}}
|rowclass2 = mergedrow
{{#vardefine:CampaignName|{{#replace:{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}|<br />|}}}}
|rowclass3 = mergedrow
{{#while:
|rowclass4 = mergedrow
|{{#if:{{#var:CampaignName}}|true}}
|rowclass5 = mergedbottomrow
|[[Category:{{#var:CampaignName}} PCs]]{{#vardefine:CampaignNumber|{{#expr:{{#var:CampaignNumber}}+1}}}}{{#vardefine:CampaignName|{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}}}
|rowclass6 = mergedtoprow
}}
|rowstyle6 = background:#DFDECF;
}}</includeonly><noinclude>[[Category:Templates]]</noinclude>
|rowclass7 = mergedrow
|rowclass8 = mergedrow
|rowclass9 = mergedrow
|rowclass10 = mergedrow
|rowclass11 = mergedrow
|rowclass12 = mergedrow
|rowclass13 = mergedrow
|rowclass14 = mergedrow
|rowclass15 = mergedrow
|rowclass16 = mergedrow
|rowclass17 = mergedrow
|rowclass18 = mergedbottomrow
|rowclass19 = mergedtoprow
|rowstyle19 = background:#DFDECF;
|rowclass20 = mergedrow
|rowclass21 = mergedrow
|rowclass22 = mergedrow
|rowclass23 = mergedrow
|rowclass24 = mergedrow
|rowclass25 = mergedrow
|rowclass26 = mergedrow
|rowclass27 = mergedbottomrow
}}</includeonly><noinclude>
{{Documentation}}
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
</noinclude>

Latest revision as of 14:26, 29 May 2022