Difference between revisions of "Template:ReplaceNumericCharEncoding"

From ChatWars Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>{{#if: {{#pos: {{{string|}}} | &#39; }}
 
<includeonly>{{#if: {{#pos: {{{string|}}} | &#39; }}
               | {{#sub: {{{string|}}} | 0 | {{#pos: {{{string|}}} | &#39; }} }}'{{#sub: {{{string|}}} | {{#pos: {{{string|}}} | &#39; }} }}
+
               | {{#sub: {{{string|}}} | 0 | {{#pos: {{{string|}}} | &#39; }} }}"{{#sub: {{{string|}}} | {{#pos: {{{string|}}} | &#39; }} }}
 
               | {{{string|}}}
 
               | {{{string|}}}
 
             }}</includeonly><!--
 
             }}</includeonly><!--

Revision as of 11:09, 22 October 2018

This template has the sole purpose to replace numeric char encoding (&#39 ;) with the actual character ("'") to circumvent a bug in mediawiki which makes queries for pagename break