Module:Citation/CS1: Difference between revisions
undid revisions after "Script error"; re-added "args.contribution"
m>Wikid77 (cut "args.contribution" to see if "Script error" stops in Lua crapnology) |
m>Wikid77 (undid revisions after "Script error"; re-added "args.contribution") |
||
Line 276: | Line 276: | ||
local TitleNote = args.department | local TitleNote = args.department | ||
local TitleLink = args.titlelink or args.episodelink | local TitleLink = args.titlelink or args.episodelink | ||
local Chapter = args.chapter or args.article or args.entry | local Chapter = args.chapter or args.contribution or args.article or args.entry | ||
local ChapterLink = args.chapterlink | local ChapterLink = args.chapterlink | ||
local TransChapter = args["trans-chapter"] or args.trans_chapter | local TransChapter = args["trans-chapter"] or args.trans_chapter | ||
Line 456: | Line 456: | ||
end | end | ||
if ( Editors == nil ) then | if ( Editors == nil ) then | ||
local EditorNameSep = args["editor-name-separator"] or args["name-separator"] or ", | local EditorNameSep = args["editor-name-separator"] or args["name-separator"] or ", " | ||
local EditorSep = args["editor-separator"] or args["separator"] or "; " | |||
local EditorSep = args["editor-separator"] or args["separator"] or "; | |||
local EditorFormat = args["editor-format"] or args.editorformat | local EditorFormat = args["editor-format"] or args.editorformat | ||
local EditorMaximum = tonumber(args["display-editors"] or args.displayeditors) or 3 | local EditorMaximum = tonumber(args["display-editors"] or args.displayeditors) or 3 | ||
local control = { sep = | local control = { sep = EdithorSep, namesep = EditorNameSep, format = EditorFormat, maximum = EditorMaximum } | ||
Editors = listpeople(control, e) | Editors = listpeople(control, e) | ||
end | end | ||
Line 613: | Line 611: | ||
SubscriptionRequired = "" | SubscriptionRequired = "" | ||
end | end | ||
if ( ARXIV | if ( ARXIV ~= nil ) then ARXIV = " " .. externallinkid(frame, {label="arXiv",link="arXiv",prefix="http://arxiv.org/abs/",id=ARXIV,separator=":"}) else ARXIV = "" end | ||
if ( ASIN | if ( ASIN ~= nil ) then ASIN = " " .. amazon(frame, ASIN, ASINTLD) else ASIN = "" end | ||
if ( BIBCODE | if ( BIBCODE ~= nil ) then BIBCODE = " " .. externallinkid(frame, {label="Bibcode",link="Bibcode",prefix="http://adsabs.harvard.edu/abs/",id=BIBCODE,separator=":"}) else BIBCODE = "" end | ||
if ( DOI | if ( DOI ~= nil ) then DOI = " " .. doi(frame, DOI, DoiBroken) else DOI = "" end | ||
if ( ID | if ( ID ~= nil ) then ID = " " .. ID else ID = "" end | ||
if ( ISBN | if ( ISBN ~= nil ) then ISBN = " " .. internallinkid(frame, {label="ISBN",link="International Standard Book Number",prefix="Special:BookSources/",id=ISBN}) else ISBN = "" end | ||
if ( ISSN | if ( ISSN ~= nil ) then ISSN = " " .. externallinkid(frame, {label="ISSN",link="International Standard Serial Number",prefix="//www.worldcat.org/issn/",id=ISSN}) else ISSN = "" end | ||
if ( JFM | if ( JFM ~= nil ) then JFM = " " .. externallinkid(frame, {label="JFM",link="Jahrbuch über die Fortschritte der Mathematik",prefix="http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:",id=JFM}) else JFM = "" end | ||
if ( JSTOR | if ( JSTOR ~= nil ) then JSTOR = " " .. externallinkid(frame, {label="JSTOR",link="JSTOR",prefix="http://www.jstor.org/stable/",id=JSTOR}) else JSTOR = "" end | ||
if ( LCCN | if ( LCCN ~= nil ) then LCCN = " " .. externallinkid(frame, {label="LCCN",link="Library of Congress Control Number",prefix="http://lccn.loc.gov/",id=LCCN}) else LCCN = "" end | ||
if ( MR | if ( MR ~= nil ) then MR = " " .. externallinkid(frame, {label="MR",link="Mathematical Reviews",prefix="http://www.ams.org/mathscinet-getitem?mr=",id=MR}) else MR = "" end | ||
if ( OCLC | if ( OCLC ~= nil ) then OCLC = " " .. externallinkid(frame, {label="OCLC",link="OCLC",prefix="//www.worldcat.org/oclc/",id=OCLC}) else OCLC = "" end | ||
if ( OL | if ( OL ~= nil ) then OL = " " .. openlibrary(frame, OL) else OL = "" end | ||
if ( OSTI | if ( OSTI ~= nil ) then OSTI = " " .. externallinkid(frame, {label="OSTI",link="Office of Scientific and Technical Information",prefix="http://www.osti.gov/energycitations/product.biblio.jsp?osti_id=",id=OSTI}) else OSTI = "" end | ||
if ( PMC | if ( PMC ~= nil ) then PMC = " " .. externallinkid(frame, {label="PMC",link="PubMed Central",prefix="//www.ncbi.nlm.nih.gov/pmc/articles/PMC",suffix="/?tool=pmcentrez",id=PMC}) else PMC = "" end | ||
if ( PMID | if ( PMID ~= nil ) then PMID = " " .. externallinkid(frame, {label="PMID",link="PubMed Identifier",prefix="//www.ncbi.nlm.nih.gov/pubmed/",id=PMID}) else PMID = "" end | ||
if ( RFC | if ( RFC ~= nil ) then RFC = " " .. externallinkid(frame, {label="RFC",link="Request for Comments",prefix="//tools.ietf.org/html/rfc",id=RFC}) else RFC = "" end | ||
if ( SSRN | if ( SSRN ~= nil ) then SSRN = " " .. externallinkid(frame, {label="SSRN",link="Social Science Research Network",prefix="http://ssrn.com/abstract=",id=SSRN}) else SSRN = "" end | ||
if ( URL | if ( URL ~= nil ) then URL = " " .. url(frame, URL) else URL = "" end | ||
if ( ZBL | if ( ZBL ~= nil ) then ZBL = " " .. externallinkid(frame, {label="ZBL",link="Zentralblatt MATH",prefix="http://www.zentralblatt-math.org/zmath/en/search/?format=complete&q=an:",id=ZBL}) else ZBL = "" end | ||
if ( Quote | if ( Quote ~= nil ) then | ||
Quote = " \"" .. Quote .. "\"" | Quote = " \"" .. Quote .. "\"" | ||
PostScript = "" | PostScript = "" | ||
else | else | ||
if ( PostScript | if ( PostScript ~= nil ) then PostScript = " " .. PostScript else PostScript = "" end | ||
Quote = "" | Quote = "" | ||
end | end | ||
Line 1,022: | Line 1,020: | ||
--20Feb2013 Fix empty "authorlink=" as person.link ~= "". | --20Feb2013 Fix empty "authorlink=" as person.link ~= "". | ||
--20Feb2013 Added space after AuthorSep & AuthorNameSep. | --20Feb2013 Added space after AuthorSep & AuthorNameSep. | ||
-- | -- | ||
--End | --End |