Template:If/errmsg

From Katawa Shoujo Wiki

Revision as of 17:22, 17 January 2017 by imported>TheWallflower00 (Created page with "<noinclude><!-- -============================================================= - If/errmsg - Show message for Template:If or Template:Ifexpr -=================================...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


ERROR: invalid parameters for Template:Ifexpr:
  {{Ifexpr...|{{{3}}}|{{{1}}}|{{{2}}}}}
  Check for invalid numbers, or parameter 1 must be empty when using "1=" format.

Template documentation (for the above template, sometimes hidden or invisible)

The Template:If/errmsg is used to display advisory messages for either the Template:If or also for Template:Ifexpr which can process if-expressions without removing the leading or trailing spaces within then/else clauses of the logic.

Usage:  {{If/errmsg |{{{2|}}}|{{{3|}}}|{{{1|}}}|t=templatename}}

The template passes the values of parameters {1}, {2}, {3} and {t} (the template name, such as t=Ifexpr) so that they can be displayed to clue the reader into spotting which instance (of using Template:If or Template:Ifexpr) had triggered the message.



Visit Template:If/errmsg/doc to edit this text! (How does this work?)