Difference between revisions of "Template:Correct title"
(Created page with "{{selfref|1=The correct title of this {{#if:{{NAMESPACE}}|page|article}} is {{terminate sentence|'''{{{title|{{{1|{{Error|not specified}}}}}}}}'''}} {{#switch:{{{reason|}}} |:...") |
|||
Line 1: | Line 1: | ||
− | {{ | + | <includeonly>{{Hatnote| |
− | + | This page's title is '''{{{correct_title|{{PAGENAME}}}}}''' but it is not automatically displayed at the top of the page because: | |
− | + | * {{{reason|}}} | |
− | + | ||
− | + | For {{#if:{{{otheruses|}}}|{{{otheruses}}}|other uses}}, see [[{{{2|{{{link|{{PAGENAME}}}}}}}{{#if:{{{3|}}}|#{{{3}}}}}]]{{#if:{{{4|}}}| and [[{{{4}}}]]}}{{#if:{{{5|}}}| and [[{{{5}}}]]}}. | |
− | + | }}</includeonly> | |
− | + | <noinclude> | |
− | + | == Usage == | |
− | + | <pre> | |
− | + | {{Correct title | |
− | + | | correct_title = | |
− | | | + | | reason = |
− | | | + | | otheruses = |
− | | | + | | link = |
− | | | + | | 3 = |
− | | | + | | 4 = |
− | + | | 5 = | |
− | + | }} | |
− | + | </pre> | |
− | | other | + | |
− | }}</ | + | Parameters: |
− | + | * correct_title: The correct title of the page (optional, defaults to {{PAGENAME}}) | |
+ | * reason: The reason why the correct title cannot be used (required) | ||
+ | * otheruses: Text to describe other uses (optional, defaults to "other uses") | ||
+ | * link: The link to the disambiguation page (optional, defaults to {{PAGENAME}}) | ||
+ | * 3, 4, 5: Additional links or sections (optional) | ||
+ | |||
+ | === Reason codes === | ||
+ | * a0: The correct title starts with a lower-case letter | ||
+ | * a1: The correct title contains the and symbol (&) | ||
+ | * a2: The correct title contains a plus sign (+) | ||
+ | * a3: The correct title starts with a definite or indefinite article | ||
+ | * a4: The correct title contains characters not supported in page names | ||
+ | * a5: The correct title contains a colon (:) in the first position | ||
+ | * a6: The correct title contains a percent sign (%) | ||
+ | * a7: Custom reason (please specify) | ||
+ | |||
+ | Example: | ||
+ | <pre> | ||
+ | {{Correct title | ||
+ | | correct_title = e-mail | ||
+ | | reason = a0: The correct title starts with a lower-case letter | ||
+ | | otheruses = other uses of "email" or "e-mail" | ||
+ | | link = Email (disambiguation) | ||
+ | }} | ||
+ | </pre> | ||
</noinclude> | </noinclude> |
Latest revision as of 22:21, 2 October 2024
Usage
{{Correct title | correct_title = | reason = | otheruses = | link = | 3 = | 4 = | 5 = }}
Parameters:
- correct_title: The correct title of the page (optional, defaults to Correct title)
- reason: The reason why the correct title cannot be used (required)
- otheruses: Text to describe other uses (optional, defaults to "other uses")
- link: The link to the disambiguation page (optional, defaults to Correct title)
- 3, 4, 5: Additional links or sections (optional)
Reason codes
- a0: The correct title starts with a lower-case letter
- a1: The correct title contains the and symbol (&)
- a2: The correct title contains a plus sign (+)
- a3: The correct title starts with a definite or indefinite article
- a4: The correct title contains characters not supported in page names
- a5: The correct title contains a colon (:) in the first position
- a6: The correct title contains a percent sign (%)
- a7: Custom reason (please specify)
Example:
{{Correct title | correct_title = e-mail | reason = a0: The correct title starts with a lower-case letter | otheruses = other uses of "email" or "e-mail" | link = Email (disambiguation) }}