Module:ListUtils: Difference between revisions
No edit summary |
No edit summary |
||
| Line 87: | Line 87: | ||
table.insert(out, '[[' .. catNs .. ':' .. plain .. ']]') | table.insert(out, '[[' .. catNs .. ':' .. plain .. ']]') | ||
end | end | ||
-- Property | -- Property assignment via #set (silent if property is non-empty) | ||
if property and property ~= '' then | if property and property ~= '' then | ||
table.insert(out, ' | table.insert(out, '{{#set: ' .. property .. '=' .. plain .. '}}') | ||
end | end | ||
seen[plain] = true | seen[plain] = true | ||
| Line 118: | Line 118: | ||
if plain ~= '' and not seen[plain] then | if plain ~= '' and not seen[plain] then | ||
table.insert(out, ' | table.insert(out, '{{#set: ' .. property .. '=' .. plain .. '}}') | ||
seen[plain] = true | seen[plain] = true | ||
end | end | ||