枋模:Ifnoteq then show/doc
Kàu tō-lám
跳至搜尋
| 此頁面是枋模:Ifnoteq then show的Templatedocumentation。 此頁面可能包含了模板的使用說明、分類和其他内容。 |
This template tests whether the first unnamed parameter is equal to the second unnamed parameter and returns the third unnamed parameter if it does. Otherwise it returns the first unnamed parameter.
This is useful when the first parameter is a {{#invoke: }} of a Lua module that returns a value for which a specific exception is required. Because it uses the {{#invoke: }} just once, it simplifies the coding of infoboxes, for example.