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 ==
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 == |