A display title is the preferred title associated with a wiki page. It typically provides the string of text that is shown in the title header of a page. It is conceptually and technically distinct from the page title , i.e. the title by which a page is recorded and made accessible over the web. By default, a display title is synonymous with the page title but can be customised to suit your needs.
Different wikis use different naming conventions for the page title and display title. For instance, the convention on a site like Wikipedia is that the page title of an article should be descriptive of the subject, while the display title may be customised only to take on some formatting that page titles don't support (lowercase initial, italics, superscript). Other wikis may prefer to use short, hash-generated page titles and leave the descriptive part to the display title only. Either approach is possible.
For users and site admins[edit]$wgAllowDisplayTitle
is set to false
, the magic word DISPLAYTITLE lets you set a custom display title for a page. To an extent, it allows for HTML formatting options such as italics.
Mainpage-title
/Mainpage-title-loggedin
system messages , described at Manual:Main Page .Configuration settings:
Name Type Description Default $wgAllowDisplayTitle boolean whether or not custom display titles are allowed to be set using DISPLAYTITLE.true
$wgRestrictDisplayTitle boolean whether or not customisation should be restricted to formatting. true
page_props
table where pp_propname
equals 'displaytitle'
. Its value is stored in pp_value
.getDisplayTitle()
and getPageProperties()
.setDisplayTitle()
or setPageProperty()
.Being able to store a custom display title does not automatically mean it is shown in page links (e.g. [[Mypagehere]]
). This is usually achieved by installing the DisplayTitle extension. If a dependency on this extension happens to be undesirable, extensions could similarly use the HtmlPageLinkRendererBegin hook.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4