From GamingWiki
Jump to: navigation, search
Line 1: Line 1:
{{Navbox
+
<noinclude>
 +
{{documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude><!--
 +
 
 +
-->{{Navbox
 
|name = {{{template_name|<noinclude>Campaign navigation box</noinclude>}}}
 
|name = {{{template_name|<noinclude>Campaign navigation box</noinclude>}}}
 
|state = {{#if:{{{state|}}}|{{{state}}}|{{{collapse_state|autocollapse}}}}}
 
|state = {{#if:{{{state|}}}|{{{state}}}|{{{collapse_state|autocollapse}}}}}
Line 11: Line 16:
  
 
|imagestyle = {{{imagestyle}}}
 
|imagestyle = {{{imagestyle}}}
|image = {{{image<includeonly>|</includeonly>}}}
+
|image = {{{image<includeonly>|</includeonly>}}}<!--
  
|group1 = {{{title1|{{{group1|}}} }}}<noinclude>{{{group1}}}</noinclude>
+
  Loop until we run out of groups
|list1 = {{#if:{{{body1<includeonly>|</includeonly>}}}|{{{body1}}}}}
+
-->{{#vardefine: grpidx | 1}}<!--
 +
-->{{#while: | {{{group{{#var:grpidx}}|}}}{{{body{{#var:grpidx}}|}}}|<!--
 +
  -->{{!}} group{{#var:grpidx}} = {{{title{{#var:grpidx}}|{{{group{{#var:grpidx}}|}}} }}}<noinclude>{{{group{{#var:grpidx}}}}}</noinclude><!--
 +
  -->{{!}} list{{#var:grpidx}} = {{#if:{{{body{{#var:grpidx}}<includeonly>|</includeonly>}}}|{{{body{{#var:grpidx}}}}}}}<!--
 +
  -->{{#vardefine: grpidx | {{#expr:{{#var:grpidx}}+1}}}}<!--
 +
-->}}<!--
  
|group2 = {{{title2|{{{group2|}}} }}}<noinclude>{{{group2}}}</noinclude>
+
-->}}
|list2 = {{#if:{{{body2<includeonly>|</includeonly>}}}|{{{body2}}}}}
 
 
 
|group3 = {{{title3|{{{group3|}}} }}}<noinclude>{{{group3}}}</noinclude>
 
|list3 = {{#if:{{{body3<includeonly>|</includeonly>}}}|{{{body3}}}}}
 
 
 
|group4 = {{{title4|{{{group4|}}} }}}<noinclude>{{{group4}}}</noinclude>
 
|list4 = {{#if:{{{body4<includeonly>|</includeonly>}}}|{{{body4}}}}}
 
 
 
|group5 = {{{title5|{{{group5|}}} }}}<noinclude>{{{group5}}}</noinclude>
 
|list5 = {{#if:{{{body5<includeonly>|</includeonly>}}}|{{{body5}}}}}
 
 
 
|group6 = {{{title6|{{{group6|}}} }}}<noinclude>{{{group6}}}</noinclude>
 
|list6 = {{#if:{{{body6<includeonly>|</includeonly>}}}|{{{body6}}}}}
 
 
 
|group7 = {{{title7|{{{group7|}}} }}}<noinclude>{{{group7}}}</noinclude>
 
|list7 = {{#if:{{{body7<includeonly>|</includeonly>}}}|{{{body7}}}}}
 
 
 
|group8 = {{{title8|{{{group8|}}} }}}<noinclude>{{{group8}}}</noinclude>
 
|list8 = {{#if:{{{body8<includeonly>|</includeonly>}}}|{{{body8}}}}}
 
 
 
}}<noinclude>
 
 
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 

Revision as of 17:01, 12 February 2011

[edit] [purge]
Error creating thumbnail: File missing
Template documentation
{{Campaign navigation box
| title    = Widgets in [[my campaign]]
| template_name = Mycampaign widgets
| image = Image:Terra Φ cluster.jpg
| collapse_state = {{{state | {{{1 | <includeonly>autocollapse</includeonly> <noinclude>expanded</noinclude> }}} }}}

| group1 = First-class widgets
| list1  = [[Widgeroo]] :: [[Widgeroo junior]] :: [[Widgetmaster]] :: everyone else :: [[Widgeroo]]

| group2 = Second-class widgets
| list2  = [[Widgeroo the third]]

| group3 = Minor widgets
| list3  = [[Weedgeroo]]

}}

This box displays arbitrary information about your campaign.