Content deleted Content added
Fred Gandt (talk | contribs) m fiddle |
Fred Gandt (talk | contribs) blimey |
||
Line 8:
end
local function
return '[[:' .. name .. '|' .. ( display or name ) .. ']]'▼
local text = args.text
if not lang or lang == 'en' then
return text
end
return mLang._lang {
lang,
text,
italic = args.italic or '',
nocat = args.nocat or '',
size = args.size or '',
cat = args.cat or '',
rtl = args.rtl or ''
}
end
Line 34 ⟶ 47:
end
local case = args.desc_first_letter_case
local dash = args.dash or ' –'
local display = args.display
Line 39 ⟶ 53:
local quote = args.quote
local abbr = args.abbr
▲ local case = args.case
local aka = args.aka
local
args = {
lang_italic = args.desc_lang_italic,
Line 57 ⟶ 70:
}
local result =
lang = args.link_lang,
italic = args.link_lang_italic,
nocat = args.link_lang_nocat,
size = args.link_lang_size,
cat = args.link_lang_cat,
rtl = args.link_lang_rtl
} )
if quote then
Line 68 ⟶ 89:
if aka then
result = result .. ', also known as ' ..
lang = args.aka_lang,
text = aka,
italic = args.aka_lang_italic,
nocat = args.aka_lang_nocat,
size = args.aka_lang_size,
cat = args.aka_lang_cat,
rtl = args.aka_lang_rtl
} )
end
if wedge then
result = result .. ', ' ..
lang = args.wedge_lang,
text = wedge,
italic = args.wedge_lang_italic,
nocat = args.wedge_lang_nocat,
size = args.wedge_lang_size,
cat = args.wedge_lang_cat,
rtl = args.wedge_lang_rtl
} )
end
local short_description = handleFirstLetterCase( getShortDescription(
if short_description and short_description ~= '' then
result = result .. dash .. ' ' .. short_description
Line 97 ⟶ 134:
{{#invoke:AnnotatedLink|main
|name= |display= |wedge= |quote= |dash= |abbr= |
|link_lang= |link_lang_italic= |link_lang_nocat= |link_lang_size= |link_lang_cat= |link_lang_rtl=
|wedge_lang= |wedge_lang_italic= |wedge_lang_nocat= |wedge_lang_size= |wedge_lang_cat= |wedge_lang_rtl=
|aka_lang= |aka_lang_italic= |aka_lang_nocat= |aka_lang_size= |aka_lang_cat= |aka_lang_rtl=
|only= |prefer= |fallback=
Line 105 ⟶ 148:
}}
p.main { args = { name = "", display = "", wedge = "", quote = "", dash = "", abbr = "",
p.main { args = { name = "The Partisan" } }
p.main { args = { name = "The Partisan", quote = "yes" } }
p.main { args = { name = "The Partisan", quote = "yes", only = "wikidata",
p.main { args = { name = "Author, Author (Star Trek: Voyager)" } }
Line 115 ⟶ 158:
p.main { args = { name = "Author, Author (Star Trek: Voyager)", display = "Author, Author", wedge = "''(Star Trek: Voyager)''" } }
p.main { args = { name = "Confédération Mondiale des Activités Subaquatiques", display = "World Underwater Federation", abbr = "CMAS", aka = "''Confédération Mondiale des Activités Subaquatiques''",
--]]
-- p.main { args = { name = "The Partisan", quote = "yes", only = "wikidata", desc_first_letter_case = "upper", wedge = "from the album ''[[Songs from a Room]]''", aka = "La Complainte du partisan", aka_lang = "fr" } }
|