Template:Infobox Campaign: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 15: Line 15:
|label1 = Setting
|label1 = Setting
|data1 = {{#if:{{{setting|}}}|[[{{{setting|}}}]]}}
|data1 = {{#if:{{{setting|}}}|[[{{{setting|}}}]]}}
|rowclass2 = {{#if:{{{setting|}}}||mergedtoprow}} {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}and{{#if:{{{status|}}}|1|0}}}}|1|mergedrow|}} {{#if:{{{status|}}}||mergedbottomrow}}
|rowclass2 =
|label2 = Game Date
|label2 = Start Date
|data2 = {{#if:{{{gamedate|}}}|{{#invoke:Date Stuff|date|{{{gamedate|}}}|{{{setting|}}}}}}}
|data2 = {{#if:{{{startdate|}}}|{{#invoke:Date Stuff|date|{{{gamedate|}}}|{{{setting|}}}}}}}
|rowclass3 = {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}or{{#if:{{{gamedate|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow
|rowclass3 = {{#if:{{{setting|}}}||mergedtoprow}} {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}and{{#if:{{{status|}}}|1|0}}}}|1|mergedrow|}} {{#if:{{{status|}}}||mergedbottomrow}}
|label3 = Status
|label3 = {{#if:{{{currentdate|}}}|Current Date|{{#if:{{{enddate|}}}|End Date}}}}
|data3 = {{#if:{{{status|}}}|{{{status|}}}}}
|data3 = {{#if:{{{currentdate|}}}|{{#invoke:Date Stuff|date|{{{currentdate|}}}|{{{setting|}}}}}|{{#if:{{{enddate|}}}|{{#invoke:Date Stuff|date|{{{enddate|}}}|{{{setting|}}}}}}}}}
|rowclass4 = mergedtoprow {{#if:{{{bbeg|}}}||mergedbottomrow}}
|rowclass4 = {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}or{{#if:{{{gamedate|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow
|label4 = Characters
|label4 = Status
|data4 = {{#if:{{{characters|}}}|{{{characters|}}}}}
|data4 = {{#if:{{{status|}}}|{{{status|}}}}}
|rowclass5 = {{#if:{{{characters|}}}||mergedtoprow}} mergedbottomrow
|rowclass5 = mergedtoprow {{#if:{{{bbeg|}}}||mergedbottomrow}}
|label5 = BBEG
|label5 = Characters
|data5 = {{#if:{{{bbeg|}}}|{{{bbeg|}}}}}
|data5 = {{#if:{{{characters|}}}|{{{characters|}}}}}
|rowclass6 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{lastsession|}}}|1|0}}or{{#if:{{{previouscampaign|}}}|1|0}}or{{#if:{{{nextcampaign|}}}|1|0}}}}|1||mergedbottomrow}}
|rowclass6 = {{#if:{{{characters|}}}||mergedtoprow}} mergedbottomrow
|label6 = First Session
|label6 = BBEG
|data6 = {{#if:{{{firstsession|}}}|{{{firstsession|}}}}}
|data6 = {{#if:{{{bbeg|}}}|{{{bbeg|}}}}}
|rowclass7 = {{#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}}
|rowclass7 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{lastsession|}}}|1|0}}or{{#if:{{{previouscampaign|}}}|1|0}}or{{#if:{{{nextcampaign|}}}|1|0}}}}|1||mergedbottomrow}}
|label7 = Last Session
|label7 = First Session
|data7 = {{#if:{{{lastsession|}}}|{{{lastsession|}}}}}
|data7 = {{#if:{{{firstsession|}}}|{{{firstsession|}}}}}
|rowclass8 = {{#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}}
|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 = Prev. Campaign
|label8 = Last Session
|data8 = {{#if:{{{previouscampaign|}}}|{{{previouscampaign|}}}}}
|data8 = {{#if:{{{lastsession|}}}|{{{lastsession|}}}}}
|rowclass9 = {{#ifeq:{{#expr:{{#if:{{{firstsession|}}}|1|0}}or{{#if:{{{lastsession|}}}|1|0}}or{{#if:{{{previouscampaign|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow
|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}}
|label9 = Next Campaign
|label9 = Prev. Campaign
|data9 = {{#if:{{{nextcampaign|}}}|{{{nextcampaign|}}}}}
|data9 = {{#if:{{{previouscampaign|}}}|{{{previouscampaign|}}}}}
|rowclass10 = {{#ifeq:{{#expr:{{#if:{{{firstsession|}}}|1|0}}or{{#if:{{{lastsession|}}}|1|0}}or{{#if:{{{previouscampaign|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow
|label10 = Next Campaign
|data10 = {{#if:{{{nextcampaign|}}}|{{{nextcampaign|}}}}}
|belowclass =  
|belowclass =  
|below =  
|below =  
}}[[Category:All Campaigns]]
}}[[Category:All Campaigns]]
{{#if:{{{setting|}}}|[[Category:{{#replace:{{#replace:{{{setting|}}}|[|}}|]|}} Campaigns]]|}}</includeonly><noinclude>[[Category:Templates]]</noinclude>
{{#if:{{{setting|}}}|[[Category:{{#replace:{{#replace:{{{setting|}}}|[|}}|]|}} Campaigns]]|}}</includeonly><noinclude>[[Category:Templates]]</noinclude>

Navigation menu