Wikidot: from forgiving, to strict...

Recently, Wikidot has introduced strict YAML rules for Data Forms and prevented users from saving malformed YAML syntax in dataforms. TeRqTeRq explains the reason behind the move:

Quote from TeRq
When forgiving mode is used unpredictable things may [happen] (it also caused a lot of warnings on backend servers), so we want to force people to write proper YAML code in Data Forms. And we have just released Data Form definition validation on save.

This has triggered quite a bit of a problem within the Wikidot community. But luckily:

  • James KanjoJames Kanjo has devised a great little program that lists all the templates with Data Forms
  • and I created a converter to convert the previously forgiving code to a new strict YAML format

Step 1: Finding the Data Forms (Using James' genius code!)

Abstract: James' program lists all _template pages with data forms so users can easily see and change all of them at once. You can find his original code here.

[[module CSS]]
.live-template-only .category_template {display: block !important;}
.live-template-only .no-data + .category_template {display: none !important;}
[[/module]]

[[div class="live-template-only"]]
[[module ListPages pagetype="hidden" category="* -_default -admin -system" separate="false"]]
[!----%%content{2}%%]
[[div class="no-data"]]
[[/div]]
[!----]
[[div class="category%%name%%" style="display: none; border: 2px solid #000;"]]
[[[%%fullname%%|%%fullname%%]]]
[[div class="code"]]
@<&#8203;>@%%content{2}%%
[[/div]]
[[/div]]
[[/module]]
[[/div]]

Step 2: Converting to Strict Format

To save users from having to check and fix every single line of malformed YAML, I written a quick program that does the chore for you! Copy the whole of the old forgiving YAML code and a new strict version is returned! Really simple!

Launch Converter


If there are any problems with the program, simply report the bug below or PM me (tsangktsangk).
Update (10th Nov 2012): Update new converter URL. Report bugs on converter.wikidot.com


Sorry, no match for the embedded content.

Old Comments

Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +

Add a New Comment

Unless otherwise stated, all of the site's contents (including articles, blog post and code snippets) is:
Copyright © Kenneth Tsang 2014