Template:Get

From Brighter Shores Wiki
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:Get/doc. [edit] [history] [purge]

Loads data with Semantic MediaWiki from a page.

Usage

{{Get|page|property|separator|default=}}

separator is an optional positional parameter with , as its default value.

default is an optional named parameter with a blank value as its default value. Its value will be shown in case the query has no result.

Examples

Basic Omelettes are used in the {{Get|Basic Omelette|Profession A}} profession.

Basic Omelettes are used in the Chef profession.

Cooking Basic Omelettes require Guard level: {{Get|Basic Omelette|Guard|default=N/A}}.

Cooking Basic Omelettes require Guard level: N/A.

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

Retrieve properties set by Semantic mediawiki.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page1

Name of the page to retrieve data from

Example
Basic Ommlette
Page namerequired
Property2

Name of the property to retrieve

Example
Profession A
Stringrequired
Separator3

Define a separator in case the property returns a list of data

Default
,
Example
;
Unknownoptional
default valuedefault

Value/text to show in case the query has no result.

Default
Result will be empty; nothing is shown.
Example
N/A
Stringsuggested