Project page: Edit

Editing BattleTechWiki:Template documentation

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 5: Line 5:
 
Template documentation should explain what a template does and how to use it. It should be simple enough that a user without complete knowledge of the intricacies of template syntax—which includes many experienced contributors who focus their attention elsewhere—can use it correctly. This is especially true in the case of very widely used templates.
 
Template documentation should explain what a template does and how to use it. It should be simple enough that a user without complete knowledge of the intricacies of template syntax—which includes many experienced contributors who focus their attention elsewhere—can use it correctly. This is especially true in the case of very widely used templates.
  
Editors should defer to official [[BTW:POLICIES |policies or guidelines]] when template documentation pages are inconsistent with established community standards and principles. Editors should also avoid "quoting" template  documentation pages as though they are policy—including this [[BTW:INFOPAGES|how-to guide]]. Template documentation pages can be written without much—if any—debate, as opposed to BattleTechWiki policies that have been [[BTW:PROPOSAL|thoroughly vetted by the community]].
+
Editors should defer to official [[BTW:POLICIES |policies or guidelines]] when template documentation pages are inconsistent with established community standards and principles. Editors should also avoid "quoting" template  documentation pages as though they are policy—including this [[BTW:INFOPAGES|how-to guide]]. Template documentation pages can be written without much—if any—debate, as opposed to BattleTechWiki policies that have been [[BTW:PROPOSAL|thoroughly vetted by the community]] (see [[BTW:Local consensus]] for details).
  
 
== What to include ==
 
== What to include ==
Line 86: Line 86:
  
 
== /sandbox and /testcases ==
 
== /sandbox and /testcases ==
Before doing changes to a template it can be good to first copy the template code to a sandbox and run some testcases, since the template might be visible on thousands or even millions of pages. If you create subpages named exactly "'''/sandbox'''" and "'''/testcases'''" to a template then the green {{tlc|documentation}} box on the template auto-detects this and will show links to those pages in its header.
+
Before doing changes to a template it can be good to first copy the template code to a sandbox and run some testcases, since the template might be visible on thousands or even millions of pages. If you create subpages named exactly "'''/sandbox'''" and "'''/testcases'''" to a template then the green {{tlc|documentation}} box on the template auto-detects this and will show links to those pages in its header.  See [[BattleTechWiki:Template sandbox and test cases]] for more information.
  
 
== Several templates, one documentation page ==
 
== Several templates, one documentation page ==

Please note that all contributions to BattleTechWiki are considered to be released under the GNU FDL 1.2 (see BattleTechWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Advanced templates:

Editing: {{Merge}}   {{Moratorium}}   {{Otheruses| | | }}

Notices: {{NoEdit}}   {{Sign}}   {{Unsigned|name}}   {{Welcome}}

Administration: {{Essay}}   {{Policy}}   {{Procedure}}

This page is a member of 1 hidden category: