Template:Infobox test: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{{infobox | |||
|aboveclass = mergedtoprow {{#if:{{{title1|}}}||mergedbottomrow}} name | |||
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}} | |||
|subheaderrowclass1 = {{#if:{{{title2|}}}|mergedrow|mergedbottomrow}} title | |||
|subheader1 = {{#if:{{{title1|}}}|{{{title1|}}}}} | |||
|subheaderrowclass2 = {{#if:{{{title3|}}}|mergedrow|mergedbottomrow}} title | |||
|subheader2 = {{#if:{{{title2|}}}|{{{title2|}}}}} | |||
|subheaderrowclass3 = {{#if:{{{title4|}}}|mergedrow|mergedbottomrow}} title | |||
|subheader3 = {{#if:{{{title3|}}}|{{{title3|}}}}} | |||
|subheaderrowclass4 = mergedbottomrow | |||
|subheader4 = {{#if:{{{title4|}}}|{{{title4|}}}}} | |||
|imagerowclass1 = mergedtoprow {{#if:{{{image2|}}}||mergedbottomrow}} | |||
|image1 = {{#if:{{{image1|}}}|[[File:{{{image1|}}}|250px]]}} | |||
|caption1 = {{#if:{{{imagecaption1|}}}|{{{imagecaption1|}}}}} | |||
|imagerowclass2 = mergedbottomrow | |||
|image2 = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|250px]]}} | |||
|caption2 = {{#if:{{{imagecaption2|}}}|{{{imagecaption2|}}}}} | |||
|image3 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}}} | |||
|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}} | |||
|label1 = Gender | |||
|data1 = {{#if:{{{gender|}}}|{{{gender|}}}}} | |||
|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}} | |||
|label2 = Race | |||
|data2 = {{#if:{{{race|}}}|{{{race|}}}}} | |||
|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}} | |||
|label3 = Class | |||
|data3 = {{#if:{{{class|}}}|{{{class|}}}}} | |||
|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}} | |||
|label4 = Faith | |||
|data4 = {{#if:{{{faith|}}}|{{{faith|}}}}} | |||
|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 | |||
|label5 = Alignment | |||
|data5 = {{#if:{{{alignment|}}}|{{{alignment|}}}}} | |||
|rowclass6 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{weight|}}}|1|0}}}}|0|mergedbottomrow}} | |||
|label6 = Height | |||
|data6 = {{#if:{{{height|}}}|{{{height|}}}}} | |||
|rowclass7 = {{#ifeq:{{#expr:{{#if:{{{height|}}}|1|0}}}}|0|mergedtoprow}} mergedbottomrow | |||
|label7 = Weight | |||
|data7 = {{#if:{{{weight|}}}|{{{weight|}}}}} | |||
|rowclass8 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{age|}}}|1|0}}or{{#if:{{{born|}}}|1|0}}or{{#if:{{{died|}}}|1|0}}}}|0|mergedbottomrow}} | |||
|label8 = Status | |||
|data8 = {{#if:{{{status|}}}|{{{status|}}}}} | |||
|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 | |||
|data9 = {{#if:{{{age|}}}|{{{age|}}}}} | |||
|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}} | |||
|label10 = Born | |||
|data10 = {{#if:{{{born|}}}|{{{born|}}}}} | |||
|rowclass11 = {{#ifeq:{{#expr:{{#if:{{{status|}}}|1|0}}or{{#if:{{{age|}}}|1|0}}or{{#if:{{{born|}}}|1|0}}}}|0|mergedtoprow}} mergedbottomrow | |||
|label11 = Died | |||
|data11 = {{#if:{{{died|}}}|{{{died|}}}}} | |||
|rowclass12 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{campaigns|}}}|1|0}}or{{#if:{{{firstsession|}}}|1|0}}or{{#if:{{{lastsession|}}}|1|0}}}}|0|mergedbottomrow}} | |||
|label12 = Setting | |||
|data12 = {{#if:{{{setting|}}}|{{{setting|}}}}} | |||
|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}} | |||
|label13 = Campaigns | |||
|data13 = {{#if:{{{campaigns|}}}|{{{campaigns|}}}}} | |||
|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}} | |||
|label14 = First Session | |||
|data14 = {{#if:{{{firstsession|}}}|{{{firstsession|}}}}} | |||
|rowclass15 = {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}or{{#if:{{{campaigns|}}}|1|0}}or{{#if:{{{firstsession|}}}|1|0}}}}|0|mergedtoprow}} mergedbottomrow | |||
|label15 = Last Session | |||
|data15 = {{#if:{{{lastsession|}}}|{{{lastsession|}}}}} | |||
|belowclass = mergedrowtop mergedrowbottom | |||
|below = {{#if:{{{charactersheet|}}}|[{{{charactersheet|}}} Character Sheet]}} | |||
[[Category:All Player Characters]] | |||
{{#vardefine:CampaignNumber|0}} | |||
{{#vardefine:CampaignName|{{#replace:{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}|<br />|}}}} | |||
{{#while: | |||
|{{#if:{{#var:CampaignName}}|true}} | |||
|[[Category:{{#var:CampaignName}} PCs]]{{#vardefine:CampaignNumber|{{#expr:{{#var:CampaignNumber}}+1}}}}{{#vardefine:CampaignName|{{#replace:{{#replace:{{#explode:{{{campaigns}}}|{{•}}|{{#var:CampaignNumber}}}}|[|}}|]|}}}} | |||
}} | |||
}}</includeonly><noinclude>[[Category:Templates]]</noinclude> | |||
{{#if:{{{ | |||
{{#if:{{{ | |||
{{#if:{{{ | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
= | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
</noinclude> |