Template:IF
{{subst:((}}#if:{{subst:(((}}{{{1}}}{{subst:!}}{{subst:)))}}{{subst:!}}{{subst:(((}}{{{1}}}{{subst:)))}}{{subst:))}}
| This template should always be substituted – use {{subst:IF}}. |
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.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.