Difference between revisions of "Template:Checkbox"

From SME Server
Jump to navigationJump to search
(Created page with "{{#switch:{{{1|}}} |#default |checked=[[File:Checkbox_{{{color|black}}}_{{#ifeq:{{{tick|}}}|no|on|checked}}.png|link=|17px|{{{2}}}]] |unchecked=File:Checkbox_{{{color|black}...")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#switch:{{{1|}}}
+
{{#ifeq:{{lc:{{{1|check}}}}}|uncheck|[[File:U+2610.svg|link=|Work pending]]|[[File:Check mark.svg|link=|Work done!]]}}<noinclude>
|#default
+
{{documentation}}<templatedata>
|checked=[[File:Checkbox_{{{color|black}}}_{{#ifeq:{{{tick|}}}|no|on|checked}}.png|link=|17px|{{{2}}}]]
+
{
|unchecked=[[File:Checkbox_{{{color|black}}}_unchecked.png|link=|17px|{{{2}}}]]
+
"params": {
}}<noinclude>
+
"1": {
{{documentation|content=
+
"label": "check or uncheck",
 
+
"description": "check or uncheck",
* <code><nowiki>{{checkbox}}</nowiki></code> ⇒ {{checkbox}}
+
"type": "content",
* <code><nowiki>{{checkbox|checked|title}}</nowiki></code> ⇒ {{checkbox|checked|title}}
+
"default": "uncheck",
* <code><nowiki>{{checkbox|unchecked|title}}</nowiki></code> ⇒ {{checkbox|unchecked|title}}
+
"autovalue": "uncheck",
* <code><nowiki>{{checkbox|checked|tick=no}}</nowiki></code> ⇒ {{checkbox|checked|tick=no}}
+
"suggested": true,
* <code><nowiki>{{checkbox|checked|color=red}}</nowiki></code> ⇒ {{checkbox|checked|color=red}}
+
        "example": "uncheck"
 
+
}
}}
+
},
</noinclude>
+
"description": "display checkboxes on your page"
 +
}
 +
</templatedata></noinclude>

Latest revision as of 04:30, 25 April 2022

Work done!

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}

display checkboxes on your page

Template parameters

ParameterDescriptionTypeStatus
check or uncheck1

check or uncheck

Default
uncheck
Example
uncheck
Auto value
uncheck
Contentsuggested