Modul:Citace: Porovnání verzí
Smazaný obsah Přidaný obsah
Oprava pro "druh nosiče" v Šablona:Citace elektronické monografie |
p.citUrl: refactoring kódu, redukce větvení; oprava omylu (dvě různé funkce se jménem p.citEdition) |
||
Řádek 100:
p.citDate(c)
p.citNumberOfVolumesPagesAppendices(c)
p.
p.citUrl(c)
p.citIsbn(c)
Řádek 135:
p.citDate(c)
-- p.citNumberOfVolumesPagesAppendices(c)
p.
p.citChapterPage(c)
p.citNotes(c)
Řádek 973:
end
function p.
if c.trace then p.trace(c, debug.getinfo(1, "n")) end
if not p.empty(c.args["edice"]) then
Řádek 1 014:
end
c.state.afterUrlStr = t.afterUrlStr
table.insert(c.r, ""▼
.. " [" .. c.args["url"] .. " Dostupné online]"▼
.. "."▼
)▼
end▼
if not p.empty(c.args["url alt"]) then▼
end
else
if not p.empty(c.args["url"]) then
p.citUrlInnerFn(c)
t.liveUrl = c.args["nedostupné"] == "ne" or c.args["dead-url"] == "no" or c.args["deadurl"] == "no"▼
table.insert(c.r, " "▼
.. p.wikiextlink(c.args["url archivu"], p.coalesce(c.args["dostupnost"], "Dostupné v archivu"))▼
.. ((t.liveUrl or not p.empty(c.args["datum archivace"])) and " pořízeném" or "")▼
.. (t.liveUrl and " z " .. p.wikiextlink(c.args["url"], "originálu") or "")▼
.. (not p.empty(c.args["datum archivace"]) and " dne " .. c.args["datum archivace"] or "")▼
.. "."▼
)▼
else▼
.. p.wikiextlink(c.args["url"], p.coalesce(c.args["dostupnost"], "Dostupné online"))▼
)▼
end▼
end
end
-- citacePeriodika
if c.type == 'citaceElMonografie' or c.type == 'citaceElPeriodika' then▼
.. p.coalesce(c.args["dostupnost2"], "Dostupné také na:")▼
if
▲
)▼
if
)▼
.. p.wikiextlink(c.args["url3"])
end
end
function p.citUrlInnerFn(c)
▲
▲
.. (c.state.afterUrlStr and c.state.afterUrlStr or "")
end
end
|