Template talk:Lang2iso

From Wikipedia, the free encyclopedia

[edit] usefulness?

I fail to see how typing {{subst:lang2iso|German}} beats quickly checking the infobox at German language to learn the code is 'de'. The truly obscure languages aren't listed here anyway, and listing them all would make this absolutely unwieldy. In any case this template should never be transcluded. dab (𒁳) 10:42, 24 July 2007 (UTC)

I note this is transcluded from {{DisplayTranslations}}, and I can see some usefulness in that. dab (𒁳) 10:59, 24 July 2007 (UTC)

[edit] deprecated?

I'm wondering about the deprecation of this function. Would the identified solution in the deprecation box meet the needs of Template:DisplayTranslations? If not, is there perhaps someway to simply move this template (or, in my mind, "macro") onto the Template:DisplayTranslations page so that it becomes a local subfunction of that template? I guess, tangentially, if I may, it's not clear to me how deleting this template (which is my understanding of the desired destiny for all deprecated templates) while it is still in use by Template:DisplayTranslations which is included my multiple articles is of benefit to WP? Thanks for any guidance, Larry Rosenfeld (talk) 18:57, 24 July 2007 (UTC)

yes: there is no problem with people using this template if they find it useful, but they should subst: it (or we should send bots after un-subst:ed instances of teh template in article namespace). There is no problem with transcluding this template from {{DisplayTranslations}}, since that what it's really intended for. In my view, deprecating a template is not the same as calling for its deletion. A template can be considered a useful tool by editors and we can still send the bots after it to subst: it. It may be a good idea, though, to move this to Template:DisplayTranslations/Lang2iso. dab (𒁳) 10:05, 25 July 2007 (UTC)
Hi Dab! Thanks for the quick and helpful response. Given my vast template-writing ignorance, I'd appreciate it if you would allow me to pick your brains twice more:
  1. Is the purpose of the subst function then to save the processor from having to actually transclude the identified template in real-time (that is, when the transcluding article itself is accessed)?
  2. If we were to move this template to Template:DisplayTranslations/Lang2iso, I presume all references to Lang2iso in DisplayTranslations should be change to "DisplayTranslations/Lang2iso", right? Also, should the subst function be added to each invocation there as well? (BTW, if you'd like to simply implement this move with or without explaining further, please do! :-) )
Thanks again for all your help! Larry Rosenfeld (talk) 18:22, 25 July 2007 (UTC)