Difference between revisions of "Template:Rules"

From xat wiki
Jump to: navigation, search
m
 
(9 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
* '''languages''' - value '''yes''', if rules are translatable
 
* '''languages''' - value '''yes''', if rules are translatable
 
* '''extra''' - something extra that needs mentioning (staff information etc)
 
* '''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#''' - Short introduction of a rule
 
*'''rule#d''' - More detailed version of a rule
 
*'''rule#d''' - More detailed version of a rule
Line 13: Line 14:
 
*'''|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; width: 70%; margin: 0 auto 15px; border-bottom: 1px solid #ccc">{{#if:{{{heading|}}}|{{{heading}}}|{{PAGENAME}} Rules}}</h1>
+
<h1 class="rules-h">{{#if:{{{heading|}}}|{{{heading}}}|{{PAGENAME}} Rules}}</h1>
  
<div style="width:70%; background: #f8f8ff; border: 1px solid #ddd; padding: 15px; margin: 0 auto"><!--
+
<div class="rules"><!--
  
--><div style="font-weight:bold; text-align:center; padding-bottom: 8px; margin: 0 auto; width: 70%">{{{header}}}</div><!--
+
--><div>{{{header|In order to provide the best experience possible for all visitors, we have listed a set of guidelines below that each user must follow. Guidelines apply to all elements of the chat.}}}</div><!--
  
--><div style="text-decoration: underline; font-weight: bold; text-align: center; padding-bottom: 25px; margin: 0 auto; width: 70%">{{{header2|ALL RULES APPLY TO YOUR MESSAGES, NAME, STATUS, HOMEPAGE, AVATAR, ETC.}}}</div><!--
+
--><div>{{#if:{{{header2|}}}|{{{header2}}}|}}</div><!--
  
-->{{#ifeq:{{{languages}}}|yes|<div style="text-align:left; padding-bottom:25px"><languages/></div>|}}<!--
+
-->{{#ifeq:{{{languages}}}|yes|<div class="languages"><languages/></div>|}}<!--
  
-->{{#if:{{{rule1|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">1. {{{rule1}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule1d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule1|}}}|<div class="rule mw-collapsible mw-collapsed">1. {{{rule1}}} <div class="rule-d mw-collapsible-content">{{{rule1d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule2|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">2. {{{rule2}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule2d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule2|}}}|<div class="rule mw-collapsible mw-collapsed">2. {{{rule2}}} <div class="rule-d mw-collapsible-content">{{{rule2d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule3|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">3. {{{rule3}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule3d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule3|}}}|<div class="rule mw-collapsible mw-collapsed">3. {{{rule3}}} <div class="rule-d mw-collapsible-content">{{{rule3d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule4|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">4. {{{rule4}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule4d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule4|}}}|<div class="rule mw-collapsible mw-collapsed">4. {{{rule4}}} <div class="rule-d mw-collapsible-content">{{{rule4d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule5|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">5. {{{rule5}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule5d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule5|}}}|<div class="rule mw-collapsible mw-collapsed">5. {{{rule5}}} <div class="rule-d mw-collapsible-content">{{{rule5d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule6|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">6. {{{rule6}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule6d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule6|}}}|<div class="rule mw-collapsible mw-collapsed">6. {{{rule6}}} <div class="rule-d mw-collapsible-content">{{{rule6d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule7|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">7. {{{rule7}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule7d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule7|}}}|<div class="rule mw-collapsible mw-collapsed">7. {{{rule7}}} <div class="rule-d mw-collapsible-content">{{{rule7d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule8|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">8. {{{rule8}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule8d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule8|}}}|<div class="rule mw-collapsible mw-collapsed">8. {{{rule8}}} <div class="rule-d mw-collapsible-content">{{{rule8d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule9|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">9. {{{rule9}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule9d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule9|}}}|<div class="rule mw-collapsible mw-collapsed">9. {{{rule9}}} <div class="rule-d mw-collapsible-content">{{{rule9d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule10|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">10. {{{rule10}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule10d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule10|}}}|<div class="rule mw-collapsible mw-collapsed">10. {{{rule10}}} <div class="rule-d mw-collapsible-content">{{{rule10d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule11|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">11. {{{rule11}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule11d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule11|}}}|<div class="rule mw-collapsible mw-collapsed">11. {{{rule11}}} <div class="rule-d mw-collapsible-content">{{{rule11d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule12|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">12. {{{rule12}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule12d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule12|}}}|<div class="rule mw-collapsible mw-collapsed">12. {{{rule12}}} <div class="rule-d mw-collapsible-content">{{{rule12d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule13|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">13. {{{rule13}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule13d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule13|}}}|<div class="rule mw-collapsible mw-collapsed">13. {{{rule13}}} <div class="rule-d mw-collapsible-content">{{{rule13d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule14|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">14. {{{rule14}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule14d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule14|}}}|<div class="rule mw-collapsible mw-collapsed">14. {{{rule14}}} <div class="rule-d mw-collapsible-content">{{{rule14d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule15|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">15. {{{rule15}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule15d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule15|}}}|<div class="rule mw-collapsible mw-collapsed">15. {{{rule15}}} <div class="rule-d mw-collapsible-content">{{{rule15d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule16|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">16. {{{rule16}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule16d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule16|}}}|<div class="rule mw-collapsible mw-collapsed">16. {{{rule16}}} <div class="rule-d mw-collapsible-content">{{{rule16d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule17|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">17. {{{rule17}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule17d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule17|}}}|<div class="rule mw-collapsible mw-collapsed">17. {{{rule17}}} <div class="rule-d mw-collapsible-content">{{{rule17d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule18|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">18. {{{rule18}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule18d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule18|}}}|<div class="rule mw-collapsible mw-collapsed">18. {{{rule18}}} <div class="rule-d mw-collapsible-content">{{{rule18d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule19|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">19. {{{rule19}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule19d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule19|}}}|<div class="rule mw-collapsible mw-collapsed">19. {{{rule19}}} <div class="rule-d mw-collapsible-content">{{{rule19d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule20|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">20. {{{rule20}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule20d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule20|}}}|<div class="rule mw-collapsible mw-collapsed">20. {{{rule20}}} <div class="rule-d mw-collapsible-content">{{{rule20d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule21|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">21. {{{rule21}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule21d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule21|}}}|<div class="rule mw-collapsible mw-collapsed">21. {{{rule21}}} <div class="rule-d mw-collapsible-content">{{{rule21d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule22|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">22. {{{rule22}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule22d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule22|}}}|<div class="rule mw-collapsible mw-collapsed">22. {{{rule22}}} <div class="rule-d mw-collapsible-content">{{{rule22d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule23|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">23. {{{rule23}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule23d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule23|}}}|<div class="rule mw-collapsible mw-collapsed">23. {{{rule23}}} <div class="rule-d mw-collapsible-content">{{{rule23d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule24|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">24. {{{rule24}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule24d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule24|}}}|<div class="rule mw-collapsible mw-collapsed">24. {{{rule24}}} <div class="rule-d mw-collapsible-content">{{{rule24d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule25|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">25. {{{rule25}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule25d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule25|}}}|<div class="rule mw-collapsible mw-collapsed">25. {{{rule25}}} <div class="rule-d mw-collapsible-content">{{{rule25d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule26|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">26. {{{rule26}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule26d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule26|}}}|<div class="rule mw-collapsible mw-collapsed">26. {{{rule26}}} <div class="rule-d mw-collapsible-content">{{{rule26d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule27|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">27. {{{rule27}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule27d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule27|}}}|<div class="rule mw-collapsible mw-collapsed">27. {{{rule27}}} <div class="rule-d mw-collapsible-content">{{{rule27d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule28|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">28. {{{rule28}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule28d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule28|}}}|<div class="rule mw-collapsible mw-collapsed">28. {{{rule28}}} <div class="rule-d mw-collapsible-content">{{{rule28d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule29|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">29. {{{rule29}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule29d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule29|}}}|<div class="rule mw-collapsible mw-collapsed">29. {{{rule29}}} <div class="rule-d mw-collapsible-content">{{{rule29d}}}</div></div><div style="clear:both"></div>|}}<!--
  
-->{{#if:{{{rule30|}}}|<div style="font-weight: bold; margin-bottom: 5px; border-bottom: 1px dashed #c4c4ff" class="mw-collapsible mw-collapsed">30. {{{rule30}}} <div style="font-weight: normal; margin-bottom:10px" class="mw-collapsible-content">{{{rule30d}}}</div></div><div style="clear:both"></div>|}}<!--
+
-->{{#if:{{{rule30|}}}|<div class="rule mw-collapsible mw-collapsed">30. {{{rule30}}} <div class="rule-d mw-collapsible-content">{{{rule30d}}}</div></div><div style="clear:both"></div>|}}<!--
  
 
-->{{#if:{{{rules|}}}|<div style="padding-top: 0px">
 
-->{{#if:{{{rules|}}}|<div style="padding-top: 0px">
Line 89: Line 90:
 
-->{{#if:{{{extra|}}}|<div style="padding-top: 25px">
 
-->{{#if:{{{extra|}}}|<div style="padding-top: 25px">
 
{{{extra}}}
 
{{{extra}}}
</div>}}
+
</div>}}<!--
 +
 
 +
--><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>
 
</div>
 
</div>
   
+
__NOTOC__ __NOEDITSECTION__
=Recommended xat Wiki Articles=
+
{{Category|Rules}}</includeonly>
{{recommended articles}}
 
__NOTOC__
 
[[Category:Rules]]</includeonly>
 

Latest revision as of 06:13, 22 April 2020

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.