Search results
Results from the WOW.Com Content Network
For each case, either side of the equals sign "=" can be a simple string, a call to a parser function (including #expr to evaulate expressions), or a template call. If any cases are not associated with a value (i.e., no equals sign is used), the next specified value will be used.
In such case it is always possible to use a function call, but this can be cumbersome and inelegant. For example, to pass conditionally different values as an argument for a constructor of a field or a base class, it is impossible to use a plain if-else statement; in this case we can use a conditional assignment expression, or a function call ...
This template is used on approximately 6,900 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.
If the template has a separate documentation page (usually called "Template:template name/doc"), add [[Category:If-then-else templates]] to the <includeonly> section at the bottom of that page.
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!
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 ...
Main page; Contents; Current events; Random article; About Wikipedia; Contact us; Donate
This template generates a test case for two or more templates. Each template is called with the same parameters, and the test case can be displayed in various different formats. All parameters passed to this template are passed through to the test-case templates, with the exception of parameters starting with an underscore character ...