Template:Lowercase title/doc: Difference between revisions
m
108 revisions imported from wikipedia:Template:Lowercase_title/doc
(It's ridiculous that all improvements (e.g. clearer examples, explanation) are reverted simply because you feel there are a few "strange syntax". The syntax works as intended which provides better portability (templates are often used cross-site. That's why we should improve portability). Please don't revert simply because you don't know what they are for.) |
Squareblob (talk | contribs) m (108 revisions imported from wikipedia:Template:Lowercase_title/doc) |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1:
{{See also|Template:Nocaps}}▼
{{Documentation subpage}}
{{
{{No substitution}}
▲{{See also|Template:Nocaps}}
{{TOC right}}
== Usage ==
Simply add the tag <code><nowiki>{{
{|
|-
! scope="col" | Page name
! scope="col" | Will display
|-
! scope="row" | [[EBay]], [[IPod]]
| eBay, iPod, etc.
|-
! scope="row" | [[Talk:EBay]]
| Talk:eBay
|}
The template does '''
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
When using on templates, please make sure to wrap it with a <noinclude> tag, so that transcluded pages don't get affected.
This template wraps the [[
▲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>.
{{WrongTitleExamples}}▼
▲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.
▲<source lang=sql>
/* Page using a lowercase title, with or without {{lowercase}} */
SELECT page_title, pp_value AS displaytitle
Line 41 ⟶ 38:
AND CONVERT(pp_value USING utf8mb4) COLLATE utf8mb4_bin /* &#greek; */
REGEXP "^([_ :]+|<[^<>]+>)*([[:lower:]]|	[4-6][0-9];)"
</syntaxhighlight>
==
{{TemplateData header}}
<templatedata>
Line 53 ⟶ 50:
== See also ==
* [[
▲{{WrongTitleExamples}}
▲* [[w:en:WP:Naming conventions (technical restrictions)#Lowercase first letter|Naming conventions (technical restrictions) of lowercase first letter]]
<includeonly>{{
[[Category:Correct title templates]]
}}</includeonly>
|