Difference between revisions of "Template:EnsureNamespace"

From AtlasWiki
Jump to: navigation, search
(Created page with "<noinclude> Ensures that the parameter passed in starts with a namespace, if none is present, the XCSG namespace is assumed to be correct, and is automatically added. </noincl...")
 
(fix call to #arrayindex)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
Ensures that the parameter passed in starts with a namespace, if none is present, the XCSG namespace is assumed to be correct, and is automatically added.
 
Ensures that the parameter passed in starts with a namespace, if none is present, the XCSG namespace is assumed to be correct, and is automatically added.
</noinclude><includeonly>{{#arraydefine:arg|{{{1|}}}|:|}}{{#if:{{#arrayaccess:arg|1}}|{{{1}}}|XCSG:{{{1}}}}}</includeonly>
+
</noinclude><includeonly>{{#arraydefine:arg|{{{1|}}}|:|}}{{#if:{{#arrayindex:arg|1}}|{{{1}}}|XCSG:{{{1}}}}}</includeonly>

Revision as of 11:24, 22 May 2014

Ensures that the parameter passed in starts with a namespace, if none is present, the XCSG namespace is assumed to be correct, and is automatically added.