Difference between revisions of "Template:If/errmsg/doc"
< Template:If | errmsg
Jump to navigation
Jump to search
imported>Wikid77 (reversed the parameter order to match parameters in Ifexpr; expanded as for either Template:If or Template:Ifexpr, with new parameter t=Ifexpr) |
imported>Vanisaac |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Documentation subpage}} | ||
| + | |||
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. | 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. | ||
| Line 5: | Line 7: | ||
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. | 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. | ||
| + | <includeonly>{{Sandbox other|| | ||
[[Category:String manipulation templates]] | [[Category:String manipulation templates]] | ||
| + | }}</includeonly> | ||
Latest revision as of 17:18, 25 April 2020
| 40px | This is a documentation subpage for Template:If/errmsg. It contains usage information, categories and other content that is not part of the original template page. |
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.