Wikipedia:Templates for discussion/Log/2018 April 5
Appearance
April 5
- Template:Bad (talk · history · transclusions · logs · subpages)
- Template:No (talk · history · transclusions · logs · subpages)
Propose merging Template:Bad with Template:No. Compare:
Bad | No |
It's a duplicate of {{no}}, aside from a barely noticable color difference (#faa vs. #F99). Nominated because there are 0 uses with no parameters, meaning that the default form is never used to display "Bad", allowing it to be easily redirected to {{no}}.
I'm unfortunately short on time, so I haven't handled other formalities (notifying users); I will handle them later if no one else has. It would be nice if they could be automatically handled by a bot in the future, but that's just wishful thinking. E to the Pi times i (talk | contribs) 18:53, 5 April 2018 (UTC)
- @Pppery: Oh! It was my edit to {{Bad}} that caused the erroneous merge template formatting! Thanks for fixing it; I'll definitely avoid making such an error in the future, now that I'm aware of it. E to the Pi times i (talk | contribs) 21:03, 5 April 2018 (UTC)
- (edit conflict) A large number of unrelated things went wrong there leading to the mess.
- Your edit to {{bad}} broke the template by making it include the open table tag that it shouldn't.
- {{bad}} and {{no}} don't work when used directly, but only when inside of tables (that's what produced the
style="background: #faa; color: black; vertical-align: middle; text-align: center; "
nonsense. ) - You can't include two open curly brackets in a row in the middle of a template without escaping them (
\{{2}
in the regex did that). (that's what made the template not subst) - Your signature has a displayed vertical bar in it. As it says in the relevant section of your preferences,
Note: to use a displayed pipe ("|") character (i.e. not part of a piped link), please use | for the pipe character; it can otherwise cause templates to fail.
, which only didn't cause a huge wikimarkup mess because of the previous problem. - Table markup can't be used inside templates without escaping it. (You didn't try to do this, I had to tackle this issue when resolving the problem)
- {{3x|p}}ery (talk) 21:11, 5 April 2018 (UTC)
- @E to the Pi times i: {{3x|p}}ery (talk) 21:16, 5 April 2018 (UTC)
- @Pppery: How do you escape curly brackets in templates? E to the Pi times i (talk | contribs) 21:20, 5 April 2018 (UTC)
- {{((}} or
<nowiki>{{</nowiki>
, although in my case it was easier to rewrite the regex to avoid the bad combination. {{3x|p}}ery (talk) 21:21, 5 April 2018 (UTC)- @Pppery: I note my sig is now substed. Did you change that? Does having it substed have any benefits over transclusion? E to the Pi times i (talk | contribs) 21:25, 5 April 2018 (UTC)
- I changed nothing, although there is a policy against using templates in signatures. {{3x|p}}ery (talk) 21:27, 5 April 2018 (UTC)
- @Pppery: I note my sig is now substed. Did you change that? Does having it substed have any benefits over transclusion? E to the Pi times i (talk | contribs) 21:25, 5 April 2018 (UTC)
- {{((}} or
- @Pppery: How do you escape curly brackets in templates? E to the Pi times i (talk | contribs) 21:20, 5 April 2018 (UTC)