Search results
Results from the WOW.Com Content Network
Each nested use adds 5 levels to the template expansion depth, so 7 nested if-templates would use 35 levels (5*7) of the 41-level limit. Using P-if syntax: A similar if-structure can be coded without Template:If, by using the {} and {} templates in a "P-if" structure. Template:P1 always returns parameter 1, and P2 returns the 2nd. So, a ...
Undefined parameter values are tricky: if the first positional parameter was not defined in the template call, then {{{1}}} will evaluate to the literal string "{{{1}}}" (i.e., the 7-character string containing three sets of curly braces around the number 1), which is a true value. (This problem exists for both named and positional parameters.)
Templates used for "if-then-else" (i.e. conditional) types of queries within Wikipedia code. Take care! These templates can be tricky to manipulate and can produce unexpected results, especially if their use is introduced or amended without testing.
The content from a template titled Template:foo can be added into a Wikipedia page by editing a page and typing {{foo}} into it. When then viewing the page, {{foo}} is automatically replaced by the content of the page "Template:foo". If the page "Template:foo" is later altered, all the pages with {{foo}} in them will change automatically.
This template is used on approximately 73,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage . Consider discussing changes on the talk page before implementing them.
This template is used for transcluding part of an article into another article. Template parameters [Edit template data] Parameter Description Type Status Article 1 article page Name of the article or page to transclude Example Science Page name required Section 2 section fragment Name of the section or <section> tag to transclude Example History String optional Only only Transclude only this ...
Get AOL Mail for FREE! Manage your email like never before with travel, photo & document views. Personalize your inbox with themes & tabs. You've Got Mail!
This template also has undefined behaviour, if any parameter (be it named or unnamed) that is different from test, then or else is defined when calling the template. Note that {{ qif }} does not work when subst'ed (like {{ ifndef }} , the then part alone as in {{ ifdef }} can be substituted).