Draft: suggested changes to conversion script
I've had a quick look over the script, and have some ideas that are best expressed in code, and others that are better in English. This MR contains the code parts, and I'll put a message on the mailing list for the rest.
Some specific notes about the code:
- don't actually merge it - I haven't even checked if it compiles. You're welcome to paste anything you like, or just use it as inspiration
- the hash of smileys was extracted from https://wiki.debian.org/HelpOnSmileys, so should be complete
- I've suggested using templates in a few places. Initial versions of those templates might look like:
Template:Smiley
{{#switch {{{1|}}}
| <!> = <span style="font-size: x-large; color: red">!</span>
| {*} = <span style="font-size: x-large; color: orange">*</span>/g;
| {o} = <span style="font-size: x-large; color: cyan">¤</span>/g;
| {OK} = <span style="font-size: large; color: green; background: yellow">OK</span>/g;
| {X} = <span style="font-size: large; color: white; background: red">X</span>/g;
}}
Template:MailTo
{{{1|}}}
Template:Include
{{:{{{1|}}}}}
As always, the nice thing about templates is that we can make something better once the migration is complete.