Template talk:Bracket
end bracket
[edit]Please add a way for this template to produce just the end bracket just like it can produce just the start bracket. CapnZapp (talk) 09:25, 21 April 2022 (UTC)
COinS pollution
[edit]How (and why) does this template pollute COinS? Doesn't it just add plain text? Hairy Dude (talk) 13:18, 2 May 2023 (UTC)
Template edit request
[edit]It is requested that an edit be made to the template-protected template at Template:Bracket. (edit · history · last · links · sandbox · edit sandbox · sandbox history · sandbox last edit · sandbox diff · test cases · transclusion count · protection log) This template must be followed by a complete and specific description of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
Edit requests to template-protected pages should only be used for edits that are either uncontroversial or supported by consensus. If the proposed edit might be controversial, discuss it on the protected page's talk page before using this template. Consider making changes first to the template's sandbox and test them thoroughly here before submitting an edit request. To request that a page be protected or unprotected, make a protection request. When the request has been completed or denied, please add the |
Please replace the code of this template
[{{#if:{{{1|}}}|{{{1}}}]}}
(example output: [xxx ])
with
{{#if:{{{1|}}}|[{{{1}}}]|[}}
(example output: [ xxx ])
The reason is that the current code trims leading whitespace but not trailing whitespace if the first (unnamed) parameter is present. Not trimming either will making it consistent with the way in which template parameters work generally. —Quondum 21:15, 19 December 2024 (UTC)
- Why not trim at both ends? — Martin (MSGJ · talk) 00:04, 21 December 2024 (UTC)
- Because (a) that makes it atypical template behaviour (as I already indicated), (b) it removes agency of the editor in terms of adding spaces, and (c) it would pointlessly add complexity to the template implementation. —Quondum 00:33, 21 December 2024 (UTC)
- I agree with Quondum's concerns. Not trimming spaces is particularly beneficial where the bracketed term is italicised: [ XXX ] is better and more consistent than
{{bracket| ''XXX'' }}
-> [XXX ]. -- Michael Bednarek (talk) 00:50, 21 December 2024 (UTC)
- I agree with Quondum's concerns. Not trimming spaces is particularly beneficial where the bracketed term is italicised: [ XXX ] is better and more consistent than
- Because (a) that makes it atypical template behaviour (as I already indicated), (b) it removes agency of the editor in terms of adding spaces, and (c) it would pointlessly add complexity to the template implementation. —Quondum 00:33, 21 December 2024 (UTC)