Difference between revisions of "Template:EscapeLinks"
From AtlasWiki
Line 5: | Line 5: | ||
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>{{#arraymap:{{#arraymap:$$BEGIN$${{{1|[[Foo]]}}}$$END$$|{{OpenWikiLink}}|var|var|$$OPEN_WIKI_LINK$$}}|{{CloseWikiLink}}|var|var|$$CLOSE_WIKI_LINK$$}} | + | </noinclude><includeonly>{{#arraymap:{{#arraymap:$$BEGIN$${{{1|[[Foo]]}}}$$END$$|{{OpenWikiLink}}|var|var|$$OPEN_WIKI_LINK$$}}|{{CloseWikiLink}}|var|var|$$CLOSE_WIKI_LINK$$}}</includeonly> |
Revision as of 18:22, 2 April 2014
Replaces the braces in wiki links with parentheses, e.g. [[Foo]] becomes $$BEGIN$$$$OPEN_WIKI_LINK$$Foo$$CLOSE_WIKI_LINK$$$$END$$.
Conversion back to the original is provided by Template:ReconstructLinks. Provided, of course, that the original doesn't contain $$BEGIN$$, $$END$$, $$OPEN_WIKI_LINK$$, or $$CLOSE_WIKI_LINK$$.
This is to allow text including links to be stored in Semantic MediaWiki properties.