Wikipedia talk:Advanced template coding
Appearance
This project page does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||
|
What's the solution for wiki formatting with #if ?
[edit]You describe the issue where MediaWiki wiki-formats the clauses inside #if, but you don't say how to solve it! I've got an #if template that needs to generate http links containing semicolons (mw:Template:git file), and it messes up, badly and almost randomly. Is there a solution? -- Skierpage (talk) 20:54, 21 September 2012 (UTC)
- If it is just an address, using ; instead of ; will work. Or, if the link always contains git before the semicolon, try adding git inside of #if. — TAKASUGI Shinji (talk) 02:25, 25 January 2013 (UTC)
- This issue came up today here. I found that using
%3A
URL encoding for the initial colon resolved the problem where using html encoding:
produced inconsistent results apparently depending on context. I updated the doc for {{sortname}} to suggest this. Maybe it should be mentioned here, too? — jmcgnh(talk) (contribs) 05:13, 30 September 2022 (UTC)
- This issue came up today here. I found that using
Compare Help:Advanced templates
[edit]...which is a soft redirect to the page of the same title on Meta. Should it be mentioned in the "See also" section? --SoledadKabocha (talk) 18:45, 10 November 2012 (UTC)