Drinking & Dragons

Difference between revisions of "Template:Campaign"

From Drinking and Dragons
Line 11: Line 11:
<pre>
<pre>
{{Campaign  
{{Campaign  
|active=yes
|activeCampaign=yes
|showDetails=yes
|GM=[[User:Wizardoest]]
|GM=[[User:Wizardoest]]
}}
}}
Line 30: Line 31:
<!--  
<!--  
====== Define Variables ============== -->
====== Define Variables ============== -->
{{#if: {{{GM}}} |{{#vardefine:gm|<strong>GM:</strong> {{{GM}}} }}{{#vardefine:showPanel|1}} |}}
<!--
<!--
  ====== Show Panel, if Needed  ============== -->
  ====== Show Panel, if Needed  ============== -->
{{#var:gm}}
{{#if: {{{showDetails}}} |<div class="panel panel-default"><div class="panel-body">{{#if: {{{GM}}} |<strong>GM:</strong> {{{GM}}}|}}</div></div>|}}
{{#ifeq: {{#var|showPanel}}| 1 | YES<div class="panel panel-default"><div class="panel-body">{{#var:gm}}</div></div> |}}

Revision as of 18:33, 25 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 
|activeCampaign=yes
|showDetails=yes
|GM=[[User:Wizardoest]]
}}

OR

{{Campaign}}
GM: {{{GM}}}