Content deleted Content added
→Compare template vs. module: new section |
Mark Otaris (talk | contribs) |
||
Line 32:
At first stage, I'd suggest making first_difference a member function. If this member function returns nil then strings are considered identical. This will allow tests to define their own method. Second stage will be to offer some pre-created options..
[[User:Tsahee|Tsahee]] ([[User talk:Tsahee|talk]]) 20:44, 19 January 2014 (UTC)
== Add a value to <code>nowiki</code> to show the wikitext only if the actual result does not contain a script error ==
I suggest making the <code>nowiki</code> option support a string like "if no errors" as a value that would make <code>mw.text.nowiki</code> not be applied on the actual result if a script error can be detected in it. If there's a script error, the wikitext is of no use (it will be the same regardless of the error), while the rendered result can be clicked on to show the error message, making it easier to fix. --[[User:Mark Otaris|Mark Otaris]] ([[User talk:Mark Otaris|talk]]) 16:42, 13 October 2015 (UTC)
|