Template talk:str ≥ len

Hello, you have come here looking for the meaning of the word Template talk:str ≥ len. In DICTIOUS you will not only get to know all the dictionary meanings for the word Template talk:str ≥ len, but we will also tell you about its etymology, its characteristics and you will know how to say Template talk:str ≥ len in singular and plural. Everything you need to know about the word Template talk:str ≥ len you have here. The definition of the word Template talk:str ≥ len will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofTemplate talk:str ≥ len, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

The following discussion has been moved from Wiktionary:Requests for deletion.

This discussion is no longer live and is left here as an archive. Please do not modify this conversation, but feel free to discuss its conclusions.


Ridiculously heavy templates imported from Wikipedia that attempt to manipulate strings by using padright tens of thousands of times. --Yair rand (talk) 22:08, 7 February 2011 (UTC)Reply

I'd rather keep them, and use them for templates of categories. --Daniel. 22:18, 7 February 2011 (UTC)Reply
As a side note, I would also be happy if alternatively mw:Extension:StringFunctions could be installed here. --Daniel. 22:20, 7 February 2011 (UTC)Reply
The devs have made it pretty clear that none of the Wikimedia wikis are ever going to get string functions. --Yair rand (talk) 22:24, 7 February 2011 (UTC)Reply
By my understanding, that's only partly true. The devs take issue with some specific aspects of that extension, but they're not opposed to the entire concept of string-functions. IINM, it's considered likely that a significant subset of its functions will eventually be incorporated into the ParserFunctions extension (which is installed here). —RuakhTALK 22:30, 7 February 2011 (UTC)Reply
Delete {{str find}}, {{str index}}, and {{str sub}}. (I'd be fine with deleting the other two as well, but they actually aren't very expensive, so I don't terribly mind if we keep them.) —RuakhTALK 22:21, 7 February 2011 (UTC)Reply
Incidentally, because of the way they're implemented, these templates are also quite limited: {{str find}} can only search the first 50 characters (which limit can be raised, but only by making the template commensurately more expensive), and {{str index}} and {{str sub}} only support a very limited character set (which set can be made less limited, but only by making the template commensurately more expensive). —RuakhTALK 23:47, 7 February 2011 (UTC)Reply
Strong support of what Ruakh said. DAVilla 19:52, 22 February 2011 (UTC)Reply

Keep. I've been using this extensively to add inflection tables. It removes the last letters of a word to produce a stem for inflection. For example, in the word hevonen, the following:

{{fi-decl-nainen|{{subst:padright:|{{subst:#expr:{{subst:str len|{{subst:PAGENAME}}}}-3}}|{{subst:PAGENAME}}}}}}

Produces: {{fi-decl-nainen|hevo}}

I had valuable help on this from Yair rand. ~ heyzeuss 22:15, 8 February 2011 (UTC)Reply

Well, if we can guarantee any of these templates only be used substed, I wouldn't mind keeping it. I suppose using the subst: trick that ensures that, protecting the page, and adding notes to the talkpage and documentation indicating that the templates must remain nontranscludable will do.​—msh210 (talk) 22:22, 8 February 2011 (UTC)Reply
I'd be O.K. with that as well. —RuakhTALK 23:12, 8 February 2011 (UTC)Reply
Thank you kindly. That would have pulled the rug out from under me!   :)   ~ heyzeuss 06:12, 9 February 2011 (UTC)Reply
BTW, also delete {{str len}} and delete or fix {{wide image/sandbox}}. —RuakhTALK 22:29, 7 February 2011 (UTC)Reply
I've added those headers, above, now.​—msh210 (talk) 22:34, 7 February 2011 (UTC)Reply
Delete str find, str index, str sub, and str len, per others' comments.​—msh210 (talk) 22:34, 7 February 2011 (UTC) ← This opinion has been qualified; see my comments, above, of 22:22, 8 February 2011 (UTC).​—msh210 (talk)Reply
Keep Template:wide image/sandbox, but do not use in NS:0. It's a sandbox. Mglovesfun (talk) 23:07, 13 February 2011 (UTC)Reply


The following information has failed Wiktionary's deletion process.

It should not be re-entered without careful consideration.


These have no transclusions and aren't really needed anymore because we have Lua to do this now. There's also Template:str left but that's still used on a few pages. —CodeCat 23:10, 26 December 2013 (UTC)Reply

They're also very expensive. So, yes, now that we have Lua, we should orphan and delete these templates. We should make sure User:Heyzeuss isn't still using these via subst: (as they were the last time these were RFDed), though, and make sure they know what Lua code to use to get the same effect. - -sche (discuss) 23:22, 26 December 2013 (UTC)Reply
I am not currently using any of these, even with subst. As long as there is some alternative, I have no objections. Lua looks interesting, and I suppose that I will have need of it sooner than later. ~ heyzeuss 13:33, 23 January 2014 (UTC)Reply