|
|
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 = {{#if:{{{tag|}}}|{{{tag|}}}}} |
| |subheader1 = {{#if:{{{tag-line|}}}|{{{tag-line|}}}}}
| | |image = {{#if:{{{image|}}}|[[File:{{{image|}}}|250px]]}} |
| |imagerowclass1 = mergedtoprow {{#if:{{{image2|}}}||mergedbottomrow}} | | |caption = {{#if:{{{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:{{{gamedate|}}}|1|0}}or{{#if:{{{status|}}}|1|0}}}}|1||mergedbottomrow}}
| |
| |label1 = Setting | | |label1 = Setting |
| |data1 = {{#if:{{{setting|}}}|[[{{{setting|}}}]]}} | | |data1 = {{#if:{{{setting|}}}|[[{{{setting|}}}]]}} |
| |rowclass2 =
| |
| |label2 = Start Date | | |label2 = Start Date |
| |data2 = {{#if:{{{startdate|}}}|{{#invoke:Date Stuff|date|{{{startdate|}}}|{{{setting|}}}}}}} | | |data2 = {{#if:{{{start|}}}|{{#invoke:Date Stuff|date|{{{start|}}}|{{{setting|}}}}}}} |
| |rowclass3 = {{#if:{{{setting|}}}||mergedtoprow}} {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}and{{#if:{{{status|}}}|1|0}}}}|1|mergedrow|}} {{#if:{{{status|}}}||mergedbottomrow}} | | |label3 = {{#if:{{#ifeq:{{{status|}}}|Concluded||1}}|Current Date|End Date}} |
| |label3 = {{#if:{{{currentdate|}}}|Current Date|{{#if:{{{enddate|}}}|End Date}}}} | | |data3 = {{#if:{{#ifeq:{{{status|}}}|Concluded|1|}}|{{#invoke:Date Stuff|date|{{{end|}}}|{{{setting|}}}}}|{{#invoke:Date Stuff|date|{{Current Dates|{{{setting|}}}}}|{{{setting|}}}}}}} |
| |data3 = {{#if:{{{currentdate|}}}|{{#invoke:Date Stuff|date|{{{currentdate|}}}|{{{setting|}}}}}|{{#if:{{{enddate|}}}|{{#invoke:Date Stuff|date|{{{enddate|}}}|{{{setting|}}}}}}}}} | |
| |rowclass4 = {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}or{{#if:{{{gamedate|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow | |
| |label4 = Status | | |label4 = Status |
| |data4 = {{#if:{{{status|}}}|{{{status|}}}}} | | |data4 = {{#if:{{{status|}}}|{{{status|}}}}} |
| |rowclass5 = mergedtoprow {{#if:{{{bbeg|}}}||mergedbottomrow}}
| |
| |label5 = Characters | | |label5 = Characters |
| |data5 = {{#if:{{{characters|}}}|{{{characters|}}}}} | | |data5 = {{#if:{{{characters|}}}|{{{characters|}}}}} |
| |rowclass6 = {{#if:{{{characters|}}}||mergedtoprow}} mergedbottomrow
| |
| |label6 = BBEG | | |label6 = BBEG |
| |data6 = {{#if:{{{bbeg|}}}|{{{bbeg|}}}}} | | |data6 = {{#if:{{{bbeg|}}}|{{{bbeg|}}}}} |
| |rowclass7 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{lastsession|}}}|1|0}}or{{#if:{{{previouscampaign|}}}|1|0}}or{{#if:{{{nextcampaign|}}}|1|0}}}}|1||mergedbottomrow}}
| |
| |label7 = First Session | | |label7 = First Session |
| |data7 = {{#if:{{{firstsession|}}}|{{{firstsession|}}}}} | | |data7 = {{#if:{{{firstsession|}}}|[[{{{firstsession|}}}]]}} |
| |rowclass8 = {{#ifeq:{{#expr:{{#if:{{{firstsession|}}}|1|0}}}}|1||mergedtoprow}} {{#ifeq:{{#expr:{{#expr:{{#if:{{{firstsession|}}}|1|0}}}}and{{#expr:{{#if:{{{previouscampaign|}}}|1|0}}or{{#if:{{{nextcampaign|}}}|1|0}}}}}}|1|mergedrow|}} {{#ifeq:{{#expr:{{#if:{{{previouscampaign|}}}|1|0}}or{{#if:{{{nextcampaign|}}}|1|0}}}}|1||mergedbottomrow}} | | |label8 = {{#if:{{#ifeq:{{{status|}}}|Concluded||1}}|Latest Session|Last Session}} |
| |label8 = Last Session
| | |data8 = {{#if:{{{lastsession|}}}|[[{{{lastsession|}}}]]}} |
| |data8 = {{#if:{{{lastsession|}}}|{{{lastsession|}}}}} | | |
| |rowclass9 = {{#ifeq:{{#expr:{{#if:{{{firstsession|}}}|1|0}}or{{#if:{{{lastsession|}}}|1|0}}}}|1||mergedtoprow}} {{#ifeq:{{#expr:{{#expr:{{#if:{{{firstsession|}}}|1|0}}or{{#if:{{{lastsession|}}}|1|0}}}}and{{#expr:{{#if:{{{nextcampaign|}}}|1|0}}}}}}|1|mergedrow|}} {{#ifeq:{{#expr:{{#if:{{{nextcampaign|}}}|1|0}}}}|1||mergedbottomrow}} | | |aboveclass = name |
| |label9 = Prev. Campaign | | |subheaderrowclass1 = mergedbottomrow tag |
| |data9 = {{#if:{{{previouscampaign|}}}|{{{previouscampaign|}}}}} | | |imagerowclass1 = mergedtoprow mergedbottomrow |
| |rowclass10 = {{#ifeq:{{#expr:{{#if:{{{firstsession|}}}|1|0}}or{{#if:{{{lastsession|}}}|1|0}}or{{#if:{{{previouscampaign|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow | | |rowclass1 = mergedtoprow |
| |label10 = Next Campaign | | |rowclass2 = mergedrow |
| |data10 = {{#if:{{{nextcampaign|}}}|{{{nextcampaign|}}}}} | | |rowclass3 = mergedrow |
| |belowclass = | | |rowclass4 = mergedbottomrow |
| |below = | | |rowclass5 = mergedtoprow |
| }}[[Category:All Campaigns]]
| | |rowclass6 = mergedbottomrow |
| {{#if:{{{setting|}}}|[[Category:{{#replace:{{#replace:{{{setting|}}}|[|}}|]|}} Campaigns]]|}}</includeonly><noinclude>[[Category:Templates]]</noinclude>
| | |rowclass7 = mergedtoprow |
| | |rowclass8 = mergedbottomrow |
| | }}</includeonly><noinclude>[[Category:Templates]]</noinclude> |