and i don't like that %lang% depends of the browsers language.
Others we can be need or envy to like its existence
?lang= ?spec=stringfr
you can use {{urlvar|lang}} or {{urlvar|sp}} to return what you want
and use something like
Short version:
[special:string]
{{section|string{{urlvar|sp}}|url{{urlvar|sp}}.tpl}}
It is already possible to make what you wish with what we have under the hand
Longer version:
[special:string]
%sym-{{urlvar|sp}}%
[sym-IT]
hey=you
name=Frank
msg=do the right thing
[sym-FR]
hey=Vous
name=Marcel
msg=fait les choses correctement
[sym-XX]
{{section|externalXX|urlXX.tpl}}
missing just macro {{£name}} {{£msg}} return the correct message according what you pass with ?sp=IT
%sp% with ?sp= will never exist, bacter,forget this possibility
(I believe that that there also I am going to put myself him in back, but it is him who in begun with left mid and right)
%var% must be reserved for the internal informattions in hfs, for the parameters URL it exist a macro self-important for that (read the wiki)
http://www.rejetto.com/wiki/index.php?title=HFS:_Template_macros#Data_getting(I believe that that there also I am going to put myself him in back, but it is him who in begun with left mid and right)
Why not
{{filevar|name|file.tpl}}
by sample {{filevar|last-external-address|/hfs.ini}} return your external IP
%lang% will just return language using by user's browser
Otherwise there is that for the inconsolable of any javascript
<script language="JavaScript">
/*
Browser Language Redirect script- By JavaScript Kit
For this and over 400+ free scripts, visit http://www.javascriptkit.com
This notice must stay intact
*/
//Enter ISO 639-2 letter Language codes to detect (see: http://www.w3.org/WAI/ER/IG/ert/iso639.htm):
var langcodes=new Array("en", "fr", "es", "ja", "zh", "default")
//Enter corresponding redirect URLs (last one is for default URL):
var langredirects=new Array("index.htm", "french.htm", "spanish.htm", "japan.htm", "chinese.htm", "index.htm")
var languageinfo=navigator.language? navigator.language : navigator.userLanguage
var gotodefault=1
function redirectpage(dest){
if (window.location.replace)
window.location.replace(dest)
else
window.location=dest
}
for (i=0;i<langcodes.length-1;i++){
if (languageinfo.substr(0,2)==langcodes[i]){
redirectpage(langredirects[i])
gotodefault=0
break
}
}
if (gotodefault)
redirectpage(langredirects[langcodes.length-1])
</script>