Jump to content

Template talk:Trim: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
Line 26: Line 26:
== Remove unused "x" parameter ==
== Remove unused "x" parameter ==


{{Edit template-protected|answered=yes}}
{{Edit template-protected|answered=}}


Hello, this template currently supports "x" as an alternative name for the parameter (refs [{{fullurl:Template:Trim|diff=prev&oldid=668935791}} 668935791]). Though, this alternative name isn't used at all on the wiki (nor documented).
Hello, this template currently supports "x" as an alternative name for the parameter (refs [{{fullurl:Template:Trim|diff=prev&oldid=668935791}} 668935791]). Though, this alternative name isn't used at all on the wiki (nor documented).

Revision as of 23:06, 24 October 2022

Template:Trim (edit | [[Talk:Template:Trim|talk]] | history | protect | delete | links | watch | logs | views)

semi-protect. This could become a victim of vandlism. Jaymac407 21:17, 15 April 2007 (UTC)[reply]

In the future, this belongs at Wikipedia:Requests for page protection. Cbrown1023 talk 21:32, 15 April 2007 (UTC)[reply]
Declined There has been no vandalism thus far and it does not qualify as a Wikipedia:High-risk templates. Cbrown1023 talk 21:33, 15 April 2007 (UTC)[reply]

How do I turn "text text text" into "texttexttext"? --16:11, 22 September 2012 (UTC) — Preceding unsigned comment added by 209.141.35.164 (talk)

Leading list markers result in a newline

Input:

x{{Trim|# test}}x

Expected output:

x# testx

Received output:

x
# testx

--Larivact (talk) 16:44, 13 August 2018 (UTC)[reply]

@Larivact: This is normal for all templates. See Help:Template#Problems and workarounds, first bullet. --Redrose64 🌹 (talk) 20:52, 13 August 2018 (UTC)[reply]

Remove unused "x" parameter

Hello, this template currently supports "x" as an alternative name for the parameter (refs 668935791). Though, this alternative name isn't used at all on the wiki (nor documented).

You can check it by yourself:

And the redirects:

The results are actually some <nowiki>'ed code examples, and a few false positives (the above searches are deliberately broad). The only change I had to make: 1117988946 (and 1117988966).

Removing this parameter would be a minor optimization, but multiplied by the 1705162 transclusions it may be interesting ;-)

Od1n (talk) 16:45, 24 October 2022 (UTC)[reply]

  •  Not done it isn't very clear what you want changed. You can make changes in the sandbox here: Template:Trim/sandbox, then you will need to test it well and document your tests, as this is used on a huge number of pages. — xaosflux Talk 21:20, 24 October 2022 (UTC)[reply]
I'm just asking to replace {{{x|{{{1|}}}}}} with {{{1|}}}. I demonstrated above the "x" parameter name isn't used anywhere. Od1n (talk) 23:02, 24 October 2022 (UTC)[reply]