Template:DISPLAYTITLE/doc: Difference between revisions

clean up
m (1 revision)
 
(clean up)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
{{DISPLAYTITLE:Template:DISPLAYTITLE/''doc''}}
{{DISPLAYTITLE:Template:DISPLAYTITLE/''doc''}}


{{Nutshell|See section ''[[#Description|Description]]''. DISPLAYTITLE changes the [[WP:page name|fullpagename]] in a simple and limited way. {{For| changing words and letters|Wikipedia:Moving a page}}}}
{{Nutshell|See section ''[[#Description|Description]]''. DISPLAYTITLE changes the [[SV:page name|fullpagename]] in a simple and limited way. {{For| changing words and letters|Sarkarverse:Moving a page}}}}


{{important|Write {{nowrap|'''<nowiki>{{DISPLAYTITLE:title to be displayed}}</nowiki>'''}} using the "''':'''" character.
{{important|Write {{nowrap|'''<nowiki>{{DISPLAYTITLE:title to be displayed}}</nowiki>'''}} using the "''':'''" character.
Line 25: Line 25:
|E sub 0 || <code><nowiki>E<span style="position:absolute; top: -9999px"> sub </span ><sub>0</sub> </nowiki></code> || E<sub>0</sub>
|E sub 0 || <code><nowiki>E<span style="position:absolute; top: -9999px"> sub </span ><sub>0</sub> </nowiki></code> || E<sub>0</sub>
|-
|-
| Lorem ipsum dolor sit || <code><nowiki>{{DISPLAYTITLE:Lorem ''ipsum'' do</nowiki>{{hl|L}}<nowiki>or sit}}</nowiki></code>|| Lorem ipsum dolor sit&nbsp;&larr; (unchanged as capital "L" does not match original)
| Lorem ipsum dolor sit || <code><nowiki>{{DISPLAYTITLE:Lorem ''ipsum'' do</nowiki>{{hl|L}}<nowiki>or sit}}</nowiki></code>|| Lorem ipsum dolor sit&nbsp;(unchanged as capital "L" does not match original)
|}
|}
Note that some parts of a title can be hidden by using a span-tag (with "position:absolute; top: -9999px") to shift some text off-screen, such as: <nowiki><span style="position:absolute; top: -9999px">^</span></nowiki>, to hide a caret "^" before a superscript in a title, or similar to hide the word "&nbsp;sub&nbsp;" before a subscript.
Note that some parts of a title can be hidden by using a span-tag (with "position:absolute; top: -9999px") to shift some text off-screen, such as: <nowiki><span style="position:absolute; top: -9999px">^</span></nowiki>, to hide a caret "^" before a superscript in a title, or similar to hide the word "&nbsp;sub&nbsp;" before a subscript.


==Introduction==
==Introduction==
The title of a [[WP:Page name|page name]] can always be [[copy and paste|copied and pasted]] to affect links, inclusions, and categories.  DISPLAYTITLE enforces this, so then only changes that will [[Help:Link#Conversion_to_canonical_form|convert to canonical form]] (standard format) will actually change the displayed title. It is possible to preview the changed title while on the edit page.  One invalid change, such as the capitalization of a pagename letter ''after'' the first letter will invalidate any other allowed changes, and the whole title will display unchanged.
The title of a [[SV:Page name|page name]] can always be [[copy and paste|copied and pasted]] to affect links, inclusions, and categories.  DISPLAYTITLE enforces this, so then only changes that will [[Help:Link#Conversion to canonical form|convert to canonical form]] (standard format) will actually change the displayed title. It is possible to preview the changed title while on the edit page.  One invalid change, such as the capitalization of a pagename letter ''after'' the first letter will invalidate any other allowed changes, and the whole title will display unchanged.


The title of a [[WP:page name|named page]] is the fullpagename, denoted "namespace:pagename". The namespace of an [[WP:article|article]] is nameless, so it does not display, and the fullpagename is ''pagename''.
The title of a [[SV:page name|named page]] is the fullpagename, denoted "namespace:pagename". The namespace of an [[SV:article|article]] is nameless, so it does not display, and the fullpagename is ''pagename''.


It is important to note the warning sign at the top of this page preferring that the template form of DISPLAYTITLE not be used,
It is important to note the warning sign at the top of this page preferring that the template form of DISPLAYTITLE not be used,
Line 43: Line 43:
==Description==
==Description==
The title (the fullpagename) is changed using <tt><nowiki>{{</nowiki>[[Help:Magic word|DISPLAYTITLE''':'''namespace:pagename]]<nowiki>}}</nowiki></tt> anywhere in the wikitext.  As usual in markup, multiple spaces are made singular. The allowed visual changes are simply:
The title (the fullpagename) is changed using <tt><nowiki>{{</nowiki>[[Help:Magic word|DISPLAYTITLE''':'''namespace:pagename]]<nowiki>}}</nowiki></tt> anywhere in the wikitext.  As usual in markup, multiple spaces are made singular. The allowed visual changes are simply:
* lower-case the initial letter of the [[WP:page name|pagename]] (example page [[eBay]])
* lower-case the initial letter of the [[SV:page name|pagename]] (example page [[eBay]])
* change the case of any letter of the namespace
* change the case of any letter of the namespace
* add an initial colon to the title (the fullpagename)
* add an initial colon to the title (the fullpagename)
* change any space to an underscore "_" character or any underscore character to a space (example page [[mod_perl]])
* change any space to an underscore "_" character or any underscore character to a space (example page [[mod perl]])
* add any number or mixture of spaces and underscores
* add any number or mixture of spaces and underscores
**around the separator character ":" (between the namespace and pagename), or
**around the separator character ":" (between the namespace and pagename), or
**between words in the pagename
**between words in the pagename
**before or after the title (where spaces alone are ignored) (example page [[_NSAKEY]])
**before or after the title (where spaces alone are ignored) (example page [[NSAKEY]])
* add bold or italic character formatting to any letters in the fullpagename (example page ''[[Allosaurus]]'')
* add bold or italic character formatting to any letters in the fullpagename (example page ''[[Allosaurus]]'')
These possibilities exist because of the definition of a [[WP:page name|page ''name'']], which allows for the ''[[WP:canonicalization|canonicalization]]'' of any title by copying and pasting the title into links, inclusions, and category names.
These possibilities exist because of the definition of a [[SV:page name|page ''name'']], which allows for the ''[[SV:canonicalization|canonicalization]]'' of any title by copying and pasting the title into links, inclusions, and category names.


If there is more than one instance of DISPLAYTITLE in the wikitext, the last one overrides the previous ones. This means that if the DISPLAYTITLE automatically generated by something like some bookbox template needs to be overridden, then an explicit DISPLAYTITLE must be placed ''after'' that template to make your version display. If all efforts to change the title (with canonicalization compliance) fail, try looking at the bottom of the page for some stray magic variable DISPLAYTITLE.
If there is more than one instance of DISPLAYTITLE in the wikitext, the last one overrides the previous ones. This means that if the DISPLAYTITLE automatically generated by something like some bookbox template needs to be overridden, then an explicit DISPLAYTITLE must be placed ''after'' that template to make your version display. If all efforts to change the title (with canonicalization compliance) fail, try looking at the bottom of the page for some stray magic variable DISPLAYTITLE.
Line 68: Line 68:
{|
{|
| valign=top |
| valign=top |
*[[WP:Move]]
*[[SV:Move]]
*{{tl|Lowercase title}}
*{{tl|Lowercase title}}
*{{tl|Italics title}} {{ns|23}}
*{{tl|Italics title}} {{ns|23}}
Line 76: Line 76:
*{{tl|DEFAULTSORT}} {{ns|23}}
*{{tl|DEFAULTSORT}} {{ns|23}}
| valign=top |
| valign=top |
*[[Wikipedia:Page name]]
*[[Sarkarverse:Page name]]
*[[Wikipedia:Naming conventions (technical restrictions)#Forbidden characters|Forbidden characters]]
*[[Sarkarverse:Naming conventions (technical restrictions)#Forbidden characters|Forbidden characters]]
*[[Help:Parser functions]]
*[[Help:Parser functions]]
|}
|}
14,061

edits