Difference between revisions of "Help talk:Template"

From ArchWiki
Jump to: navigation, search
(Discrepancy with protected status of code formatting templates: rm closed discussion)
(Escaping template-breaking characters: rm closed discussion)
Line 1: Line 1:
==<s>Escaping template-breaking characters</s>==
We should add rule to use the methods only in certain cases:
* Do not use {{ic|&lt;nowiki>}} tags for escaping single characters (as in {{ic|<nowiki>{{bc|echo foo &lt;nowiki>|&lt;/nowiki> command...}}</nowiki>}} or {{ic|<nowiki>{{ic|option &lt;nowiki>=&lt;nowiki> value}}</nowiki>}}), either use {{ic|<nowiki>{{ic|1=...}}</nowiki>}} or put the whole template argument into {{ic|&lt;nowiki>}} tags.
* Do not replace special characters with HTML entities whenever the content is relevant (scripts, configuration files etc.), use the {{ic|&lt;nowiki>}} tags instead.
This should make the ''code'' of articles much more readable and maintainable.
-- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 18:31, 5 December 2013 (UTC)
:Should be implemented, reopen this if you think there's more to do. -- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 05:11, 7 December 2013 (UTC)
::Nice, I like it ;) -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 07:13, 7 December 2013 (UTC)

Revision as of 17:12, 24 March 2014