Module:Sandbox: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1:
local p = {}
function p.
-- supported languages
local lang_list = { 'ca', 'da', 'de', 'es', 'es-419', 'fr', 'he', 'hu', 'it', 'ja', 'lv', 'nb', 'nl', 'pl', 'pt', 'pt-br', 'ro', 'ru', 'sk', 'sv', 'uk', 'zh-hans' }
local
local root = 'Problems donating'
for i, lang in ipairs(lang_list) do
local p = mw.title.new( title )
output = output .. string.format('<li lang="%s" style="white-space: nowrap;">[[%s|{{#language:%s}}]]</li>', lang, title, lang)
else▼
end
▲ return expanded
end
function p.get_langtable( frame )
return p▼
-- supported languages
local lang_list = { "ca", "da", "de", "es", "es-419", "fr", "he", "hu", "it", "ja", "lv", "nb", "nl", "pl", "pt", "pt-br", "ro", "ru", "sk", "sv", "uk", "zh-hans" }
local output = ""
for i, lang in ipairs(lang_list) do
output = output .. string.gsub([==[
|-
! scope="row" | {{#language:~LANG~}}
| [[Thank You/~LANG~]]
| [[Ways to Give/~LANG~]]
| [[Problems donating/~LANG~]]
| [[Cancel or change recurring giving/~LANG~]]
| [[Matching Gifts/~LANG~]]
| [[FAQ/~LANG~]]
| [[Tax deductibility/~LANG~]]
]==], '~LANG~', lang)
end
|