Importer, Bürokraten, Moderatoren (CommentStreams), Strukturierte-Diskussionen-Bots, Oberflächenadministratoren, Push-Abonnementverwalter, Oversighter, Administratoren, Kampagnenbearbeiter (Hochladeassistent)
855
Bearbeitungen
K (whitespace) |
K (13 Versionen von wpen:Module:Cite_tweet importiert) |
||
| (7 dazwischenliegende Versionen von 7 Benutzern werden nicht angezeigt) | |||
| Zeile 29: | Zeile 29: | ||
['archive-url'] = args['archive-url'] or args.archiveurl, | ['archive-url'] = args['archive-url'] or args.archiveurl, | ||
['url-status'] = args['url-status'] or args['dead-url'] or args.deadurl, | ['url-status'] = args['url-status'] or args['dead-url'] or args.deadurl, | ||
quote = args.quote, | |||
ref = args.ref, | ref = args.ref, | ||
df = args.df | df = args.df | ||
| Zeile 35: | Zeile 36: | ||
cite_args.author = (args.last1 or args.last) .. | cite_args.author = (args.last1 or args.last) .. | ||
(_if(args.first1 or args.first) and (', ' .. (args.first1 or args.first)) or '') .. | (_if(args.first1 or args.first) and (', ' .. (args.first1 or args.first)) or '') .. | ||
'[@' .. (args.user or '') .. ']' | ' [@' .. (args.user or '') .. ']' | ||
elseif _if(args.author1 or args.author) then | elseif _if(args.author1 or args.author) then | ||
cite_args.author = (args.author1 or args.author) .. '[@' .. (args.user or '') .. ']' | cite_args.author = (args.author1 or args.author) .. ' [@' .. (args.user or '') .. ']' | ||
elseif _if(args['author-link']) then | elseif _if(args['author-link']) then | ||
cite_args.author = args['author-link'] .. '[@' .. (args.user or '') .. ']' | cite_args.author = args['author-link'] .. ' [@' .. (args.user or '') .. ']' | ||
else | else | ||
cite_args.author = '@' .. (args.user or '') | cite_args.author = '@' .. (args.user or '') | ||
end | end | ||
cite_args.date = args.date or (_if(args.number) and TwitterSnowflake.snowflakeToDate{ args = {id_str = args.number} }) | if cite_args.author:find ('[Tt]witter') then | ||
cite_args.author = '((' .. cite_args.author .. '))' | |||
end | |||
if _if(tonumber(args.number)) then | |||
cite_args.date = args.date or (_if(args.number) and TwitterSnowflake.snowflakeToDate{ args = {id_str = args.number} }) | |||
else | |||
cite_args.date = args.date | |||
end | |||
frame.args = cite_args | frame.args = cite_args | ||
| Zeile 50: | Zeile 58: | ||
-- Error checking | -- Error checking | ||
local error_template = '<span class="cs1-visible- | local error_template = '<span class="cs1-visible-error citation-comment">%s</span>' | ||
local errors = {} | local errors = {} | ||
if not (_if(args.title) or _if(args['script-title']) or args.user or args.number or args.date) then | if not (_if(args.title) or _if(args['script-title']) or args.user or args.number or args.date) then | ||