Module talk:Flags: Difference between revisions

Content deleted Content added
Created page with '==Code change == Hello I saw your module on it.wiki, and I woul like to make some changes to the code: # declare local all variable, they are more efficient and ...'
 
Line 1:
==Code change ==
Hello I saw your module on it.wiki, and I woul like to make some changes to the code:
# declare local all variablevariables, they are more efficient and quick to access and you dont pollute global namespace
# Why do you use a for loop to check if a key is in the table like:
<syntaxhighlight lang="lua">
Line 19:
end
</syntaxhighlight>
# Why check for <code>if territory.args[2] ~= "{{{2}}}" then</code> ? AFAIK a paremeter call will be resolved before call the module and substituded by its value.
 
I will upload my changes to the sandbox for test.--[[User:Moroboshi|Moroboshi]] ([[User talk:Moroboshi|talk]]) 11:14, 22 July 2013 (UTC)