Difference between revisions of "Category:Pages with syntax highlighting errors"
Unnilennium (talk | contribs) (Created page with "This is a list of pages with Syntax highlighting error The extension adds pages that have a bad lang attribute in a <source> or <syntaxhighlight> tag to a tracking category....") |
Unnilennium (talk | contribs) |
||
Line 3: | Line 3: | ||
The extension adds pages that have a bad lang attribute in a <source> or <syntaxhighlight> tag to a tracking category. The message key MediaWiki:syntaxhighlight-error-category determines the category name; on this wiki it is Category:Pages with syntax highlighting errors. | The extension adds pages that have a bad lang attribute in a <source> or <syntaxhighlight> tag to a tracking category. The message key MediaWiki:syntaxhighlight-error-category determines the category name; on this wiki it is Category:Pages with syntax highlighting errors. | ||
− | The most common error that leads to pages being tagged with this category is a <syntaxhighlight> or <source> tag with no lang attribute at all, because older versions of this extension supported the definition of "$wgSyntaxHighlightDefaultLang". These can typically either be replaced with <pre>, or lang="bash" or lang="text" can be added to the tag. | + | The most common error that leads to pages being tagged with this category is a <tvar|syntaxhighlight><code><nowiki><syntaxhighlight></nowiki></code></> or <tvar|source><code><nowiki><source></nowiki></code></> tag with no <tvar|lang><code>lang</code></> attribute at all, because older versions of this extension supported the definition of "$wgSyntaxHighlightDefaultLang". These can typically either be replaced with <tvar|pre><code><nowiki><pre></nowiki></code></>, or <tvar|bash><code>lang="bash"</code></> or <tvar|text><code>lang="text"</code></> can be added to the tag. |
The category may also be added, and the content will not be highlighted, if there are more than 1000 lines or more than 100 kB text. | The category may also be added, and the content will not be highlighted, if there are more than 1000 lines or more than 100 kB text. | ||
see https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Syntax_highlighting_error_category | see https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Syntax_highlighting_error_category |
Latest revision as of 22:27, 15 March 2020
This is a list of pages with Syntax highlighting error
The extension adds pages that have a bad lang attribute in a <source> or <syntaxhighlight> tag to a tracking category. The message key MediaWiki:syntaxhighlight-error-category determines the category name; on this wiki it is Category:Pages with syntax highlighting errors.
The most common error that leads to pages being tagged with this category is a <tvar|syntaxhighlight><syntaxhighlight>
</> or <tvar|source><source>
</> tag with no <tvar|lang>lang
</> attribute at all, because older versions of this extension supported the definition of "$wgSyntaxHighlightDefaultLang". These can typically either be replaced with <tvar|pre><pre>
</>, or <tvar|bash>lang="bash"
</> or <tvar|text>lang="text"
</> can be added to the tag.
The category may also be added, and the content will not be highlighted, if there are more than 1000 lines or more than 100 kB text.
see https://www.mediawiki.org/wiki/Extension:SyntaxHighlight#Syntax_highlighting_error_category
Pages in category "Pages with syntax highlighting errors"
The following 30 pages are in this category, out of 30 total.