Template talk:Trim: Difference between revisions
MalnadachBot (talk | contribs) m Fixed Lint errors in signatures. (Task 2) |
→Remove unused "x" parameter: new section |
||
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]] 🌹 ([[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]] 🌹 ([[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 <nowiki>'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
Text and/or other creative content from this version of Template:Trim was copied or moved into incubator:Template:Wp/nod/trim with this edit. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. |
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)
- In the future, this belongs at Wikipedia:Requests for page protection. Cbrown1023 talk 21:32, 15 April 2007 (UTC)
- 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)
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)
- @Larivact: This is normal for all templates. See Help:Template#Problems and workarounds, first bullet. --Redrose64 🌹 (talk) 20:52, 13 August 2018 (UTC)
Remove unused "x" parameter
It is requested that an edit be made to the fully protected template at Template:Trim. (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 fully 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 |
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:
- Pages that link to "User:Dragons flight/str trim"
- insource:"Strip whitespace" insource:/\| *x *\=/
- insource:"Str trim" insource:/\| *x *\=/
- insource:"StripWhitespace" insource:/\| *x *\=/
- insource:"Cut" insource:/Cut *\| *x *\=/i
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 ;-)