Difference between revisions of "Template:Rules"

From xat wiki
Jump to: navigation, search
 
(10 intermediate revisions by the same user not shown)
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)
 
* '''languages''' - value '''yes''', if rules are translatable
 
* '''languages''' - value '''yes''', if rules are translatable
* '''rules''' - list of rules (optional, '''see below for rule spoilers''')
+
* '''extra''' - something extra that needs mentioning (staff information etc)
* '''staff''' - notes to staff members (optional)
+
* '''language''' - language code for recommended articles (optional, defaults to English)
* '''extra''' - something extra that needs mentioning, see [[Trade Chat]] for example (optional)
 
Having the staff attribute not included might be what you're after, if you have rules that are not in english. Information about staff can in that situation be included under attribute '''extra''' (see [[Rules:Fundos]] for an example).
 
----
 
'''Optional''': If you wish, you could have your rules expand to save space (see [[Rules:Help]] for an example)
 
 
 
Attributes:
 
 
*'''rule#''' - Short introduction of a rule
 
*'''rule#''' - Short introduction of a rule
 
*'''rule#d''' - More detailed version of a rule
 
*'''rule#d''' - More detailed version of a rule
  
 
Example:
 
Example:
*'''|rule='''No profanity.
+
*'''|rule1='''No profanity.
*'''|ruled='''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>
<div style="width:70%; background: #f8f8ff; border: 1px solid #ddd; padding: 15px; margin: 0 auto"><!--
+
<h1 style="text-align:center; width: 100%; margin: 0 auto 15px; border-bottom: 1px solid #ccc; box-sizing: border-box">{{#if:{{{heading|}}}|{{{heading}}}|{{PAGENAME}} Rules}}</h1>
 +
 
 +
<div style="width:100%; background: #f8f8ff; border: 1px solid #ddd; padding: 15px; margin: 0 auto; box-sizing: border-box"><!--
  
 
--><div style="font-weight:bold; text-align:center; padding-bottom: 8px; margin: 0 auto; width: 70%">{{{header}}}</div><!--
 
--><div style="font-weight:bold; text-align:center; padding-bottom: 8px; margin: 0 auto; width: 70%">{{{header}}}</div><!--
Line 91: Line 88:
 
</div>}}<!--
 
</div>}}<!--
  
-->{{#if:{{{staff|}}}|<div style="padding-top: 25px">
+
-->{{#if:{{{extra|}}}|<div style="padding-top: 25px">
'''STAFF INFORMATION:'''
+
{{{extra}}}
 
 
{{{staff}}}
 
 
</div>}}<!--
 
</div>}}<!--
  
-->{{#if:{{{extra|}}}|<div style="padding-top: 25px">
+
--><div class="rules-mp" style="padding-top: 13px; margin-top: 25px; border-top: 2px solid #ccc">{{#if:{{{language|}}}|{{:Main_Page/{{{language}}}}}|{{:Main_Page/en}}}}</div>
{{{extra}}}
 
</div>}}
 
 
</div>
 
</div>
   
+
__NOTOC__ __NOEDITSECTION__
=Recommended xat Wiki Articles=
+
{{Category|Rules}}</includeonly>
{{recommended articles}}
 
__NOTOC__
 
[[Category:Rules]]</includeonly>
 

Latest revision as of 13:38, 16 September 2018

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)
  • language - language code for recommended articles (optional, defaults to English)
  • 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.