Template:Arch
The UESPWiki – Your source for The Elder Scrolls since 1995
Summary[edit]
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".
Parameters[edit]
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. |
Examples[edit]
{{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.