Changes

Jump to navigation Jump to search

Module:Citation

149 bytes added, 20:37, 30 March 2013
fixes
}
}
 
function trim( str )
if str == nil then
return nil;
end
return str:match( "^%s*(.-)%s*$" );
end
function hideinprint(content)
function name(args)
local P1 = trim(args[1] ) or ""
if ( args[5] ~= nil) then
return P1 .. " et al."
else
local P2 = trim(args[2] ) or "" local P3 = trim(args[3] ) or "" local P4 = trim(args[4] ) or ""
if ( args[4] ~= nil ) then
P4 = " " .. P4
P3 = ", & amp; " .. P3
P2 = ", " .. P2
elseif ( args[3] ~= nil ) then
P3 = " " .. P3
P2 = " & amp; " .. P2
elseif ( args[2] ~= nil ) then
P2 = " " .. P2
Anonymous user

Navigation menu