When.com Web Search

Search results

  1. Results From The WOW.Com Content Network
  2. Template:If - Wikipedia

    en.wikipedia.org/wiki/Template:If

    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 ...

  3. Category:If-then-else templates - Wikipedia

    en.wikipedia.org/.../Category:If-then-else_templates

    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.

  4. Comparison of web template engines - Wikipedia

    en.wikipedia.org/wiki/Comparison_of_web_template...

    The following table lists the various web template engines used in Web template systems and a brief rundown of their features. Engine (implementation) [ a ] Languages [ b ]

  5. Jinja (template engine) - Wikipedia

    en.wikipedia.org/wiki/Jinja_(template_engine)

    Jinja is a web template engine for the Python programming language. It was created by Armin Ronacher and is licensed under a BSD License. Jinja is similar to the Django template engine, but provides Python-like expressions while ensuring that the templates are evaluated in a sandbox. It is a text-based template language and thus can be used to ...

  6. Template:If either - Wikipedia

    en.wikipedia.org/wiki/Template:If_either

    This helper template is designed to be used in other templates. It can help editors create template code that is more self documenting. A major advantage of using this template over using the construct {{#if:{{{1|}}}{{{2|}}} |…}} is that if the first parameter is not empty then the second parameter is not evaluated.

  7. Template:If both - Wikipedia

    en.wikipedia.org/wiki/Template:If_both

    This template is used on approximately 140,000 pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.

  8. Help:Conditional expressions - Wikipedia

    en.wikipedia.org/wiki/Help:Conditional_expressions

    See also: the {{}} template. The #if function selects one of two alternatives based on the truth value of a test string. {{#if: test string | value if true | value if false}} As explained above, a string is considered true if it contains at least one non-whitespace character.

  9. Help:Switch parser function - Wikipedia

    en.wikipedia.org/wiki/Help:Switch_parser_function

    The upper branches execute faster, and the bottom branches must wait for comparisons of all higher branches. Because it is a parser function, a #switch can be used inside any page, even in article text, but in most cases, a #switch is typically used inside a template, to branch depending on a parameter value passed to the template.