Home
Random
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Sandbox/BU Rob13
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!
-- [SublimeLinter luacheck-globals:mw] -- This module serves to convert [[Template:WikiProject Central America]] from -- using country task forces to the new country WikiProject templates. -- Due to some changes of parameters needed for this module to run, it -- SHOULD NOT be run by anyone other than the module author without consultation -- Direct questions to User talk:BU Rob13. local p = {} local getBuffer, print = require("Module:OutputBuffer")() function p._main(args) local i = 0 if args.Belize then i = i + 1 end if args.CostaRica then i = i + 1 end if args.ElSalvador then i = i + 1 end if args.Guatemala then i = i + 1 end if args.Honduras then i = i + 1 end if args.Nicaragua then i = i + 1 end if args.Panama then i = i + 1 end if i == 0 or i > 2 then a = "{{WikiProject Central America" if args.class then a = a .. "|class=" .. args.class else a = a .. "|class=" end if args.importance then a = a .. "|importance=" .. args.importance else a = a .. "|importance=" end if args.attention then a = a .. "|attention=" .. args.attention end if args.needsinfobox then a = a .. "|needs-infobox=" .. args.needsinfobox end if args.small then a = a .. "|small=" .. args.small end if args.listas then a = a .. "|listas=" .. args.listas end if args.category then a = a .. "|category=" .. args.category end a = a .. "}}" print(a) end if i == 1 or i == 2 then if args.Belize == "yes" then a = "{{WikiProject Belize" if args.class then a = a .. "|class=" .. args.class else a = a .. "|class=" end if args.Belizeimportance then a = a .. "|importance=" .. args.Belizeimportance elseif args.importance then a = a .. "|importance=" .. args.importance else a = a .. "|importance=" end if args.small then a = a .. "|small=" .. args.small end if args.listas then a = a .. "|listas=" .. args.listas end if args.category then a = a .. "|category=" .. args.category end a = a .. "}}" print(a) end if args.CostaRica == "yes" then a = "{{WikiProject Costa Rica" if args.class then a = a .. "|class=" .. args.class else a = a .. "|class=" end if args.CostaRicaimportance then a = a .. "|importance=" .. args.CostaRicaimportance elseif args.importance then a = a .. "|importance=" .. args.importance else a = a .. "|importance=" end if args.small then a = a .. "|small=" .. args.small end if args.listas then a = a .. "|listas=" .. args.listas end if args.category then a = a .. "|category=" .. args.category end a = a .. "}}" print(a) end if args.ElSalvador == "yes" then a = "{{WikiProject El Salvador" if args.class then a = a .. "|class=" .. args.class else a = a .. "|class=" end if args.ElSalvadorimportance then a = a .. "|importance=" .. args.ElSalvadorimportance elseif args.importance then a = a .. "|importance=" .. args.importance else a = a .. "|importance=" end if args.small then a = a .. "|small=" .. args.small end if args.listas then a = a .. "|listas=" .. args.listas end if args.category then a = a .. "|category=" .. args.category end a = a .. "}}" print(a) end if args.Guatemala == "yes" then a = "{{WikiProject Guatemala" if args.class then a = a .. "|class=" .. args.class else a = a .. "|class=" end if args.Guatemalaimportance then a = a .. "|importance=" .. args.Guatemalaimportance elseif args.importance then a = a .. "|importance=" .. args.importance else a = a .. "|importance=" end if args.small then a = a .. "|small=" .. args.small end if args.listas then a = a .. "|listas=" .. args.listas end if args.category then a = a .. "|category=" .. args.category end a = a .. "}}" print(a) end if args.Honduras == "yes" then a = "{{WikiProject Honduras" if args.class then a = a .. "|class=" .. args.class else a = a .. "|class=" end if args.Hondurasimportance then a = a .. "|importance=" .. args.Hondurasimportance elseif args.importance then a = a .. "|importance=" .. args.importance else a = a .. "|importance=" end if args.small then a = a .. "|small=" .. args.small end if args.listas then a = a .. "|listas=" .. args.listas end if args.category then a = a .. "|category=" .. args.category end a = a .. "}}" print(a) end if args.Nicaragua == "yes" then a = "{{WikiProject Nicaragua" if args.class then a = a .. "|class=" .. args.class else a = a .. "|class=" end if args.Nicaraguaimportance then a = a .. "|importance=" .. args.Nicaraguaimportance elseif args.importance then a = a .. "|importance=" .. args.importance else a = a .. "|importance=" end if args.small then a = a .. "|small=" .. args.small end if args.listas then a = a .. "|listas=" .. args.listas end if args.category then a = a .. "|category=" .. args.category end a = a .. "}}" print(a) end if args.Panama == "yes" then a = "{{WikiProject Panama" if args.class then a = a .. "|class=" .. args.class else a = a .. "|class=" end if args.Panamaimportance then a = a .. "|importance=" .. args.Panamaimportance elseif args.importance then a = a .. "|importance=" .. args.importance else a = a .. "|importance=" end if args.small then a = a .. "|small=" .. args.small end if args.listas then a = a .. "|listas=" .. args.listas end if args.category then a = a .. "|category=" .. args.category end a = a .. "}}" print(a) end end return getBuffer("\n") end function p.main(frame) local args = require("Module:Arguments").getArgs(frame) return p._main(args) 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)
Template used on this page:
Module:Sandbox/BU Rob13/doc
(
edit
)