Difference between revisions of "Template:Policy/doc"

From Goon Wiki
Jump to: navigation, search
(Created page with "This template sets the metadata for policies. <noinclude>Category:Template documentation</noinclude>")
 
 
Line 1: Line 1:
This template sets the metadata for policies.
This is a template for use in assigning data to [[Policies and Rules]].
 
Call this template on the page for a policy or rule by using '''<nowiki>{{Policy}}</nowiki>'''. The template does not set the properties of the page automatically.
 
Variables usable in the template are as follows:
 
*'''type:''' Sets the [[Property:Policy type|policy type]]. This can be ''Imperium'', ''GSF'', or ''Other''.
*'''description:''' Sets the [[Property:Policy description|policy description]]. This should be a text string which gives a quick overview of the purpose or the organization.
*'''priority:''' Sets the [[Property:Policy priority|policy priority]]. This is a number, which controls the order in which a policy is surfaced in [[Template:Sidebar Policy]].
 
Invoking this template also adds the page to [[:Category:Policies]]. It does not add the page to any other categories.
 
A full call of the template looks like this:
 
<pre>{{Policy
|type=Imperium
|description=An example policy.
|priority=0}}</pre>
 


<noinclude>[[Category:Template documentation]]</noinclude>
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 08:29, 11 November 2021

This is a template for use in assigning data to Policies and Rules.

Call this template on the page for a policy or rule by using {{Policy}}. The template does not set the properties of the page automatically.

Variables usable in the template are as follows:

  • type: Sets the policy type. This can be Imperium, GSF, or Other.
  • description: Sets the policy description. This should be a text string which gives a quick overview of the purpose or the organization.
  • priority: Sets the policy priority. This is a number, which controls the order in which a policy is surfaced in Template:Sidebar Policy.

Invoking this template also adds the page to Category:Policies. It does not add the page to any other categories.

A full call of the template looks like this:

{{Policy
|type=Imperium
|description=An example policy.
|priority=0}}