Predloga:Calculator-hideifzero
| Ta predloga uporablja TemplateStyles: |
Usage
Allows showing or hiding page elements based on Calculator formula. This requires the Calculator gadget to work.
Example
{{calculator-hideifzero|formula=showtext|Some text that might be hidden if the checkbox is unchecked}}
{{calculator|type=checkbox|id=showtext|default=1}} {{calculator label|Show text|for=showtext}}
Creates:
Some text that might be hidden if the checkbox is unchecked
1 Show text
Template data
Allow showing or hiding a page element based on a calculator formula
| Parameter | Opis | Vrsta | Stanje | |
|---|---|---|---|---|
| formula | formula | Calculator formula to decide whether or not to show | Niz | zahtevano |
| text | text 1 | Wikitext to show or hide | Vsebina | zahtevano |
| block | block | Whether to be a block (div) element or an inline (span) element | Bool | neobvezno |
| element | element | Name of element to use (overrides block). For example, if you want to hide a list item, you would set this to li
| Niz | neobvezno |
| class | class | Additional css classes | Niz | neobvezno |
| starthidden | starthidden | Have the text start off being not shown | Bool | neobvezno |
| style | style | Additional CSS to add | Niz | neobvezno |
| class-live | class-live | Additional css classes to add only once gadget is active | Niz | neobvezno |
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.









