Template:Infobox Campaign: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(33 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{infobox
<includeonly>{{infobox
|aboveclass = mergedtoprow {{#if:{{{tag-line|}}}||mergedbottomrow}}
|autoheaders = y
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|subheaderrowclass1 = mergedbottomrow
|subheader = {{{tag|}}}
|subheader1 = {{#if:{{{tag-line|}}}|{{{tag-line|}}}}}
|image = {{{image|}}}
|caption = {{{caption|}}}


|imagerowclass1 = mergedtoprow {{#if:{{{image2|}}}||mergedbottomrow}}
|header1 = Status
|image1 = {{#if:{{{image1|}}}|[[File:{{{image1|}}}|250px]]}}
|label2 = Setting
|caption1 = {{#if:{{{imagecaption1|}}}|{{{imagecaption1|}}}}}
|data2 = {{{setting|}}}
|imagerowclass2 = mergedbottomrow
|label3 = Start Date
|image2 = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|250px]]}}
|data3 = {{{start|}}}
|caption2 = {{#if:{{{imagecaption2|}}}|{{{imagecaption2|}}}}}
|label4 = {{#if:{{{current_end|}}}|{{{current_end|}}} Date|{{{current_end|}}} Date}}
|imagerowclass3 = mergedtoprow mergedbottomrow
|data4 = {{{end|}}}
|image3 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}]]}}
|label5 = Status
|data5 = {{{status|}}}


|rowclass1 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{gamedate|}}}|1|0}}or{{#if:{{{status|}}}|1|0}}}}|1||mergedbottomrow}}
|header6 = Cast
|label1 = Setting
|label7 = Characters
|data1 = {{#if:{{{setting|}}}|{{{setting|}}}}}
|data7 = {{{characters|}}}
|rowclass2 = {{#if:{{{setting|}}}||mergedtoprow}} {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}and{{#if:{{{status|}}}|1|0}}}}|1|mergedrow|}} {{#if:{{{status|}}}||mergedbottomrow}}
|label8 = BBEG
|label2 = Game Date
|data8 = {{{bbeg|}}}
|data2 = {{#if:{{{gamedate|}}}|{{{gamedate|}}}}}
|rowclass3 = {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}or{{#if:{{{gamedate|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow
|label3 = Status
|data3 = {{#if:{{{status|}}}|{{{status|}}}}}


|rowclass4 = mergedtoprow {{#if:{{{bbeg|}}}||mergedbottomrow}}
|header9 = Timeline
|label4 = Characters
|label10 = First Session
|data4 = {{#if:{{{characters|}}}|{{{characters|}}}}}
|data10 = {{{firstsession|}}}
|rowclass5 = {{#if:{{{characters|}}}||mergedtoprow}} mergedbottomrow
|label11 = {{#if:{{{latest_last|}}}|{{{latest_last|}}} Session|{{{latest_last|}}} Session}}
|label5 = BBEG
|data11 = {{{lastsession|}}}
|data5 = {{#if:{{{bbeg|}}}|{{{bbeg|}}}}}


|rowclass6 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{lastsession|}}}|1|0}}or{{#if:{{{previouscampaign|}}}|1|0}}or{{#if:{{{nextcampaign|}}}|1|0}}}}|1||mergedbottomrow}}
|aboveclass = mergedtoprow name
|label6 = First Session
|subheaderrowclass1 = mergedbottomrow tag
|data6 = {{#if:{{{firstsession|}}}|{{{firstsession|}}}}}
|imagerowclass1 = mergedtoprow mergedbottomrow
|rowclass7 = {{#ifeq:{{#expr:{{#if{{{firstsession|}}}|1|0}}}}|1||mergedtoprow}}  {{#ifeq:{{#expr:{{#if:{{{previouscampaign|}}}|1|0}}or{{#if:{{{nextcampaign|}}}|1|0}}}}|1||mergedbottomrow}}
|rowclass1 = mergedtoprow campaign
|label7 = Last Session
|rowclass2 = mergedrow
|data7 = {{#if:{{{lastsession|}}}|{{{lastsession|}}}}}
|rowclass3 = mergedrow
|rowclass8 = {{#ifeq:{{#expr:{{#if{{{firstsession|}}}|1|0}}or{{#if{{{lastsession|}}}|1|0}}}}|1||mergedtoprow}}  {{#ifeq:{{#expr:{{#if:{{{nextcampaign|}}}|1|0}}}}|1||mergedbottomrow}}
|rowclass4 = mergedrow
|label8 = Previous Campaign
|rowclass5 = mergedbottomrow
|data8 = {{#if:{{{previouscampaign|}}}|{{{previouscampaign|}}}}}
|rowclass6 = mergedtoprow campaign
|rowclass9 = {{#ifeq:{{#expr:{{#if{{{firstsession|}}}|1|0}}or{{#if{{{lastsession|}}}|1|0}}or{{#if{{{previouscampaign|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow
|rowclass7 = mergedrow
|label9 = Next Campaign
|rowclass8 = mergedbottomrow
|data9 = {{#if:{{{nextcampaign|}}}|{{{nextcampaign|}}}}}
|rowclass9 = mergedtoprow campaign
 
|rowclass10 = mergedrow
|belowclass =  
|rowclass11 = mergedbottomrow
|below =  
}}</includeonly><noinclude>
 
{{Documentation}}
 
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
{{#if:{{{setting|}}}|1|0}}
</noinclude>
{{#if:{{{status|}}}|1|0}}
{{#expr:{{#if:{{{setting|}}}|1|0}}and{{#if:{{{status|}}}|1|0}}}}
{{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}and{{#if:{{{status|}}}|1|0}}}}|1|mergedrow|}}
 
 
 
 
 
}}</includeonly><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 12:13, 30 May 2022