Difference between revisions of "Template:ReplaceNumericCharEncoding"
(updated to a more easily extendable system) |
|||
Line 1: | Line 1: | ||
− | <includeonly> | + | <includeonly>{{#if: {{#pos: {{{string|}}} | ' }} |
| {{#sub: {{{string|}}} | 0 | {{#pos: {{{string|}}} | ' }} }}'{{#sub: {{{string|}}} | {{#expr: {{#pos: {{{string|}}} | ' }} + 5}} }} | | {{#sub: {{{string|}}} | 0 | {{#pos: {{{string|}}} | ' }} }}'{{#sub: {{{string|}}} | {{#expr: {{#pos: {{{string|}}} | ' }} + 5}} }} | ||
| {{#if: {{#pos: {{{string|}}} | ' }} | | {{#if: {{#pos: {{{string|}}} | ' }} | ||
Line 6: | Line 6: | ||
}} | }} | ||
}} | }} | ||
− | -- | + | <!--{{#switch: {{{string|}}} |
| ' = {{#sub: {{{string|}}} | 0 | {{#pos: {{{string|}}} | ' }} }}'{{#sub: {{{string|}}} | {{#expr: {{#pos: {{{string|}}} | ' }} + 5}} }} | | ' = {{#sub: {{{string|}}} | 0 | {{#pos: {{{string|}}} | ' }} }}'{{#sub: {{{string|}}} | {{#expr: {{#pos: {{{string|}}} | ' }} + 5}} }} | ||
| ' = {{#sub: {{{string|}}} | 0 | {{#pos: {{{string|}}} | ' }} }}'{{#sub: {{{string|}}} | {{#expr: {{#pos: {{{string|}}} | ' }} + 8}} }} | | ' = {{#sub: {{{string|}}} | 0 | {{#pos: {{{string|}}} | ' }} }}'{{#sub: {{{string|}}} | {{#expr: {{#pos: {{{string|}}} | ' }} + 8}} }} | ||
Line 12: | Line 12: | ||
| #default = {{{string|}}} | | #default = {{{string|}}} | ||
− | }}</includeonly><!-- | + | }}--></includeonly><!-- |
--><noinclude> | --><noinclude> | ||
This template has the sole purpose to replace numeric char encoding (<code><nowiki>' ;</nowiki></code> (decimal encoding) AND <code><nowiki>' ;</nowiki></code> (hexadecimal encoding) ) with the actual character ("<code>'</code>") to circumvent a bug in mediawiki which makes queries for pagename break | This template has the sole purpose to replace numeric char encoding (<code><nowiki>' ;</nowiki></code> (decimal encoding) AND <code><nowiki>' ;</nowiki></code> (hexadecimal encoding) ) with the actual character ("<code>'</code>") to circumvent a bug in mediawiki which makes queries for pagename break | ||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude> | </noinclude> |
Revision as of 20:57, 19 March 2019
This template has the sole purpose to replace numeric char encoding (' ;
(decimal encoding) AND ' ;
(hexadecimal encoding) ) with the actual character ("'
") to circumvent a bug in mediawiki which makes queries for pagename break