Help talk:Template

From ArchWiki
Revision as of 01:13, 8 December 2013 by Jstjohn (talk | contribs) (Discrepancy with protected status of code formatting templates: rm closed discussion)
Jump to: navigation, search

Escaping template-breaking characters

We should add rule to use the methods only in certain cases:

  • Do not use <nowiki> tags for escaping single characters (as in {{bc|echo foo <nowiki>|</nowiki> command...}} or {{ic|option <nowiki>=<nowiki> value}}), either use {{ic|1=...}} or put the whole template argument into <nowiki> tags.
  • Do not replace special characters with HTML entities whenever the content is relevant (scripts, configuration files etc.), use the <nowiki> tags instead.

This should make the code of articles much more readable and maintainable.

-- Lahwaacz (talk) 18:31, 5 December 2013 (UTC)

Should be implemented, reopen this if you think there's more to do. -- Kynikos (talk) 05:11, 7 December 2013 (UTC)
Nice, I like it ;) -- Lahwaacz (talk) 07:13, 7 December 2013 (UTC)