Help:Special property "Display title of"

From semantic-mediawiki.org
Jump to: navigation, search
Display title of
Holds a specific denote title for an entity
Further Information
Provided by: Semantic MediaWiki
Added: 2.4.0
Removed: still in use
Alias: has no alias
Is optional: yes
Label: _DTITLE
Focus: page information
In this wiki: Property:Display title of

The Display title of property is a special property in Semantic MediaWiki with a built-in meaning: it supports an automated annotation operation when {{DISPLAYTITLE:title}} is being used thus holding it's specific denote title. It was introduced starting with Semantic MediaWiki 2.4.0.1

NoteNote: For {{DISPLAYTITLE:title}} to work as described the following configuration settings provided by MediaWiki core have to be set:
$wgAllowDisplayTitle = true;
$wgRestrictDisplayTitle = false;

Features and limitations

  • This special property can also be used as "free" annotation |Display title of=Bar to change the display title characteristics of a subobject if needed. Otherwise it inherits the display attributes from the root subject, i.e. the page used for storing the subobject.
  • In case a page contains both the magic word {{DISPLAYTITLE:Foo}} and an special property annotation [[Display title of::Bar]] then the magic word {{DISPLAYTITLE:Foo}} will take precedence over the preferred title set via this special property.
  • Unless no other variable DEFAULTSORTKEY is annotated, the DISPLAYTITLE value will be used as SORTKEY and replaces the content of the database sortfield.2
  • This feature is enabled by default and to disable this behaviour for Semantic MediaWiki (not MediaWiki) configuration parameter $smwgDVFeatures
    Sets the available features regarding property data values
    needs to be adjusted accordingly. See this configuration parameter for details on how to alter3 the setting in connection with the SMW_DV_WPV_DTITLE feature flag.

Examples

Notes

This feature makes use of the "CachedPropertyValuesPrefetcher" to allow repeated requests to a title or subject being prefetched from cache and free the "Store" from extensive lookup queries. Therefore it is suggested to use redis as cache backend to provide the best possible response time.

If you happen to disable this feature then it is most likely that the sortfield2 still contains a reference to a previous display title therefore it is necessary to update those entities in order for the default sort content to be restored.

Semantic Title extension

It has been noted4 that support for {{DISPLAYTITLE:title}} in Semantic MediaWiki "... is complementary to the functionality provided by the SemanticTitle extension ... ".

See also




This documentation page applies to all SMW versions from 2.4.0 to the most current version.
     

Help:Special property Display title of en 2.4.0