Template:Get/doc

Revision as of 13:56, 15 November 2024 by BlackHawk (talk | contribs) (Created page with "{{Documentation}} Loads data with Semantic MediaWiki from a page. ==Usage== <pre> {{Get|page|property|separator|default=}} </pre> <code>separator</code> is an optional positional parameter with <code>,</code> as its default value. <code>default</code> 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=== <pre> Basic Omelettes are used in the {{Get|Basic Omelette|Profession A}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Get.
It contains usage information, categories, and other content that is not part of the original template page.

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

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