ਫਰਮਾ:DISPLAYTITLE
Template:DISPLAYTITLE is a behaviour switch for MediaWiki code. Use {{DISPLAYTITLE:}} to format the title of an article without changing the address of the page. All or part of a page title can be shown in italics, with subscript and superscript, or any formatting required by article guidelines. Examples
IntroductionThe title of a page name can always be copied and pasted to affect links, inclusions, and categories. DISPLAYTITLE enforces this, so then only changes that will 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 named page is the fullpagename, denoted "namespace:pagename". The namespace of an 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,
but that rather the magic variable form of Magic variables use colon ":" but templates use bar/pipe "|" as the separator to indicate the page name to process here. Use the magic variable. If "|" is used instead of ":", it places the page in Category:Pages which use a template in place of a magic word, which may cause distractions. DescriptionThe title (the fullpagename) is changed using
These possibilities exist because of the definition of a page name, which allows for the 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. InstructionsTemplate DISPLAYTITLE has the same instructions as magic variable DISPLAYTITLE. Please use ":" instead of "|".
If there is more than one instance of DISPLAYTITLE and they do not all specify the same title, only the last instance is enacted with an error message generated. For example: Warning: Display title "<i>Desired title</i>" overrides earlier display title "<i>Desired</i> title". The preferred solution to this problem is to remove or disable one of the instances of DISPLAYTITLE. If this is not possible due to template limitations, etc., then the error message may be suppressed by using the "noerror" parameter, i.e. Tracking categories
See also
|
Portal di Ensiklopedia Dunia