Forum:Template:TextSan

From Warcraft Wiki
Jump to navigation Jump to search
Forums: Village pump → Template:TextSan
(This topic is archived. Please do not edit this page!)

I leave it to whoever will oversee the implementation to come up with a workable name (HTML2txt?). However, I very strongly feel that this snippet of wiki code needs to be made its own template:

{{#replace:
    {{#replace:
        {{#replace:
            {{{param}}}
            |"
            |" (replace HTML double quote marks with text)
        }}
        |' (replace single quote marks)
        |'
    }}
    |& (replace ampersands)
    |&

}}

Cut-and-paste form included as a comment.

While I doubt {{Tooltip}} is the only template using this particular code fragment, the fact that that one template repeats it 4 or 5 times makes it a valid candidate for being a template. The only issue might be the template unwinding issue we had with recipe pages.

It would be much better, of course, to have a built-in facility/function of mediawiki do this task. --Eirik Ratcatcher (talk) 19:55, July 30, 2010 (UTC)