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
MalnadachBot (talk | contribs)
m Fixed Lint errors in signatures. (Task 2)
Line 23: Line 23:
--[[User:Larivact|Larivact]] ([[User talk:Larivact|talk]]) 16:44, 13 August 2018 (UTC)
--[[User:Larivact|Larivact]] ([[User talk:Larivact|talk]]) 16:44, 13 August 2018 (UTC)
:{{replyto|Larivact}} This is normal for all templates. See [[Help:Template#Problems and workarounds]], first bullet. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 20:52, 13 August 2018 (UTC)
:{{replyto|Larivact}} This is normal for all templates. See [[Help:Template#Problems and workarounds]], first bullet. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 20:52, 13 August 2018 (UTC)

== Remove unused "x" parameter ==

{{Edit template-protected}}

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).

You can check it by yourself:
* [https://en.wikipedia.org/w/index.php?search=insource%3A%22Trim%22+insource%3A%2FTrim+%2A%5C%7C+%2Ax+%2A%5C%3D%2Fi&title=Special:Search&profile=advanced&fulltext=1&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&ns118=1&ns119=1&ns710=1&ns711=1&ns828=1&ns829=1&ns2300=1&ns2301=1&ns2302=1&ns2303=1 insource:"Trim" insource:/Trim *\| *x *\=/i]

And the [https://en.wikipedia.org/wiki/Special:WhatLinksHere?target=Template%3ATrim&namespace=&hidetrans=1&hidelinks=1 redirects]:
* [https://en.wikipedia.org/w/index.php?title=Special:WhatLinksHere&target=User%3ADragons+flight%2Fstr+trim Pages that link to "User:Dragons flight/str trim"]
* [https://en.wikipedia.org/w/index.php?search=insource%3A%22Strip+whitespace%22+insource%3A%2F%5C%7C+%2Ax+%2A%5C%3D%2F&title=Special:Search&profile=advanced&fulltext=1&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&ns118=1&ns119=1&ns710=1&ns711=1&ns828=1&ns829=1&ns2300=1&ns2301=1&ns2302=1&ns2303=1 insource:"Strip whitespace" insource:/\| *x *\=/]
* [https://en.wikipedia.org/w/index.php?search=insource%3A%22Str+trim%22+insource%3A%2F%5C%7C+%2Ax+%2A%5C%3D%2F&title=Special:Search&profile=advanced&fulltext=1&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&ns118=1&ns119=1&ns710=1&ns711=1&ns828=1&ns829=1&ns2300=1&ns2301=1&ns2302=1&ns2303=1 insource:"Str trim" insource:/\| *x *\=/]
* [https://en.wikipedia.org/w/index.php?search=insource%3A%22StripWhitespace%22+insource%3A%2F%5C%7C+%2Ax+%2A%5C%3D%2F&title=Special:Search&profile=advanced&fulltext=1&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&ns118=1&ns119=1&ns710=1&ns711=1&ns828=1&ns829=1&ns2300=1&ns2301=1&ns2302=1&ns2303=1 insource:"StripWhitespace" insource:/\| *x *\=/]
* [https://en.wikipedia.org/w/index.php?search=insource%3A%22Cut%22+insource%3A%2FCut+%2A%5C%7C+%2Ax+%2A%5C%3D%2Fi&title=Special:Search&profile=advanced&fulltext=1&ns0=1&ns1=1&ns2=1&ns3=1&ns4=1&ns5=1&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&ns12=1&ns13=1&ns14=1&ns15=1&ns100=1&ns101=1&ns118=1&ns119=1&ns710=1&ns711=1&ns828=1&ns829=1&ns2300=1&ns2301=1&ns2302=1&ns2303=1 insource:"Cut" insource:/Cut *\| *x *\=/i]

The results are actually some &lt;nowiki&gt;'ed code examples, and a few false positives (the above searches are deliberately broad). The only change I had to make: [{{fullurl:Template:TMtr|diff=prev&oldid=1117988946}} 1117988946] (and [{{fullurl:Template:TMtr/sandbox|diff=prev&oldid=1117988966}} 1117988966]).

Removing this parameter would be a minor optimization, but multiplied by the [https://templatecount.toolforge.org/index.php?lang=en&namespace=10&name=Trim#bottom 1705162 transclusions] it may be interesting ;-)

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

Revision as of 16:45, 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]