Difference between revisions of "Template:EscapeLinks"

From AtlasWiki
Jump to: navigation, search
(change format of link to Template:ReconstructLinks so it won't be taken for a category)
 
Line 4: Line 4:
 
Due to technical issues, all spaces in the input are also replaced with  , the HTML escape sequence that produces a space character.
 
Due to technical issues, all spaces in the input are also replaced with  , the HTML escape sequence that produces a space character.
  
Conversion back to the original (except for spaces, which, due to technical limitations, remain HTML-escaped) is provided by [[Template:ReconstructLinks]]. Provided, of course, that the original doesn't contain $OpenWikiLink$, or $CloseWikiLink$.
+
Conversion back to the original (except for spaces, which, due to technical limitations, remain HTML-escaped) is provided by [[:Template:ReconstructLinks]]. Provided, of course, that the original doesn't contain $OpenWikiLink$, or $CloseWikiLink$.
  
 
This is to allow text including links to be stored in Semantic MediaWiki properties.
 
This is to allow text including links to be stored in Semantic MediaWiki properties.
 
</noinclude><includeonly>{{#arraydefine:closeLinkDelimited|{{#arraydefine:openLinkDelimited|{{#arraydefine:spaceDelimited|{{{1|[[Foo]] [[Bar]]}}}|/\s/|}}{{#arrayprint:spaceDelimited|&#32;|x|x|}}|{{OpenWikiLink}}|}}{{#arrayprint:openLinkDelimited|$OpenWikiLink$|x|x|}}|{{CloseWikiLink}}|}}{{#arrayprint:closeLinkDelimited|$CloseWikiLink$|x|x|}}</includeonly>
 
</noinclude><includeonly>{{#arraydefine:closeLinkDelimited|{{#arraydefine:openLinkDelimited|{{#arraydefine:spaceDelimited|{{{1|[[Foo]] [[Bar]]}}}|/\s/|}}{{#arrayprint:spaceDelimited|&#32;|x|x|}}|{{OpenWikiLink}}|}}{{#arrayprint:openLinkDelimited|$OpenWikiLink$|x|x|}}|{{CloseWikiLink}}|}}{{#arrayprint:closeLinkDelimited|$CloseWikiLink$|x|x|}}</includeonly>

Latest revision as of 10:21, 22 April 2014

Replaces the braces in wiki links, e.g. [[Foo]] becomes $OpenWikiLink$Foo$CloseWikiLink$.

Due to technical issues, all spaces in the input are also replaced with &#32;, the HTML escape sequence that produces a space character.

Conversion back to the original (except for spaces, which, due to technical limitations, remain HTML-escaped) is provided by Template:ReconstructLinks. Provided, of course, that the original doesn't contain $OpenWikiLink$, or $CloseWikiLink$.

This is to allow text including links to be stored in Semantic MediaWiki properties.