• Home
  • Discography
  • Film work
  • Awards
  • Random
  • Recent changes
  • Special pages
  • nin.com
  • nin:hotline
  • nin:live
  • nin:catalog
  • nin:tourhistory
  • /r/nin
  • echoingthesound
  • Preferences
Open main menu
  • 3.143.143.202
  • Watchlist
  • Contributions
  • Log in

Difference between revisions of "Template:Correct title"

  • Edit
    • Page information
    • Permanent link
    • What links here
Revision as of 21:32, 2 October 2024 (view source)
Tabanger (talk | contribs)
(Created page with "{{selfref|1=The correct title of this {{#if:{{NAMESPACE}}|page|article}} is {{terminate sentence|'''{{{title|{{{1|{{Error|not specified}}}}}}}}'''}} {{#switch:{{{reason|}}} |:...")
 
Latest revision as of 22:21, 2 October 2024 (view source)
Tabanger (talk | contribs)
 
Line 1: Line 1:
−
{{selfref|1=The correct title of this {{#if:{{NAMESPACE}}|page|article}} is {{terminate sentence|'''{{{title|{{{1|{{Error|not specified}}}}}}}}'''}} {{#switch:{{{reason|}}}
+
<includeonly>{{Hatnote|
−
|:|namespace = The {{{edit|substitution or omission}}} of the [[Colon (punctuation)|colon]] is
+
This page's title is '''{{{correct_title|{{PAGENAME}}}}}''' but it is not automatically displayed at the top of the page because:
−
|(|bracket|brackets = The {{{edit|{{#switch:{{#expr: {{#invoke:String|len|{{{title|{{{1|}}}}}}}} - {{#invoke:String|len|{{#invoke:String|replace|{{{demopage|{{PAGENAME}}}}}| %(.*%)$||1|false}}}} }}
+
* {{{reason|}}}
−
|2 = omission
+
 
−
|0 = substitution
+
For {{#if:{{{otheruses|}}}|{{{otheruses}}}|other uses}}, see [[{{{2|{{{link|{{PAGENAME}}}}}}}{{#if:{{{3|}}}|#{{{3}}}}}]]{{#if:{{{4|}}}| and [[{{{4}}}]]}}{{#if:{{{5|}}}| and [[{{{5}}}]]}}.
−
|#default = substitution or omission}}}}} of any [[bracket]]s is
+
}}</includeonly>
−
|#|hash|number = The {{{edit|{{#ifeq:{{#expr: {{#invoke:String|len|{{{title|{{{1|}}}}}}}} - {{#invoke:String|len|{{#invoke:String|replace|{{{demopage|{{PAGENAME}}}}}| %(.*%)$||1|false}}}} }}|1|omission|substitution}}}}} of the [[number sign|#]] is
+
<noinclude>
−
|vbar|obelisk|vertical bar|pipe|verticalbar = The {{{edit|{{#ifeq:{{#expr: {{#invoke:String|len|{{{title|{{{1|}}}}}}}} - {{#invoke:String|len|{{#invoke:String|replace|{{{demopage|{{PAGENAME}}}}}| %(.*%)$||1|false}}}} }}|1|omission|substitution}}}}} of the [[vertical bar]] is
+
== Usage ==
−
|length = It is truncated here
+
<pre>
−
|#default = It appears incorrectly here
+
{{Correct title
−
}} due to [[Wikipedia:Naming conventions (technical restrictions){{#switch:{{{reason|}}}
+
| correct_title =
−
|:|namespace = &#35;Colons
+
| reason =
−
|(|bracket|brackets = &#35;Clashes_with_wiki_markup/HTML_syntax
+
| otheruses =  
−
|#|hash|number = &#35;Clashes_with_wiki_markup/HTML_syntax
+
| link =  
−
|vbar|obelisk|vertical bar|pipe|verticalbar = &#35;Clashes_with_wiki_markup/HTML_syntax
+
| 3 =  
−
|length = &#35;Title_length}}|technical restrictions]].}}<includeonly><!--
+
| 4 =  
−
-->{{Namespace detect
+
| 5 =  
−
| main  = {{#invoke:Correct title categories|main|{{{title|{{{1|}}}}}}}}
+
}}
−
| draft = {{#invoke:Correct title categories|main|{{{title|{{{1|}}}}}}}}
+
</pre>
−
| other = <!-- Don't categorize when not in main or draft space -->
+
 
−
}}</includeonly><noinclude>
+
Parameters:
−
{{Documentation}}
+
* 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)
}}
Retrieved from "https://www.nin.wiki/index.php?title=Template:Correct_title&oldid=61945"
Last edited 8 months ago by Tabanger
  • This page was last edited on 2 October 2024, at 22:21.
  • Frequently Asked Questions
  • About nin.wiki
  • Disclaimers
  • Mobile view