From GamingWiki
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude><!--
 
</noinclude><!--
 +
 +
--><includeonly><!--
  
 
-->{{Navbox
 
-->{{Navbox
| name = {{{template_name|<noinclude>Campaign navigation box</noinclude>}}}
+
| name = {{{template_name|{{{template name|}}}}}}
 
| state = {{#if:{{{state|}}}|{{{state}}}|{{{collapse_state|autocollapse}}}}}
 
| state = {{#if:{{{state|}}}|{{{state}}}|{{{collapse_state|autocollapse}}}}}
 
| border = {{{border|}}}
 
| border = {{{border|}}}
Line 10: Line 12:
  
 
| title = {{{header|{{{title}}}}}}
 
| title = {{{header|{{{title}}}}}}
| above = {{{subtitle<includeonly>|</includeonly>}}}
+
| above = {{{subtitle|}}}
  
 
| imagestyle = {{{imagestyle}}}
 
| imagestyle = {{{imagestyle}}}
| image = {{{image<includeonly>|</includeonly>}}}
+
| image = {{#if:{{{image|}}}|[[{{{image}}}|120px]]}}
  
 
| title1 = testing
 
| title1 = testing
 
| body1  = more testing
 
| body1  = more testing
  
<!--
+
| groups = <!--
  Loop until we run out of groups
+
   -->{{#forargs: group | grpidx | grpval |<!--
   -->{{#vardefine: grpidx | 1}}<!--
+
    -->;; {{#var:grpidx}} // {{#var:grpval}}<!--
  -->{{#while: | {{{title{{#var:grpidx}}|}}}{{{group{{#var:grpidx}}|}}}{{{body{{#var:grpidx}}|}}}{{#ifexpr:{{#var:grpidx}}<2|1|}}|<!--
+
  -->}}<!--
    --><esc>{{!}}</esc> group{{#var:grpidx}} = {{{title{{#var:grpidx}}|{{{group{{#var:grpidx}}}}} }}}<noinclude>{{{group{{#var:grpidx}}}}}</noinclude><!--
+
 
     --><esc>{{!}}</esc> list{{#var:grpidx}} = {{#if:{{{body{{#var:grpidx}}<includeonly>|</includeonly>}}}|{{{body{{#var:grpidx}}}}}}}<!--
+
-->
    -->{{#vardefine: grpidx | {{#expr:{{#var:grpidx}}+1}}}}<!--
+
| lists = <!--
  -->}}<!--
+
  -->{{#forargs: list | lstidx | lstval |<!--
-->}}
+
     -->;; {{#var:lstidx}} // {{#var:lstval}}<!--
 +
  -->}}<!--
 +
 
 +
-->}}<!--
 +
--></includeonly>

Latest revision as of 04:20, 16 April 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.