Modul:Citation: Unterschied zwischen den Versionen
+access
(mw.html) |
(+access) |
||
| Zeile 2: | Zeile 2: | ||
local citation = { | local citation = { | ||
suite = 'Citation', | suite = 'Citation', | ||
serial = '2020-04- | serial = '2020-04-27', | ||
} | } | ||
| Zeile 164: | Zeile 164: | ||
if cu.isSet( args.type ) and args.type ~= 'map' then | if cu.isSet( args.type ) and args.type ~= 'map' then | ||
args.scale = '' | args.scale = '' | ||
end | |||
if cu.isSet( args.access ) then | |||
args.access = cu.getKey( args.access, ci.accessTypes ) | |||
if args.access == '' then | |||
cu.addErrorMsg( ci.texts.accesswrong ) | |||
elseif not cu.isSet( args.url ) and not cu.isSet( args.archiveUrl ) then | |||
cu.addErrorMsg( ci.texts.accessNoUrl ) | |||
end | |||
end | end | ||
| Zeile 554: | Zeile 563: | ||
citation = cu.finalCleanup( citation ) | citation = cu.finalCleanup( citation ) | ||
if cu.isSet( args.access ) then | |||
citation = citation | |||
.. ' <span style="position:relative; top: -2px;">' | |||
.. ci.accessTypes[ args.access ].file .. '</span>' | |||
end | |||
cc.prepareForCOinS( args ) | cc.prepareForCOinS( args ) | ||