Open main menu

UESPWiki β

Template:Arch

SummaryEdit

The Arch (short for "Architecture") template allows different text to be used for different architectures defined without having to use cumbersome {{#if:...}} or {{#switch:...}} statements and is intended for pages that get transcluded.

The transcluding page of a page using this template has to define a parmater named "arch". Suggested architecture names are "PC", "PS4" or "Xbox".

ParametersEdit

Arch
Parameter Scope Description
1 optional The default text to display. Can be empty or omitted if nothing should be displayed by default.
(Architecture) optional Architecture-specific text to display.

ExamplesEdit

{{Arch||PC=mods}}
{{Arch|Activity Finder|PC=Grouping Tool}}

Example transclusions of a page using this would be

{{Pagename|arch=PC}}
{{Pagename|arch=Xbox}}
{{Pagename|arch=PS4}}

The use of the switch parser function will be shorter however, if several architectures share a longer text that shouldn't be displayed as default. So a switch might be the better choice in this case.