Template:OwnPropPageTypeMonoLabelOrArg
Appearance
This template gets two arguments:
- A property name of
Pagetype, expected to be set on the current page. - 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|}}}}}