<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
I would like a second opinion on some Lua code I am writing for the OSM wiki.<br>
<br>
The template {{langcode}} is called frequently within pages to detemine the language of pages from the name and is complicated. Calls with arguments have been added to several templates [ https://wiki.openstreetmap.org/w/index.php?title=Template:Available_languages&diff=1573804&oldid=1573466
 ]; the argument makes Mediawiki not cache the template and sometimes chokes the page renderer [ https://wiki.openstreetmap.org/wiki/Zh-hant:Map_Features ].<br>
<br>
The pages https://wiki.openstreetmap.org/wiki/User:Wynndale/langcode and https://wiki.openstreetmap.org/wiki/Module:Sandbox/Wynndale are a streamlined version of this template. I could do with another pair of eyes.<br>
<br>
--<br>
Andrew
</body>
</html>