Difference between revisions of "Template talk:ISO 639-3"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
::Could have this in O(1) instead of linear search by creating [[Template:ISO 639-3/deu]] to return "German", etc. and write this template as <nowiki>{{ISO 639/{{lc|{{{1|}}}}}}}</nowiki>. Though it would need the creation of 7646 pages to cover all cases... | ::Could have this in O(1) instead of linear search by creating [[Template:ISO 639-3/deu]] to return "German", etc. and write this template as <nowiki>{{ISO 639/{{lc|{{{1|}}}}}}}</nowiki>. Though it would need the creation of 7646 pages to cover all cases... | ||
::--[[File:Zai_signature.png|45px|link=User:Zai Lynch]] <sup><small>([[User talk:Zai Lynch|talk]]|[[Special:Contributions/Zai Lynch|contribs]])</small></sup> 08:33, 28 April 2012 (PDT) | ::--[[File:Zai_signature.png|45px|link=User:Zai Lynch]] <sup><small>([[User talk:Zai Lynch|talk]]|[[Special:Contributions/Zai Lynch|contribs]])</small></sup> 08:33, 28 April 2012 (PDT) | ||
:::That would shift the problem to the wiki engine as page lookup (not O(1)). Could be interesting since it almost certainly uses self balancing. -- '''[[User:Strife_Onizuka|Strife]]''' <sup><small>([[User talk:Strife_Onizuka|talk]]|[[Special:Contributions/Strife_Onizuka|contribs]])</small></sup> 10:53, 29 April 2012 (PDT) |
Latest revision as of 09:53, 29 April 2012
Is this template good for the wiki? I mean to say, how efficiently can it parse this template? -- Strife Onizuka 15:53, 1 January 2008 (PST)
- It's a giant switch statement- aren't those relatively efficient compared to a series of if loops ?
- SignpostMarv Martin 06:01, 2 January 2008 (PST)
- Could have this in O(1) instead of linear search by creating Template:ISO 639-3/deu to return "German", etc. and write this template as {{ISO 639/{{lc|{{{1|}}}}}}}. Though it would need the creation of 7646 pages to cover all cases...
- -- (talk|contribs) 08:33, 28 April 2012 (PDT)