Module:Citation/CS1: Difference between revisions
undid 2 revisions after "Script error"
m>Wikid77 (checked more blank codes) |
m>Wikid77 (undid 2 revisions after "Script error") |
||
Line 340: | Line 340: | ||
-- At this point fields may be nil if they weren't specified in the template use. We can use that fact. | -- At this point fields may be nil if they weren't specified in the template use. We can use that fact. | ||
-- Account for the oddity that is {{cite conference}}, before generation of COinS data. | -- Account for the oddity that is {{cite conference}}, before generation of COinS data. | ||
Line 612: | Line 606: | ||
then AccessDate = '<span class="reference-accessdate"> Retrieved ' .. AccessDate .. '.</span>' | then AccessDate = '<span class="reference-accessdate"> Retrieved ' .. AccessDate .. '.</span>' | ||
else AccessDate = "" end | else AccessDate = "" end | ||
if ( SubscriptionRequired ~= nil | if ( SubscriptionRequired ~= nil ) then | ||
SubscriptionRequired = " " .. z.mw.text.tag({name="span", contents="(subscription required)", params={style="font-size:0.95em; font-size: 90%; color: #555"}}) | SubscriptionRequired = " " .. z.mw.text.tag({name="span", contents="(subscription required)", params={style="font-size:0.95em; font-size: 90%; color: #555"}}) | ||
else | else | ||
SubscriptionRequired = "" | SubscriptionRequired = "" | ||
end | end | ||
if ( ARXIV ~= nil | if ( ARXIV ~= nil ) then ARXIV = " " .. externallinkid(frame, {label="arXiv",link="arXiv",prefix="http://arxiv.org/abs/",id=ARXIV,separator=":"}) else ARXIV = "" end | ||
if ( ASIN ~= nil ) then ASIN = " " .. amazon(frame, ASIN, ASINTLD) else ASIN = "" end | |||
if ( ASIN ~= nil | 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 ~= nil ) then DOI = " " .. doi(frame, DOI, DoiBroken) else DOI = "" end | |||
if ( BIBCODE ~= nil | if ( ID ~= nil ) then ID = " " .. ID else ID = "" end | ||
if ( ISBN ~= nil ) then ISBN = " " .. internallinkid(frame, {label="ISBN",link="International Standard Book Number",prefix="Special:BookSources/",id=ISBN}) else ISBN = "" end | |||
if ( DOI ~= nil | 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 ~= 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 ( ID ~= nil | if ( JSTOR ~= nil ) then JSTOR = " " .. externallinkid(frame, {label="JSTOR",link="JSTOR",prefix="http://www.jstor.org/stable/",id=JSTOR}) else JSTOR = "" end | ||
if ( ISBN ~= nil | 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 ~= nil ) then MR = " " .. externallinkid(frame, {label="MR",link="Mathematical Reviews",prefix="http://www.ams.org/mathscinet-getitem?mr=",id=MR}) else MR = "" end | |||
if ( ISSN ~= nil | if ( OCLC ~= nil ) then OCLC = " " .. externallinkid(frame, {label="OCLC",link="OCLC",prefix="//www.worldcat.org/oclc/",id=OCLC}) else OCLC = "" end | ||
if ( JFM ~= nil | |||
if ( JSTOR | |||
if ( LCCN | |||
if ( MR | |||
if ( OCLC | |||
if ( OL ~= nil ) then OL = " " .. openlibrary(frame, OL) else OL = "" end | if ( OL ~= nil ) then OL = " " .. openlibrary(frame, OL) else OL = "" end | ||
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 ( 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 | ||
Line 1,034: | 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 |