Template talk:Str number/trim

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Unit tests[edit]

Should be created for this template. --ben_b (talk) 10:41, 26 May 2013 (UTC)[reply]

option to select[edit]

My problem is this: my input contains the string,

105-110-99-108-100-98

Using this Template:Str number/trim would only yield 105.

I was wondering if there's a way of choosing the nth numeric text. For example, I want to extract the third and last number, 99 and 98.

Thanks. TjBison (talk) 16:38, 14 May 2016 (UTC)[reply]

Requested move 14 October 2018[edit]

The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review after discussing it on the closer's talk page. No further edits should be made to this section.

The result of the move request was: no consensus; not moved. After looking closer at this, I decided that it's too entrenched now, and too much bother to fix something that's "not broken". wbm1058 (talk) 15:09, 13 November 2018 (UTC)[reply]



Template:Str number/trimTemplate:Str number trim – Using a space instead of a slash makes the template name clearer; not sure why a slash was initially used or how it makes sense. -- AlexTW 03:06, 14 October 2018 (UTC)--Relisting. B dash (talk) 14:30, 22 October 2018 (UTC) --Relisting. IffyChat -- 14:11, 2 November 2018 (UTC)[reply]

OK, I'm looking at this so as to come to some resolution. The page is cascade-protected as it transcludes to Wikipedia's main main page, so we should proceed carefully. The original design was unconventional, as before this was converted to use a Lua module, this so-called subtemplate actually transcluded its "parent" template. That is not what a template "programmer" would generally expect. Generally, template subpages should only be transcluded internally by their parent template, and not externally by other templates, and a "child" template shouldn't transclude its "parent". So the proposal makes sense as this shouldn't have been implemented as a subtemplate in the first place. I suppose whether or not this should be "fixed" (nothing is really broken) depends on the amount of work needed to fix it and whether anything will be disrupted in the process. These were all created by 117Avenue, who hasn't edited since March of this year. I'm going to investigate further, and in the meantime clean up some redundancies left behind after the conversion to Lua. – wbm1058 (talk) 14:43, 10 November 2018 (UTC)[reply]


The above discussion is preserved as an archive of a requested move. Please do not modify it. Subsequent comments should be made in a new section on this talk page or in a move review. No further edits should be made to this section.