Difference between revisions of "Template:Version links/clean"

From Mystcraft
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>This template is used specifically to clean up some of the formatting of the incoming links for the versions. In the DF wiki, it built them from some passed in data, but here the links are already in place and we just want to clean up the formatting a bit.
 
<noinclude>This template is used specifically to clean up some of the formatting of the incoming links for the versions. In the DF wiki, it built them from some passed in data, but here the links are already in place and we just want to clean up the formatting a bit.
Mostly it replaces \n in the passed in text with <nowiki>{{dot}}</nowiki>
+
Mostly it replaces \n in the passed in text with <nowiki>{{dot}}</nowiki>. It will also strip any extra ¶ characters.
 
</noinclude>
 
</noinclude>
{{#rreplace:{{{1|}}}|\n|{{dot}}}}
+
{{#rreplace:{{#rreplace:{{{1|Test¶
 +
Test¶}}}|\n|{{dot}}}}|¶|}}

Revision as of 10:29, 25 July 2015