Wikipedia:Template editor: Difference between revisions

Source: Wikipedia, the free encyclopedia.
Content deleted Content added
→‎Wise template editing: copyedit (should be good now)
→‎Template protection considerations: updated note (it's not several templates, it's about 200 or so at the moment)
(One intermediate revision by the same user not shown)
Line 9: Line 9:


The '''template editor''' [[Wikipedia:User access levels|user right]] allows trusted coders to edit [[Help:Template|templates]] and [[Wikipedia:Lua|modules]] that have been [[Wikipedia:Protection policy|protected]] with the "protected template" protection level (usually due to a high transclusion rate). It also allows those editors to edit [[Wikipedia:Editnotice|edit notices]], all of which are permanently uneditable without template editor or [[Wikipedia:Administrators|administrator]] rights.
The '''template editor''' [[Wikipedia:User access levels|user right]] allows trusted coders to edit [[Help:Template|templates]] and [[Wikipedia:Lua|modules]] that have been [[Wikipedia:Protection policy|protected]] with the "protected template" protection level (usually due to a high transclusion rate). It also allows those editors to edit [[Wikipedia:Editnotice|edit notices]], all of which are permanently uneditable without template editor or [[Wikipedia:Administrators|administrator]] rights.

'''Note:''' Several high-use templates are still protected via [[Wikipedia:Protection policy#Full protection|full protection]], as few mass changes have been made so far. As a result, template editors cannot yet edit several such pages, but any [[Wikipedia:Administrators|administrator]] may change the protection level for individual templates on request. See the [https://en.wikipedia.org/w/index.php?title=Special%3AProtectedPages&namespace=10&type=edit&level=templateeditor&sizetype=min&size= list of template pages currently under "protected template" protection].


There are currently [[Special:ListUsers/templateeditor|{{NUMBERINGROUP:templateeditor}}]] template editors and [[Special:ListUsers/sysop|{{NUMBEROFADMINS}}]] administrators ({{formatnum:{{#expr:{{NUMBEROFADMINS:R}}+{{NUMBERINGROUP:templateeditor|R}}}}}} total).
There are currently [[Special:ListUsers/templateeditor|{{NUMBERINGROUP:templateeditor}}]] template editors and [[Special:ListUsers/sysop|{{NUMBEROFADMINS}}]] administrators ({{formatnum:{{#expr:{{NUMBEROFADMINS:R}}+{{NUMBERINGROUP:templateeditor|R}}}}}} total).
Line 100: Line 98:


If your template editor right was revoked and you would like to appeal the decision, first speak to the revoking administrator. If after such an exchange you still feel the matter is unresolved and requires outside input, or if the administrator is unresponsive, use [[Wikipedia:Administrators' noticeboard]] to appeal the decision.
If your template editor right was revoked and you would like to appeal the decision, first speak to the revoking administrator. If after such an exchange you still feel the matter is unresolved and requires outside input, or if the administrator is unresponsive, use [[Wikipedia:Administrators' noticeboard]] to appeal the decision.

== Template protection considerations ==
'''Note:''' Many high-risk templates are protected via [[Wikipedia:Protection policy#Full protection|full protection]], as these templates have become very stable and seen few, if any, necessary changes. Template editors cannot edit these pages, but any [[Wikipedia:Administrators|administrator]] may change the protection level for individual templates on request. See the [https://en.wikipedia.org/w/index.php?title=Special%3AProtectedPages&namespace=10&type=edit&level=templateeditor&sizetype=min&size= list of template pages currently under "protected template" protection].


== See also ==
== See also ==

Revision as of 15:21, 30 April 2016

Pink padlock
Template-protected

The template editor user right allows trusted coders to edit templates and modules that have been protected with the "protected template" protection level (usually due to a high transclusion rate). It also allows those editors to edit edit notices, all of which are permanently uneditable without template editor or administrator rights.

There are currently 189 template editors and 855 administrators (1,044 total).

Use

Editors are permitted to exercise this permission to perform maintenance, answer reasonable edit requests, and make any other simple and generally uncontroversial edits to templates, modules, and edit notices. They are also permitted to enact more complex or controversial edits, after those edits are first made to a test sandbox, and their technical reliability as well as their consensus among other informed editors has been established.

Have a strong password

If you have the template editor user right, please ensure you have a strong password and follow appropriate personal security practices. Because a single rogue edit on a highly visible template could affect at least one million pages, a compromised account will be blocked and its privileges removed on grounds of site security.

Wise template editing

The key to wisely editing templates is to thoroughly test your changes before implementing them. Each template has a default testcases subpage which should be used for this purpose. It is important to test whether your changes have introduced any errors or not, which can be easy to spot if test cases are well-set up.

  • Remember that template-editor-ship, just like adminship, can never be allowed to become some sort of privileged position within debates among editors. Being a template editor puts you in a complicated position, because any edit you make is at once both a normal edit and a privileged action. Avoid making unilateral decisions if there's reason to think people might object. You can always propose the change on a template's talk page, and make the change if there are no objections after a few days. Use your discretion in determining how potentially controversial your change might be.

    Expect to be held accountable for all changes you make. Be receptive to any concerns or complaints that others raise.

Repeated failure to adhere to these restrictions can result in revocation of permissions. If the failure is particularly egregious, any administrator reserves the right to remove your template-editing access summarily and without warning, even for a first offense.

Other considerations

Template editors should be aware of what kind of changes require gathering consensus beforehand and which don't. Remember to be civil when engaging in editing disputes.

It is a plus for editors in general to be aware of the implications of changes to highly-transcluded templates. In particular, many small changes to these templates in a short time may backlog the job queue, causing pages using the templates not to be re-updated quickly. (In some circumstances, pages may not be updated even a week after a change to a very highly-transcluded template or module.)

Note that template protection is not a guard against inexperienced editors trying their hands on templates per se, nor to guard against repeated changes, nor to shut out editors not acting on consensus. Vandalism or misinformation on a high-risk template would be visible on many pages that transclude them, which is considered the primary reason for preemptive template protection.

When to seek discussion for template changes

Changes that should be made ONLY after substantial discussion
  • Any breaking changes, no matter how small. If it removes a parameter, or changes expected parameter behavior, do not do it without strong consensus, unless your reason for doing so is absolutely critical.
  • Changes that significantly affect a template or module's visual appearance to the reader. "Hey, wouldn't it be cool if {{infobox}} were in shades of pink?"... bring it up on the talkpage first.

Changes that require at least some discussion, or at least several days passing with no one commenting on your proposal
  • The addition of new parameters, if they'll significantly change the template's usage or display. This includes adding numbered parameters as aliases for named parameters, adding additional numbered parameters to ones already in use, or adding any parameters that allow major, visually noticeable changes (e.g. a {{{color}}} parameter on {{infobox}}).
  • Visual layout changes that are minor but still noticeable, e.g. swapping the order of a few parameters in an infobox, or slightly tweaking something's color.
  • Per RFC consensus, it's best to seek consensus before adding Wikidata functionality to a template or module. Wikidata is still relatively new, so this may change once it has been more integrated. For instance, it's easy to imagine that within a year or so it would be wholly non-controversial to add a fallback Wikidata option in case a certain parameter isn't specified... But more complex stuff will probably remain worth discussing.

Changes that can usually be made unilaterally, but which, depending on the circumstances, you may want to open up for discussion first
  • The addition of new parameters that add minor functionality—for instance, an italic=yes or a noprint=yes.
  • Edits that affect a template's appearance, but only slightly, such as the use of the nowrap class on a template that looks better on one line.

Changes that can almost always be made unilaterally
  • Fixes of obvious markup errors.
  • The addition of code comments where helpful, and any other changes that improve the legibility of the code without altering functionality (within reason; no "{{{parameter|fallback}}}<!-- this looks to see if 'parameter' is called, and, if not, assigns value 'fallback' -->")
  • Changes to anything <noinclude/>'d.
  • Copy-edits of any sort. (Just be sure you're right!)
  • Non-controversial changes to hidden tracking categories.
  • Changes to CSS classes with no visible effect, or where the visible effect will be an unambiguous improvement (e.g. removing excess whitespace in a template's output in certain browsers).
  • The deprecation of other templates used within a given template, provided that said deprecation is based on a prior consensus.

Abuse

Vandalism

If you use this right for anything even vaguely resembling vandalism, you will be blocked immediately. Wikipedia maintains an active policy of "shoot first, ask questions later" when it comes to anything involving widely-transcluded templates and/or templates used on the Main Page. If you hold privileged access on any other projects, you may very well find your account locked by the stewards until you can prove you are in control of it. Even if it's all a misunderstanding, you may lose your template-editor privileges nonetheless, if you're found to have behaved recklessly or erratically.

The same goes for vandalism that doesn't involve this right. This is, fundamentally, an administrative-level right, and you are expected to behave with the accountability and stability that entails. Administrators have been desysopped for inappropriate behavior, even when that behavior didn't involve their tools, or never affected a single article. Considering that this right gives you some of the abilities that people are most afraid of falling into the hands of a rogue admin, the same goes for you. Except that desysops take three arbitrators and a bureaucrat, while blocking you only takes one admin.

Don't mess around. Period.

Editing disputes

This right should never be used to gain an upper hand in editing disputes. You have a privilege that most people do not have. The normal BOLD, revert, discuss cycle does not apply because those without this right are unable to perform the "revert" step. Therefore, if your edit is or may be controversial (see the "When to seek discussion" criteria above), avoid making unilateral decisions, and instead propose the change on the template's talk page, and then make the change if there are no objections after a few days. Do not change the template to your preferred version when consensus has not been achieved yet to resolve the dispute. And never wheel war with other admins or template editors.

Requesting

If you wish to request template editor rights for yourself, please see Wikipedia:Requests for permissions/Template editor. Administrators do not need to request or add this user right for themselves or other administrators because it is automatically granted as part of the administrator tools package.

Guidelines for granting

The template editor user right is granted by administrators. Administrators use their own discretionary assessment of an editor's template contribution value, as well as the following general guidelines:

  1. The editor should be a registered Wikipedia user who has been editing for at least 1 year.
  2. The editor should have made at least 1,000 overall edits.
  3. The editor should have made at least 150 total edits to the Template and Module namespaces.
  4. The editor should have no behavioral blocks (including partial blocks) or 3RR violations for a span of 6 months prior to applying.

Additionally, an editor should have demonstrated a need for the right, as well as a familiarity with the care and responsibility required when dealing with high-risk template modification:

  1. The editor should have worked on the sandbox version of at least three template-protected templates or modules.
  2. The editor should have requested and had successfully enacted at least five significant edits to template-protected templates or modules.

The above items are merely guidelines. An administrator may choose to substitute other proofs of an editor's competence in handling high-risk template responsibilities.

Criteria for revocation

The user right can be revoked at any time by an administrator without any process or prior notice in any of the following circumstances:

  1. The editor demonstrated a pattern of performing obviously controversial edits to protected templates without first determining consensus.
  2. The editor demonstrated a pattern of failing to exercise sufficient care when editing protected templates, resulting in serious errors appearing on pages.
  3. The editor used the permission to gain the upper hand in disputes.
  4. The editor performed any blatant vandalism.
  5. The editor has been inactive for 12 months.

Additionally, the right may be removed immediately at the request of the editor.

If your template editor right was revoked and you would like to appeal the decision, first speak to the revoking administrator. If after such an exchange you still feel the matter is unresolved and requires outside input, or if the administrator is unresponsive, use Wikipedia:Administrators' noticeboard to appeal the decision.

Template protection considerations

Note: Many high-risk templates are protected via full protection, as these templates have become very stable and seen few, if any, necessary changes. Template editors cannot edit these pages, but any administrator may change the protection level for individual templates on request. See the list of template pages currently under "protected template" protection.

See also