Difference between revisions of "Template:IF/doc"
Jump to navigation
Jump to search
imported>B1KWikis (added information about subst) |
imported>Hyacinth m (→See Also: -->Template:If) |
||
| Line 19: | Line 19: | ||
:*Thanks to my latest coding patch, this parameter is no longer required | :*Thanks to my latest coding patch, this parameter is no longer required | ||
| − | ===See | + | ===See also=== |
| − | [[Template: | + | *[[Template:If]] - Not to be confused with if, which serves a different purpose. |
Latest revision as of 01:47, 3 November 2013
| This is a documentation subpage for Template:IF. It contains usage information, categories and other content that is not part of the original template page. |
Usage
Usage of this template is moderately simple.
To use, place {{subst:IF|1}}Why?.
This will produce:
{{#if:{{{1|}}}|{{{1}}}}}
Why
- A "subst:" must be put at the beginning
- Transclusion shows exactly what is seen on the template page, meaning the dead code used for subst won't become active; this means you'll have broken code, and therefore you wasted your time; you MUST put a subst so it can re-integrate the code and activate the subst tags within the original code, this is what makes this template possible.
- The first parameter must be a number (1-infinity)
- this is what generates the new unnamed parameter.
The second parameter must be a lowercase t.
- Thanks to my latest coding patch, this parameter is no longer required
See also
- Template:If - Not to be confused with if, which serves a different purpose.