Difference between revisions of "Template:ReplaceNumericCharEncoding"
Line 1: | Line 1: | ||
− | <includeonly>{{#if: {{#pos: {{{string|}}} | ' }} | + | <includeonly>{{#vardefine: a | 1 }}{{#while: |
− | + | | {{#ifexpr: {{#var: a}} != 0 | true }} | |
− | + | | {{#if: {{#pos: {{{string|}}} | ' }} | |
− | + | | {{#sub: {{{string|}}} | 0 | {{#pos: {{{string|}}} | ' }} }}'{{#sub: {{{string|}}} | {{#expr: {{#pos: {{{string|}}} | ' }} + 5}} }} | |
− | + | | {{#if: {{#pos: {{{string|}}} | ' }} | |
− | + | | {{#sub: {{{string|}}} | 0 | {{#pos: {{{string|}}} | ' }} }}'{{#sub: {{{string|}}} | {{#expr: {{#pos: {{{string|}}} | ' }} + 8}} }} | |
− | + | | {{#if: {{#pos: {{{string|}}} | > }} | |
+ | | {{#sub: {{{string|}}} | 0 | {{#pos: {{{string|}}} | > }} }}>{{#sub: {{{string|}}} | {{#expr: {{#pos: {{{string|}}} | > }} + 4}} }} | ||
+ | | {{{string|}}}{#vardefine: a | 0 }} | ||
+ | }} | ||
}} | }} | ||
}} | }} |
Revision as of 21:20, 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