45,337
edits
No edit summary |
No edit summary |
||
Line 455: | Line 455: | ||
local lang = args[1] or (mw.title.getCurrentTitle().nsText == "Template" and "und") or error("Language code has not been specified. Please pass parameter 1 to the template.") | local lang = args[1] or (mw.title.getCurrentTitle().nsText == "Template" and "und") or error("Language code has not been specified. Please pass parameter 1 to the template.") | ||
local headlink = args["headlink"] | local headlink = args["headlink"] | ||
local wplink = args["wplink"] | local wplink = args["wplink"] | ||
Line 509: | Line 508: | ||
end | end | ||
local subpage = mw.title.getCurrentTitle().subpageText | local subpage = mw.title.getCurrentTitle().subpageText | ||
local is_reconstructed = lang_type == "reconstructed" or mw.title.getCurrentTitle().nsText == "Reconstruction" | local is_reconstructed = lang_type == "reconstructed" or mw.title.getCurrentTitle().nsText == "Reconstruction" | ||
Line 533: | Line 531: | ||
if prev_term or prev_symbol then | if prev_term or prev_symbol then | ||
previous = m_links.full_link({lang = lang | previous = m_links.full_link({lang = lang, term = prev_term, alt = " < " .. prev_symbol, tr = "-"}) | ||
end | end | ||
local current = m_links.full_link({lang = lang | local current = m_links.full_link({lang = lang, alt = cur_symbol, tr = "-"}) | ||
local next = "" | local next = "" | ||
if next_term or next_symbol then | if next_term or next_symbol then | ||
next = m_links.full_link({lang = lang | next = m_links.full_link({lang = lang, term = next_term, alt = next_symbol .. " > ", tr = "-"}) | ||
end | end | ||
Line 547: | Line 545: | ||
if cardinal_term then | if cardinal_term then | ||
table.insert(forms, " ''[[cardinal number|Cardinal]]'' : " .. m_links.full_link({lang = lang | table.insert(forms, " ''[[cardinal number|Cardinal]]'' : " .. m_links.full_link({lang = lang, term = cardinal_term, alt = cardinal_alt, tr = cardinal_tr})) | ||
end | end | ||
if ordinal_term then | if ordinal_term then | ||
table.insert(forms, " ''[[ordinal number|Ordinal]]'' : " .. m_links.full_link({lang = lang | table.insert(forms, " ''[[ordinal number|Ordinal]]'' : " .. m_links.full_link({lang = lang, term = ordinal_term, alt = ordinal_alt, tr = ordinal_tr})) | ||
end | end | ||
if adverbial_term then | if adverbial_term then | ||
table.insert(forms, " ''[[adverbial number|Adverbial]]'' : " .. m_links.full_link({lang = lang | table.insert(forms, " ''[[adverbial number|Adverbial]]'' : " .. m_links.full_link({lang = lang, term = adverbial_term, alt = adverbial_alt, tr = adverbial_tr})) | ||
end | end | ||
if multiplier_term then | if multiplier_term then | ||
table.insert(forms, " ''[[multiplier|Multiplier]]'' : " .. m_links.full_link({lang = lang | table.insert(forms, " ''[[multiplier|Multiplier]]'' : " .. m_links.full_link({lang = lang, term = multiplier_term, alt = multiplier_alt, tr = multiplier_tr})) | ||
end | end | ||
if distributive_term then | if distributive_term then | ||
table.insert(forms, " ''[[distributive number|Distributive]]'' : " .. m_links.full_link({lang = lang | table.insert(forms, " ''[[distributive number|Distributive]]'' : " .. m_links.full_link({lang = lang, term = distributive_term, alt = distributive_alt, tr = distributive_tr})) | ||
end | end | ||
if collective_term then | if collective_term then | ||
table.insert(forms, " ''[[collective number|Collective]]'' : " .. m_links.full_link({lang = lang | table.insert(forms, " ''[[collective number|Collective]]'' : " .. m_links.full_link({lang = lang, term = collective_term, alt = collective_alt, tr = collective_tr})) | ||
end | end | ||
if fractional_term then | if fractional_term then | ||
table.insert(forms, " ''[[fractional|Fractional]]'' : " .. m_links.full_link({lang = lang | table.insert(forms, " ''[[fractional|Fractional]]'' : " .. m_links.full_link({lang = lang, term = fractional_term, alt = fractional_alt, tr = fractional_tr})) | ||
end | end | ||
if optional1_title then | if optional1_title then | ||
table.insert(forms, " ''" .. optional1_title .. "'' : " .. m_links.full_link({lang = lang | table.insert(forms, " ''" .. optional1_title .. "'' : " .. m_links.full_link({lang = lang, term = optional1_term, alt = optional1_alt, tr = optional1_tr})) | ||
end | end | ||
if optional2_title then | if optional2_title then | ||
table.insert(forms, " ''" .. optional2_title .. "'' : " .. m_links.full_link({lang = lang | table.insert(forms, " ''" .. optional2_title .. "'' : " .. m_links.full_link({lang = lang, term = optional2_term, alt = optional2_alt, tr = optional2_tr})) | ||
end | end | ||
Line 586: | Line 584: | ||
if wplink then | if wplink then | ||
footer = | footer = | ||
"[[w:" .. | "[[w:" .. "av" .. ":Main Page|" .. "Avendonian" .. " Wikipedia]] article on " .. | ||
m_links.full_link({lang = lang | m_links.full_link({lang = lang, term = "w:" .. "av" .. ":" .. wplink, alt = alt, tr = tr}) | ||
end | end | ||