Help talk:Template

From ArchWiki
Revision as of 07:13, 7 December 2013 by Lahwaacz (Talk | contribs) (Escaping template-breaking characters: nice ;))

Jump to: navigation, search

Discrepancy with protected status of code formatting templates

Template:ic and Template:bc are protected from editing, but Template:hc is unprotected. Template:hc should probably be protected as well, and then the section Help:Template#Code_formatting_templates should be moved under Help:Template#Protected_templates.
-- Jstjohn (talk) 04:24, 3 December 2013 (UTC)

I also noticed that Template:Pkg is protected from editing, but Template:Grp and Template:AUR are not.
-- Jstjohn (talk) 04:59, 3 December 2013 (UTC)
The first report is fixed the KISS way :)
All the most extensively used templates are explicitly protected now, a spammer could exploit them to reach a vast audience with almost no effort. Some templates were previously protected only by cascading effect from either the Main Page or the Installation Guide.
Thank you! Closing.
-- Kynikos (talk) 14:33, 3 December 2013 (UTC)

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)