|
|
Line 1: |
Line 1: |
| <includeonly> | | <includeonly> |
| {{infobox | | {{infobox |
| |aboveclass = mergedtoprow {{#if:{{{title1|}}}||mergedbottomrow}} name
| |
| |above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}} | | |above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}} |
| |subheaderrowclass1 = {{#if:{{{title2|}}}|mergedrow|mergedbottomrow}} title | | |subheader = {{#if:{{{tag|}}}|{{{tag|}}}}} |
| |subheader1 = {{#if:{{{title1|}}}|{{{title1|}}}}}
| | |image = {{#if:{{{image|}}}|[[File:{{{image|}}}|250px]]}} |
| |subheaderrowclass2 = {{#if:{{{title3|}}}|mergedrow|mergedbottomrow}} title | | |caption = {{#if:{{{caption|}}}|{{{caption|}}}}} |
| |subheader2 = {{#if:{{{title2|}}}|{{{title2|}}}}}
| | |label1 = Setting |
| |subheaderrowclass3 = {{#if:{{{title4|}}}|mergedrow|mergedbottomrow}} title
| | |data1 = {{#if:{{{setting|}}}|{{{setting|}}}}} |
| |subheader3 = {{#if:{{{title3|}}}|{{{title3|}}}}}
| | |label2 = Start Date |
| |subheaderrowclass4 = mergedbottomrow
| | |data2 = {{#if:{{{start|}}}|{{{start|}}}}} |
| |subheader4 = {{#if:{{{title4|}}}|{{{title4|}}}}}
| | |label3 = {{#if:{{{|}}}|{{{|}}}|End Date}} |
| |imagerowclass1 = mergedtoprow {{#if:{{{image2|}}}||mergedbottomrow}}
| | |data3 = {{#if:{{{end|}}}|{{{end|}}}}} |
| |image1 = {{#if:{{{image1|}}}|[[File:{{{image1|}}}|250px]]}}
| | |label4 = Characters |
| |caption1 = {{#if:{{{imagecaption1|}}}|{{{imagecaption1|}}}}} | | |data4 = {{#if:{{{characters|}}}|{{{characters|}}}}} |
| |imagerowclass2 = mergedbottomrow
| | |label5 = BBEG |
| |image2 = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|250px]]}}
| | |data5 = {{#if:{{{bbeg|}}}|{{{bbeg|}}}}} |
| |caption2 = {{#if:{{{imagecaption2|}}}|{{{imagecaption2|}}}}}
| | |label6 = First Session |
| |image3 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}}}
| | |data6 = {{#if:{{{firstsession|}}}|{{{firstsession|}}}}} |
| |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 = {{#if:{{{|}}}|{{{|}}}|Last Session}} |
| |label1 = Gender | | |data7 = {{#if:{{{lastsession|}}}|{{{lastsession|}}}}} |
| |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> | | }}</includeonly><noinclude>[[Category:Templates]]</noinclude> |