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

From Mystcraft
Jump to: navigation, search
m (3 revisions imported: Importing old wiki)
 
(One intermediate revision by the same user not shown)
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}}}}|¶|}}

Latest revision as of 15:50, 24 May 2018