Template:Campaign: Difference between revisions
From Drinking and Dragons
Wizardoest (talk | contribs) No edit summary |
Wizardoest (talk | contribs) No edit summary |
||
Line 24: | Line 24: | ||
__NOTOC__ | __NOTOC__ | ||
</noinclude> | </noinclude> | ||
<!-- ====== Declare Category Tags ============== --> | <!-- | ||
====== Declare Category Tags ============== --> | |||
[[Category:Campaign]] | [[Category:Campaign]] | ||
{{#ifeq: {{{active|}}} | yes | [[Category:Active Campaign]] | }} | {{#ifeq: {{{active|}}} | yes | [[Category:Active Campaign]] | }} | ||
<!-- ====== Define Variables ============== --> | <!-- | ||
====== Define Variables ============== --> | |||
{{#if: {{{GM}}} |{{#vardefine:gm|<strong>GM:</strong> {{{GM}}} }}{{#vardefine:showPanel|1}} |}} | {{#if: {{{GM}}} |{{#vardefine:gm|<strong>GM:</strong> {{{GM}}} }}{{#vardefine:showPanel|1}} |}} | ||
<!-- | |||
====== Show Panel, if Needed ============== --> | |||
{{#ifeq: {{#var|showPanel}}| 1 | <div class="panel panel-default"><div class="panel-body">{{#var:gm}}</div></div> |}} | |||
<!-- ====== Show Panel, if Needed ============== --> | |||
{{# |
Revision as of 02:27, 26 May 2016
Usage
This template applied one or more categories to a campaign.
- active fill this out (with anything) if the campaign is currently being played.
- Coming soon name is the campaign name, e.g. "Lone Rock City"
- Coming soon gm is the campaign GM, e.g. "User:Wizardoest"
Template
Copy, paste, and edit the following to use this template.
{{Campaign |active=yes |GM=[[User:Wizardoest]] }}
OR
{{Campaign}}