Checkbox in Mediawiki syntax?
Solution 1
This is a quick way to add something like a checkbox if it fits you:
<span style="font-size:21px">☐</span>
Basically, it uses the 'hollow medium square' character "□" which is similar to a checkbox, but it is too small in its original form, so I had to apply some CSS to enlarge it.
To check it, replace it with a 'tick' mark. (✓, ✔, ☑, etc.)
Adjust the values to your needs.
Solution 2
These tags are just free-form wiki text, like markdown on SO, and are provided for formatting but not input. To add input html elements, or forms, use one of the MEdiawiki extensions, such as semantic forms or simple forms. Check this URL out for an overview of how form content is handled in Mediawiki.
Good luck.
Related videos on Youtube
Ken
Updated on September 17, 2022Comments
-
Ken over 1 year
Is there a way to insert an HTML checkbox in Mediawiki syntax?
<input>
doesn't appear on their list of blessed tags, so I can't just insert it.(FWIW, this is for a private documentation page which is a checklist, and I want to keep track of where I am as I go through it.)
-
wandersick about 11 yearsHere's an slightly larger alternative to add to the answer. It's called 'white medium square': ◻
-
Justin about 10 yearsI upgraded to 1.22.4 and it stopped working. I'd forgotten that I'd done this tweak, so I've just come across my own answer! I've also updated it.
-
machineghost almost 7 yearsDon't know why this one is downvoted so low. IF you want a display-only checkbox and you don't have admin-access, this is the perfect/only solution.