Template:Get

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search
Template documentation
This documentation is transcluded from Template:Get/doc. [edit] [purge]

Loads data with Semantic MediaWiki from a page.

Usage

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

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

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

Examples

Dust devils are level {{Get|Dust devil|Combat level}}.

Dust devils are level 85.

Goblins can have various amounts of life points — {{Get|Goblin|All Combat level}}.

Goblins can have various amounts of life points — 2, 11, 5, 4, 6, 7, 84, 1.

Goblins can have various amounts of life points — {{Get|Goblin|All Combat level|;}}.

Goblins can have various amounts of life points — 2, 11, 5, 4, 6, 7, 84, 1.

Goblins have a high cooking level — {{Get|Goblin|Cooking level|default=N/A}}.

Goblins have a high cooking 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 has custom formatting.

ParameterDescriptionTypeStatus
Page1

Name of the page to retrieve data from

Default
empty
Example
Goblin
Auto value
empty
Pagerequired
Property2

Name of the property to retrieve

Default
empty
Example
All Combat level
Auto value
empty
Stringrequired
Separator3

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

Default
,
Example
;
Auto value
empty
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
Auto value
empty
Stringsuggested