Template:Lowercase title/doc: Difference between revisions

Undid revision 953942449 by Milker (talk) rv: too much damage, unusual ordering, plus use of strange syntax
No edit summary
(Undid revision 953942449 by Milker (talk) rv: too much damage, unusual ordering, plus use of strange syntax)
Line 1:
{{Documentation subpage}}
<!--
Kendeo
-->
{{:''See also|Template: {{tl|Nocaps}}''
{{TOCright}}
 
== Usage ==
{{nosubst}}
{{See also|Template:Nocaps}}
<!-- Please add categories at the bottom of this page, and interwikis at Wikidata (see Wikipedia:Wikidata) -->
 
ItSimply isadd usedthe tag <code><nowiki>{{lowercase title}}</nowiki></code> at the beginning of a page (and optionally, at the beginning of its talk page). There are no parameters. The tag will toonly decapitalize the first letter of the page's name in the title at the topbeginning of the page. Examples:
 
{| ClassCLASS="wikitable"
== Usage ==
Simply add {{tlx|lowercase title}} at the top of a page (and optionally, at the top of its talk page). There are no parameters. Examples:
 
{| Class="wikitable"
|-
! Page name !! Will display
Line 18 ⟶ 20:
|}
 
=== AttentionIssues ===
The template does '''NOTnot''' work together with other title modification templates. In this case: you need to use {{tlx|DISPLAYTITLE}} insteaddirectly and make sure it's the last DISPLAYTITLE on the page. For example, to make "eZoneExample" italic and lowercase, use <code><nowiki>{{DISPLAYTITLE:''eZoneexample''}}</nowiki></code>.
When using the template on redirect pages, the template must be moved '''after''' the redirect. Otherwise it will break the redirection. This, however, limits the template to have an effect only when viewing the redirect page directly. Nevertheless, it is still useful in this scenario in order to document the proper capitalization of a term.
 
When using the template on redirect pages, the template must be moved '''after''' the redirect., since Otherwiseotherwise it will break the redirection. This, however, limits the template to have an effect only when viewing the redirect page directly. Nevertheless, it is still useful in this scenario in order to document the proper capitalization of a term.
 
When using on templates, please make sure to wrap it with a &lt;noinclude&gt; tag, so that transcluded pages don't get affected.
 
=== LimitationsTechnical ===
This template wraps the [[w:en:Help:Magic words|magic word]] DISPLAYTITLE so that it works automatically in any namespace (main, talk, template, etc.) to decapitalise the first letter of the name of a page it is transcluded on.
The template does '''NOT''' work together with other title modification templates. In this case you need to use {{tlx|DISPLAYTITLE}} instead and make sure it's the last DISPLAYTITLE on the page. For example, to make "eZone" italic and lowercase, use <code><nowiki>{{DISPLAYTITLE:''eZone''}}</nowiki></code>.
 
== Comparison ==
{{WrongTitleExamples}}
 
== Technical notes ==
This template wraps the [[w:en:Help:Magic words|magic word]] DISPLAYTITLE so that it works automatically in any namespace (main, talk, template, etc.) to decapitalise the first letter of the name of a page it is transcluded on.
 
Here is the actual script:
<source lang=sql>
/* Page using a lowercase title, with or without {{lowercase}} */
Line 43 ⟶ 40:
</source>
 
== TemplateDataSee also ==
* [[w:en:WPWikipedia:Naming conventions (technical restrictions)#Lowercase first letter|Naming conventions (technical restrictions) of lowercase first letter]]
{{WrongTitleExamples}}
 
<includeonly>{{sandboxSandbox other||
[[Category:Correct title templates]]
}}</includeonly>
==TemplateData==
{{TemplateData header}}
<templatedata>
Line 51 ⟶ 55:
}
</templatedata>
 
== See also ==
* [[w:en:Help:Magic words|Magic words]]
* [[w:en:WP:Naming conventions (technical restrictions)#Lowercase first letter|Naming conventions (technical restrictions) of lowercase first letter]]
 
 
<includeonly>{{sandbox other||
<!-- Add categories below this line, and interwikis at Wikidata -->
[[Category:Correct title templates]]
}}</includeonly>
Anonymous user