Help:Special property Display title of

From semantic-mediawiki.org
Jump to: navigation, search
Display title of
Display an 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
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 support an automated annotation operation when {{DISPLAYTITLE:title}} is being used. It was introduced starting with Semantic MediaWiki 2.4.0.1

Note Note: For {{DISPLAYTITLE:title}} to work as described the following configuration settings provided by MediaWiki core are expected to be set:

$wgAllowDisplayTitle = true;
$wgRestrictDisplayTitle = false;

Features and limitations

  • The "Display title of" special property can also be used as "free" annotation to change the display title characteristics of a subobject if needed. Otherwise it inherits the display attributes from the root subject.
  • In case a page contains both {{DISPLAYTITLE:Foo}} and [[Display title of::Bar]] then the magic word {{DISPLAYTITLE:Foo}} will take precedence over the preferred title set via special property "Display title of".
  • Unless no other DEFAULTSSORTKEY is annotated, the DISPLAYTITLE value will be used as SORTKEY and replaces the content of the DB sortfield2
  • This feature is enabled by default and to disable this behaviour for Semantic MediaWiki (not MediaWiki) the $smwgDVFeatures configuration parameter needs to be adjusted accordingly. For details on how to alter3 the setting in connection with the SMW_DV_WPV_DTITLE feature flag, see the Help:$smwgDVFeatures help page.

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.

SemanticTitle 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

#scite was unable to determine a reference type for "nabble:user:smw:td5067142".


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