Drinking & Dragons

Template:Campaign: Difference between revisions

From Drinking and Dragons
No edit summary
Good stopping point for now.
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
== Usage ==
== Usage ==
This template applied one or more categories to a campaign.
This template applied to the main page of a campaign.
* '''active''' fill this out (with anything) if the campaign is currently being played.
* '''active''' set this to <code>TRUE</code> if the campaign is active. It will apply the [[:Category:Active Campaign]] to the page.
* '''showDetails''' set this to <code>TRUE</code> to show a detail block on the page with additional information about the campaign
* '''gm''' is the campaign GM as either a wiki link, e.g. <code><nowiki>[[User:Wizardoest]]</nowiki></code>, or as plain text, e.g. "Ryan Schoon".
* <span class="label label-default">Coming soon</span> '''name''' is the campaign name, e.g. "Lone Rock City"
* <span class="label label-default">Coming soon</span> '''name''' is the campaign name, e.g. "Lone Rock City"
* <span class="label label-default">Coming soon</span> '''gm''' is the campaign GM, e.g. "[[User:Wizardoest]]"
* <span class="label label-default">Coming soon</span> '''about''' is the campaign short description, e.g. "''Brewed Awakening'' is a cinematic campaign of magic in the modern world and is heavily influenced by the book series ''The Dresden Files'' and the television shows ''Buffy'', ''Angel'', and ''Supernatural''. "
* <span class="label label-default">Coming soon</span> '''dates''' is a text field to list when the campaign was played, e.g. "Feb-June 2016", "May 2016-present", or "14 Jan 2016".


== Template ==
== Template ==
Line 11: Line 14:
<pre>
<pre>
{{Campaign  
{{Campaign  
|active=yes
|activeCampaign=TRUE
|showDetails=TRUE
|GM=[[User:Wizardoest]]
|GM=[[User:Wizardoest]]
}}
}}
Line 24: Line 28:
__NOTOC__
__NOTOC__
</noinclude>
</noinclude>
<!--
<!-- ====== Declare Category Tags ============== -->
====== Declare Category Tags ============== -->
[[Category:Campaign]]
[[Category:Campaign]]
{{#ifeq: {{{active|}}} | yes | [[Category:Active Campaign]] | }}
{{#ifeq: {{{active|}}} | TRUE | [[Category:Active Campaign]] | }}
<!--
====== Define Variables ============== -->
{{#if: {{{GM}}} |{{#vardefine:gm|<strong>GM:</strong> {{{GM}}} }}{{#vardefine:showPanel|1}} |}}
<!--
<!--
  ====== Show Panel, if Needed ============== -->
  ====== Show panel, if `show details` is TRUE ============== -->
{{#var:gm}}
{{#ifeq: {{{showDetails}}}|TRUE |<div class="panel panel-default"><div class="panel-body">
{{#ifeq: {{#var|showPanel}}| 1 | <div class="panel panel-default"><div class="panel-body">{{#var:gm}}</div></div> |}}
{{#if: {{{GM}}} |<strong>GM:</strong> {{{GM}}}|}}
</div></div>|}}

Latest revision as of 02:44, 26 May 2016

Usage

This template applied to the main page of a campaign.

  • active set this to TRUE if the campaign is active. It will apply the Category:Active Campaign to the page.
  • showDetails set this to TRUE to show a detail block on the page with additional information about the campaign
  • gm is the campaign GM as either a wiki link, e.g. [[User:Wizardoest]], or as plain text, e.g. "Ryan Schoon".
  • Coming soon name is the campaign name, e.g. "Lone Rock City"
  • Coming soon about is the campaign short description, e.g. "Brewed Awakening is a cinematic campaign of magic in the modern world and is heavily influenced by the book series The Dresden Files and the television shows Buffy, Angel, and Supernatural. "
  • Coming soon dates is a text field to list when the campaign was played, e.g. "Feb-June 2016", "May 2016-present", or "14 Jan 2016".

Template

Copy, paste, and edit the following to use this template.

{{Campaign 
|activeCampaign=TRUE
|showDetails=TRUE
|GM=[[User:Wizardoest]]
}}

OR

{{Campaign}}