User:Pathoschild/Standardization
Jump to navigation
Jump to search
Changes
[edit]All namespaces
[edit]- Syntax
- Templates: remove msg: and template modifiers, and remove parameter whitespace.
- Headers: normalize whitespace (no space between syntax and header text; no blank lines between header and following text; one blank line above header, unless it follows another header).
- Lists: normalize whitespace (one space between item syntax and text).
- Categories: normalize capitalization and parameter whitespace.
- Links: normalize pipe whitespace, remove redundant link text (
[[foo|foo]]
to[[foo]]
, replace underscores with spaces.
- Sorting
- Group license templates, categories, and interlanguage links at the bottom of the page in separate lists by type delineated by a single blank line between each.
- Sort each list alphabetically (case-insensitive).
Author namespace
[edit]- Normalize {{author}} parameter layout.
- Convert deprecated {{author}} parameters and add new parameters.
- Remove categories added automatically by {{author}}.
- Update redirects from
{{author-PD-*}}
to{{PD-*}}
.
Main namespace
[edit]- Normalize {{header}} or {{header2}} parameter layout.
- Convert {{header}} to the transitional {{header2}} format.
Known glitches
[edit]Author pages
[edit]- When no date categories are present and a full date is given in the deprecated {{author}} 'date' parameter, the script mistakenly uses the first number instead of the year for the birthyear (ie, "June 18, 1986").
- Causes: regex pattern matches the first number; difficult to resolve, may need to get all numbers and use the biggest (will work in most cases).
- Workaround: correct manually.
All namespaces
[edit]- Occasionally, an extra blank line will be inserted above the sorted elements. This is a non-issue.
- Causes: unknown, possibly related to the end whitespace regex.
- Workaround: remove the extra line, or ignore it (no significant effect on the output).