Module:Edition and Module:Edition/sandbox: Difference between pages
(Difference between pages)
Content deleted Content added
m Changed protection settings for "Module:Edition": High traffic page or template/module ([Edit=Allow only administrators] (indefinite)) |
add authors to inline method |
||
Line 152: | Line 152: | ||
local outHtml = mw.html.create() |
local outHtml = mw.html.create() |
||
local separator = args.separator or ', ' |
local separator = args.separator or ', ' |
||
local last_separator = args.last_separator or ', and |
local last_separator = args.last_separator or ', and ' |
||
local i = 1 |
local i = 1 |
||
for _, link in pairs( authorLinks ) do |
for _, link in pairs( authorLinks ) do |
||
Line 201: | Line 201: | ||
local publicationDate = item:formatPropertyValues( 'P577' ) |
local publicationDate = item:formatPropertyValues( 'P577' ) |
||
outHtml:wikitext( '(' .. publicationDate.value .. ') ' ) |
outHtml:wikitext( '(' .. publicationDate.value .. ') ' ) |
||
-- Authors |
-- Authors |
||
local authorList = author_list( args ) |
|||
if args.hideauthors == nil or args.hideauthors == '' then |
|||
if authorList ~= '' then |
|||
⚫ | |||
if authorList ~= '' then |
|||
⚫ | |||
end |
|||
end |
end |
||