Template:Infobox Campaign: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{infobox
<includeonly>{{infobox
|aboveclass = mergedtoprow {{#if:{{{tag-line|}}}||mergedbottomrow}} name
|autoheaders = y
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|subheaderrowclass1 = mergedbottomrow title
|subheader = {{{tag|}}}
|subheader1 = {{#if:{{{tag-line|}}}|{{{tag-line|}}}}}
|image = {{{image|}}}
|imagerowclass1 = mergedtoprow {{#if:{{{image2|}}}||mergedbottomrow}}
|caption = {{{caption|}}}
|image1 = {{#if:{{{image1|}}}|[[File:{{{image1|}}}|250px]]}}
 
|caption1 = {{#if:{{{imagecaption1|}}}|{{{imagecaption1|}}}}}
|header1 = Status
|imagerowclass2 = mergedbottomrow
|label2 = Setting
|image2 = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|250px]]}}
|data2 = {{{setting|}}}
|caption2 = {{#if:{{{imagecaption2|}}}|{{{imagecaption2|}}}}}
|label3 = Start Date
|imagerowclass3 = mergedtoprow mergedbottomrow
|data3 = {{{start|}}}
|image3 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}]]}}
|label4 = {{#if:{{{current_end|}}}|{{{current_end|}}} Date|{{{current_end|}}} Date}}
|rowclass1 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{gamedate|}}}|1|0}}or{{#if:{{{status|}}}|1|0}}}}|1||mergedbottomrow}}
|data4 = {{{end|}}}
|label1 = Setting
|label5 = Status
|data1 = {{#if:{{{setting|}}}|[[{{{setting|}}}]]}}
|data5 = {{{status|}}}
|rowclass2 = {{#if:{{{setting|}}}||mergedtoprow}} {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}and{{#if:{{{status|}}}|1|0}}}}|1|mergedrow|}} {{#if:{{{status|}}}||mergedbottomrow}}
 
|label2 = Game Date
|header6 = Cast
|data2 = {{#if:{{{gamedate|}}}|{{#invoke:Date Stuff|date|{{{gamedate|}}}|{{{setting|}}}}}}}
|label7 = Characters
|rowclass3 = {{#ifeq:{{#expr:{{#if:{{{setting|}}}|1|0}}or{{#if:{{{gamedate|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow
|data7 = {{{characters|}}}
|label3 = Status
|label8 = BBEG
|data3 = {{#if:{{{status|}}}|{{{status|}}}}}
|data8 = {{{bbeg|}}}
|rowclass4 = mergedtoprow {{#if:{{{bbeg|}}}||mergedbottomrow}}
 
|label4 = Characters
|header9 = Timeline
|data4 = {{#if:{{{characters|}}}|{{{characters|}}}}}
|label10 = First Session
|rowclass5 = {{#if:{{{characters|}}}||mergedtoprow}} mergedbottomrow
|data10 = {{{firstsession|}}}
|label5 = BBEG
|label11 = {{#if:{{{latest_last|}}}|{{{latest_last|}}} Session|{{{latest_last|}}} Session}}
|data5 = {{#if:{{{bbeg|}}}|{{{bbeg|}}}}}
|data11 = {{{lastsession|}}}
|rowclass6 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{lastsession|}}}|1|0}}or{{#if:{{{previouscampaign|}}}|1|0}}or{{#if:{{{nextcampaign|}}}|1|0}}}}|1||mergedbottomrow}}
 
|label6 = First Session
|aboveclass = mergedtoprow name
|data6 = {{#if:{{{firstsession|}}}|{{{firstsession|}}}}}
|subheaderrowclass1 = mergedbottomrow tag
|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}}
|imagerowclass1 = mergedtoprow mergedbottomrow
|label7 = Last Session
|rowclass1 = mergedtoprow campaign
|data7 = {{#if:{{{lastsession|}}}|{{{lastsession|}}}}}
|rowclass2 = mergedrow
|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}}
|rowclass3 = mergedrow
|label8 = Prev. Campaign
|rowclass4 = mergedrow
|data8 = {{#if:{{{previouscampaign|}}}|{{{previouscampaign|}}}}}
|rowclass5 = mergedbottomrow
|rowclass9 = {{#ifeq:{{#expr:{{#if:{{{firstsession|}}}|1|0}}or{{#if:{{{lastsession|}}}|1|0}}or{{#if:{{{previouscampaign|}}}|1|0}}}}|1||mergedtoprow}} mergedbottomrow
|rowclass6 = mergedtoprow campaign
|label9 = Next Campaign
|rowclass7 = mergedrow
|data9 = {{#if:{{{nextcampaign|}}}|{{{nextcampaign|}}}}}
|rowclass8 = mergedbottomrow
|belowclass =  
|rowclass9 = mergedtoprow campaign
|below =  
|rowclass10 = mergedrow
}}[[Category:All Campaigns]]
|rowclass11 = mergedbottomrow
{{#if:{{{setting|}}}|[[Category:{{#replace:{{#replace:{{{setting|}}}|[|}}|]|}} Campaigns]]|}}</includeonly><noinclude>[[Category:Templates]]</noinclude>
}}</includeonly><noinclude>
{{Documentation}}
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
</noinclude>

Latest revision as of 12:13, 30 May 2022