Jump to content

Template:OwnPropPageTypeMonoLabelOrArg/doc

From glossaLAB

This template gets two arguments:

  1. A property name of Page type, expected to be set on the current page.
  2. A default string.

If the property exists on the database, the template returns the value; the link label will correspond to the Has label monolingual string declared on the returned page, localized to {{PAGELANGUAGE}} language. If not, it returns the second argument.

Intended usage

When a Extension:Page Forms form creates a page with semantic properties, the resulting page may hold empty infobox values because semantic information has not settled on the database. This template allows to pass the raw user values as temporary information to the infoboxes until semantic information gets updated.

Usage example

Inside a template that sets Property:Has review status with Status argument:

{{PageMonoLabelOrArg|Has review status|{{{Status|}}}}}
This website only uses its own cookies for technical purposes; it does not collect or transfer users' personal data without their knowledge. However, it contains links to third-party websites with third-party privacy policies, which you can accept or reject when you access them.