Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Flag
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} function p._main(frame, name, mode, check) local categories = { Flagicon = '[[Category:Flagicons with missing country data templates]]', Flagdeco = '[[Category:Flagdeco with missing country data templates]]', } local args={} if require('Module:Yesno')(frame.args['getParent']) then for k,v in pairs(frame:getParent().args) do if (v or '') ~= '' then args[k] = v end end end for k,v in pairs(frame.args) do if (v or '') ~= '' then args[k] = v end end if name == 'Flag+link' then args['pref'] = args[1] else args['variant'] = args[2] or args['variant'] args[2] = args[1] end args[1] = mode .. (args['opts'] and args['opts'] or '') args['missingcategory'] = categories[name] or '' args['noredlink'] = args['noredlink'] or 'no' if require('Module:Yesno')(args['placeholder']) ~= true then args[1] = args[1] .. 'o' end if check then local opts = { unknown=frame:expandTemplate{ title = 'main other', args = { '[[Category:Pages using ' .. mw.ustring.lower(name) .. ' template with unknown parameters|_VALUE_' .. frame:getParent():getTitle() .. ']]' } }, preview='Page using [[Template:' .. name .. ']] with unknown parameter "_VALUE_"', ignoreblank='y', [1] = '1', [2] = '2', [3] = 'variant', [4] = 'image', [5] = 'size', [6] = 'sz', [7] = 'border', [8] = 'align', [9] = 'al', [10]= 'width', [11]= 'w', [12]= 'alt', [13]= 'ilink', [14]= 'noredlink', [15]= 'missingcategory', [16]= 'name', [17]= 'clink', [18]= 'link', [19]= 'pref', [20]= 'suff', [21]= 'plink', [22]= 'the', [23]= 'section', [24]= 'altvar', [25]= 'avar', [26]= 'age', [27]= 'nalign', [28]= 'nal', [29]= 'text', [30]= 'nodata', [31]= 'opts', [32]= 'placeholder', [33]= 'getParent' } check = require('Module:Check for unknown parameters')._check(opts,args) else check = '' end return require('Module:Flagg').luaMain(frame,args)..check end function p.main(frame) return p._main(frame, 'Flag', 'uncb', false) end p['flag'] = p.main function p.deco(frame) return p._main(frame, 'Flagdeco', 'uxx', false) end p['flagdeco'] = p.deco function p.icon(frame) return p._main(frame, 'Flagicon', 'cxxl', true ) end p['flagicon'] = p.icon function p.pluslink(frame) return p._main(frame, 'Flag+link', 'unpof', false ) end p['+link'] = p.pluslink p['flag+link'] = p.pluslink function p.country(frame) return p._main(frame, 'Flagcountry', 'unce', false ) end p['flagcountry'] = p.country return p
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Country data Argentina
(
edit
)
Template:Country data Austria
(
edit
)
Template:Country data Belgium
(
edit
)
Template:Country data Brazil
(
edit
)
Template:Country data China
(
edit
)
Template:Country data Czech Republic
(
edit
)
Template:Country data England
(
edit
)
Template:Country data Iran
(
edit
)
Template:Country data Sweden
(
edit
)
Template:Country data Switzerland
(
edit
)
Template:Country data Turkey
(
edit
)
Template:Country data United Kingdom
(
edit
)
Template:Flag
(
edit
)
Template:Flag+link
(
edit
)
Template:Flagcountry
(
edit
)
Template:Flagdeco
(
edit
)
Template:Flagicon
(
edit
)
Template:Lua
(
edit
)
Template:Main other
(
edit
)
Template:Ml
(
edit
)
Template:Mlx
(
edit
)
Template:Module other
(
edit
)
Template:Module rating
(
edit
)
Template:Ombox
(
edit
)
Template:Sandbox other
(
edit
)
Template:Table
(
edit
)
Template:Tl
(
edit
)
Template:Tlx
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:CountryData
(
edit
)
Module:CountryData/cacheB
(
edit
)
Module:CountryData/summary
(
edit
)
Module:Flag
(
edit
)
Module:Flag/doc
(
edit
)
Module:Flagg
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:String
(
edit
)
Module:Template link general
(
edit
)
Module:Yesno
(
edit
)