Difference between revisions of "Template:Rules"

From xat wiki
Jump to: navigation, search
(for consistency, expandable rules are now the supported method; staff attribute abolished)
(heading)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
Attributes:
 
Attributes:
 +
* '''heading''' - change the heading for rules (optional, defaults to ''Chatname Rules'')
 
* '''header''' - add important message at the very top of the rules
 
* '''header''' - add important message at the very top of the rules
 
* '''header2''' - adds message right after with underline attribute (optional)
 
* '''header2''' - adds message right after with underline attribute (optional)
Line 12: Line 13:
 
*'''|rule1d='''Now here I explain in '''d'''etail what words and situations apply to this rule.
 
*'''|rule1d='''Now here I explain in '''d'''etail what words and situations apply to this rule.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
 +
<h1 style="text-align:center">{{#if:{{{heading|}}}|{{{heading}}}|{{PAGENAME}} Rules}}</h1>
 +
 
<div style="width:70%; background: #f8f8ff; border: 1px solid #ddd; padding: 15px; margin: 0 auto"><!--
 
<div style="width:70%; background: #f8f8ff; border: 1px solid #ddd; padding: 15px; margin: 0 auto"><!--
  

Revision as of 13:42, 25 August 2015

Attributes:

  • heading - change the heading for rules (optional, defaults to Chatname Rules)
  • header - add important message at the very top of the rules
  • header2 - adds message right after with underline attribute (optional)
  • languages - value yes, if rules are translatable
  • extra - something extra that needs mentioning (staff information etc)
  • rule# - Short introduction of a rule
  • rule#d - More detailed version of a rule

Example:

  • |rule1=No profanity.
  • |rule1d=Now here I explain in detail what words and situations apply to this rule.