This is the documentation page for ਮੌਡਿਊਲ:Flag

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}} Lua error in package.lua at line 80: module 'Module:CountryData/cacheB' not found. 128b
{{flagcountry|CHN}}   ਚੀਨ 577b {{#invoke:flag|country|CHN}} Lua error in package.lua at line 80: module 'Module:CountryData/cacheB' not found. 128b
{{flagdeco|CHN}}   452b {{#invoke:flag|deco|CHN}} Lua error in package.lua at line 80: module 'Module:CountryData/cacheB' not found. 107b
{{flagicon|CHN}}   548b {{#invoke:flag|icon|CHN}} Lua error in package.lua at line 80: module 'Module:CountryData/cacheB' not found. 117b
{{flag+link|History of|CHN}} ਫਰਮਾ:Flag+link 663b {{#invoke:flag|+link|History of|CHN}} Lua error in package.lua at line 80: module 'Module:CountryData/cacheB' not found. 139b
{{flagathlete|Andy Murray|GBR}}   Andy Murray (GBR) 617b {{#invoke:flag|athlete|Andy Murray|GBR}}   Andy Murray (GBR) 210b
{{flagmedalist|Andy Murray|GBR}}   Andy Murray
ਗਰੇਟ ਬ੍ਰਿਟੇਨ (GBR)
469b {{#invoke:flag|medalist|Andy Murray|GBR}} Andy Murray
  ਗਰੇਟ ਬ੍ਰਿਟੇਨ
129b