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:Country listdata
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) local args = require('Module:Arguments').getArgs(frame,{removeBlanks=false}) local list = "" if args[1] then list = mw.html.create('table') list:css("background-color","#ecfcf4") for n,c in ipairs(args) do if c~="" then local title = mw.title.new("Template:Country data "..c) local link if title.isRedirect then link = "["..title:fullUrl("redirect=no").." "..title.fullText.."]" else link = "[["..title.fullText.."]]" end local var = args["var"..n] or "" local vartext = var=="" and "" or " (<code>"..var.."</code> variant)" local note = args["note"..n] or "" local row = list:tag("tr") row:tag("td"):css("padding","0px 10px"):addClass("plainlinks"):wikitext(link..vartext) row:tag("td"):css("padding","0px 10px"):wikitext(require("Module:Flagg").luaMain(frame,{"usc", c, variant=var})) row:tag("td"):css("padding","0px 10px"):wikitext(note) end end end local head = "" if args["header"] and args["header"]~="" then if args["header"]=="related" then head = "====Related templates====\nPlease see the following related <code>country_data</code> templates:" elseif string.sub(args["header"],1,4)=="for:" then head = "<code>Country_data</code> templates are also available for "..string.sub(args["header"],5,-1)..":" else head = args["header"] end end return head..(head~="" and list~="" and "\n" or "")..tostring(list) end 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 listdata/doc
(
edit
)
Module:Country listdata/doc
(
edit
)