Difference between revisions of "Template:Campaign"
From Drinking and Dragons
Wizardoest (talk | contribs) |
Wizardoest (talk | contribs) (Good stopping point for now.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
This template applied | This template applied to the main page of a campaign. | ||
* '''active''' | * '''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> ''' | * <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 | ||
|activeCampaign= | |activeCampaign=TRUE | ||
|showDetails= | |showDetails=TRUE | ||
|GM=[[User:Wizardoest]] | |GM=[[User:Wizardoest]] | ||
}} | }} | ||
Line 25: | Line 28: | ||
__NOTOC__ | __NOTOC__ | ||
</noinclude> | </noinclude> | ||
<!-- | <!-- ====== Declare Category Tags ============== --> | ||
[[Category:Campaign]] | [[Category:Campaign]] | ||
{{#ifeq: {{{active|}}} | | {{#ifeq: {{{active|}}} | TRUE | [[Category:Active Campaign]] | }} | ||
<!-- | <!-- | ||
====== Show | ====== Show panel, if `show details` is TRUE ============== --> | ||
{{# | {{#ifeq: {{{showDetails}}}|TRUE |<div class="panel panel-default"><div class="panel-body"> | ||
{{#if: {{{GM}}} |<strong>GM:</strong> {{{GM}}}|}} | |||
</div></div>|}} |
Latest revision as of 18:44, 25 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}}