Template:Loc

From Dune: Awakening Community Wiki
Jump to navigation Jump to search


Usage Examples

Page Language Template Call Output
en
{{Loc|Labels|vehicles}}
Vehicles
de Fahrzeuge
{{Loc|Labels|vehicles|link=true}}
Fahrzeuge
{{Loc|Labels|downloadable_content|link=Vehicles}}
Zusatzinhalte

TemplateData

This template makes use of p.localise() from Module:Common to retrieve a localised string for a given key from a specified MessageBundle.

It auto-switches to the language that the viewer's page is currently on, and falls back to the English source if no translation exists for the current language.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
MessageBundle Name1

The name of the MessageBundle to look up (without the `MessageBundle:` prefix).

Stringrequired
Key2

The key to retrieve from the MessageBundle.

Stringrequired
Linklink

If set to true, wraps the result as a link to the page matching the key's English value. If set to a page title instead, switches the link target to that page. In all cases, the link resolves to a translated subpage of the target matching the current page's language, falling back to English if none exists.

Default
false
Stringoptional