Lua-native alternative to popular flag templates. Can be used to reduce post-expand include size of pages with lots of templates, since it avoids calling multilevel templates.

Template Module Code Output PEIS Code Output PEIS {{flag|CHN}}   CHN 443b {{#invoke:flag||CHN}}   CHN 128b {{flagcountry|CHN}}   චීනය 577b {{#invoke:flag|country|CHN}}   චීනය 128b {{flagdeco|CHN}}   452b {{#invoke:flag|deco|CHN}}   107b {{flagicon|CHN}}   548b {{#invoke:flag|icon|CHN}}   117b {{flag+link|History of|CHN}} සැකිල්ල:Flag+link 663b {{#invoke:flag|+link|History of|CHN}}   චීනය 139b {{flagathlete|Andy Murray|GBR}}   Andy Murray (GBR) 617b {{#invoke:flag|athlete|Andy Murray|GBR}}   Great Britain 210b {{flagmedalist|Andy Murray|GBR}} සැකිල්ල:Flagmedalist 469b {{#invoke:flag|medalist|Andy Murray|GBR}} Andy Murray
  Great Britain 129b


"https://si.wikipedia.org/w/index.php?title=Module:Flag/doc&oldid=631592" වෙතින් සම්ප්‍රවේශනය කෙරිණි