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.)

link|improve this question

54% accept rate
feedback

2 Answers

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.

link|improve this answer
feedback

I just found another way to do it. It involves editing your mediawiki source, and depending which version you have, may not work just the same. This is for 1.15.3.

In the file sanitizer.php, near the end of the function setupAttributeWhitelist() add this line to the list

'input'      => array('type'),

Then find the function removeHTMLtags and add this to the end of the $htmlsingle array:

, 'input'
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.