Template:Test case nowiki/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
 
Line 205:
* An error will be generated if processing the entire page takes more than 10 seconds. This is an intentional limit in the [[mw:Extension:Scribunto|Scribunto]] extension that runs [[Module:Template test case]], on which this template is based. If a test cases page takes more than 10 seconds to load, you may need to split it up into different pages.
* The template converts the [[Wikipedia:HTML entities|HTML entities]] <, > and " inside template invocations to the literal characters <, > and ". This is due to the way nowiki tags work.
* For collapsible test cases, all text inside extension tags (e.g. {{tag|ref|o}}, {{tag|references|o}}, {{tag|gallery|o}} and {{tag|nowiki|o}}) is treated as equal. These tags are converted to [[Wikipedia:Help:Strip markers|strip markers]] before they are passed to the template, and all strip markers include a random string as they have to be unique. Even if strip markers were unstripped before being compared, the same wikitext would not be guaranteed to result in exactly the same unstripped code. So this module ignores the content of strip markers for the purposes of testing equality. This has the unwanted side effect that, e.g. <code><nowiki>Some text<ref>foo</ref></nowiki></code> is treated as equal to <code><nowiki>Some text<gallery>bar</gallery></nowiki></code>, but should be adequate for most uses.
 
== See also ==