Search results
Results from the WOW.Com Content Network
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Pages for logged out editors learn more
The switch parser function, coded as "#switch", selects the first matching branch in a list of choices, acting as a case statement. Each branch can be a value , an expression ( calculation ), or a template call, [ 1 ] evaluated and compared to match the value of the switch.
Unlike Switch parser function, this template matches any part of the input string or any Lua pattern in the input string. It returns the first match, or all matches separated by the chosen separator. It returns the first match, or all matches separated by the chosen separator.
A navigational box that can be placed at the bottom of articles. Template parameters [Edit template data] Parameter Description Type Status State state The initial visibility of the navbox Suggested values collapsed expanded autocollapse String suggested Template transclusions Transclusion maintenance Check completeness of transclusions The above documentation is transcluded from Template ...
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Donate
Template: Switch. 50 languages. ... Help:Switch parser function This page is a soft redirect This page was last edited on 30 September 2023, at 01:34 (UTC). ...
This parser function can be used to detect whether a template parameter is defined, even if it has been set to a false value. For example, to check whether the first positional parameter has been passed to a template (note that the strings "+" and "-" can be any two different non-whitespace strings):
This template's initial visibility currently defaults to autocollapse, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible. To change this template's initial visibility, the |state= parameter may be used: