Difference between revisions of "Help talk:Template"

From ArchWiki
Jump to: navigation, search
m (Escaping template-breaking characters: nice ;))
(Discrepancy with protected status of code formatting templates: rm closed discussion)
Line 1: Line 1:
==<s>Discrepancy with protected status of code formatting templates</s>==
[[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]].<br>
-- [[User:Jstjohn|Jstjohn]] ([[User talk: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.
:-- [[User:Jstjohn|Jstjohn]] ([[User talk:Jstjohn|talk]]) 04:59, 3 December 2013 (UTC)
::The first report is [https://wiki.archlinux.org/index.php?title=Help:Template&diff=285989&oldid=284095 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.
::-- [[User:Kynikos|Kynikos]] ([[User talk:Kynikos|talk]]) 14:33, 3 December 2013 (UTC)
==<s>Escaping template-breaking characters</s>==
==<s>Escaping template-breaking characters</s>==

Revision as of 01:13, 8 December 2013

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)