Changes

Jump to navigation Jump to search

Module:Citation

90 bytes added, 03:02, 19 October 2012
enhanced "pages=" to detect lone page as "p." else "pp." prefix.
local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself
local PPrefix = config.PPrefix or "p. " local PPPrefix = config.PPPrefix or "pp. "
if ( nil ~= args.nopp ) then PPPrefix = "" PPrefix = "" end
else
Position = " " .. Position
end
if ( PP ~= nil) then
if ( tonumber(PP) ~= nil ) then
Page = "lone " .. PP
else Page = "stuff " .. PP
end
end
if ( nil == Page ) then
Pages = ": " .. Pages
else
if ( tonumber(Pages) ~= nil ) then Page = " " .. PPrefix .. Pages else Pages = " " .. PPPrefix .. Pages end
end
if ( At ~= nil ) then At = " " .. At else At = "" end
--19Oct2012 Put HISTORY comments to log major changes (not typos).
--19Oct2012 Fixed extra dot ".." in Title by omitting at end of "tcommon=...".
--19Oct2012 For pages, put &nbsp in "p. " etc.
--19Oct2012 Enhanced "pages=" to detect lone page as "p." else "pp." prefix.
--19Oct2012 ?
--
--End
Anonymous user

Navigation menu