Difference between revisions of "Template:Citation/COinS/doc"

From blackwiki
Jump to navigation Jump to search
imported>Eubulides
(Mention what the output's for.)
imported>WOSlinker
(change source to syntaxhighlight)
 
Line 12: Line 12:
 
which produces the following HTML:
 
which produces the following HTML:
 
<div style="overflow:auto;">
 
<div style="overflow:auto;">
{{#tag:source|{{Citation/COinS |Periodical=PLoS Biol |Title=A broken trust: lessons from the vaccine–autism wars |Surname1=Gross L |Date=2009 |Volume=7 |Issue=5 |At=e1000114 |DOI=10.1371/journal.pbio.1000114 |PMID=19478850 |URL=http://www.plosbiology.org/article/info:doi/10.1371/journal.pbio.1000114 }}|lang=html4strict}}
+
{{#tag:syntaxhighlight|{{Citation/COinS |Periodical=PLoS Biol |Title=A broken trust: lessons from the vaccine–autism wars |Surname1=Gross L |Date=2009 |Volume=7 |Issue=5 |At=e1000114 |DOI=10.1371/journal.pbio.1000114 |PMID=19478850 |URL=http://www.plosbiology.org/article/info:doi/10.1371/journal.pbio.1000114 }}|lang=html4strict}}
 
</div>
 
</div>
 
The output HTML is invisible to an ordinary browser but is useful to other tools.
 
The output HTML is invisible to an ordinary browser but is useful to other tools.

Latest revision as of 07:22, 21 August 2020

This template is a "subroutine" of {{Citation/core}} used for generating COinS metadata. It is designed for {{Citation/core}} and makes assumptions that may not be valid elsewhere.

Example: The following Wiki markup:

  • {{cite journal |author=Gross L |title=A broken trust: lessons from the vaccine–autism wars |journal=PLoS Biol |volume=7 |issue=5 |pages=e1000114 |year=2009 |pmid=19478850 |doi=10.1371/journal.pbio.1000114 |url=http://www.plosbiology.org/article/info:doi/10.1371/journal.pbio.1000114 |pmc=2682483 }}

which generates this output:

  • Gross L (2009). "A broken trust: lessons from the vaccine–autism wars". PLoS Biol. 7 (5): e1000114. doi:10.1371/journal.pbio.1000114. PMC 2682483. PMID 19478850.

might eventually invoke {{Citation/COinS}} as follows:

  • {{Citation/COinS |Periodical=PLoS Biol |Title=A broken trust: lessons from the vaccine–autism wars |Surname1=Gross L |Date=2009 |Volume=7 |Issue=5 |At=e1000114 |DOI=10.1371/journal.pbio.1000114 |PMID=19478850 |URL=http://www.plosbiology.org/article/info:doi/10.1371/journal.pbio.1000114 }}

which produces the following HTML:

<span
 class="Z3988"
 title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=A+broken+trust%3A+lessons+from+the+vaccine%E2%80%93autism+wars&rft.jtitle=PLoS+Biol&rft.aulast=Gross+L&rft.au=Gross+L&rft.date=2009&rft.volume=7&rft.issue=5&rft.pages=e1000114&rft_id=info:doi/10.1371%2Fjournal.pbio.1000114&rft_id=info:pmid/19478850&rft_id=http%3A%2F%2Fwww.plosbiology.org%2Farticle%2Finfo%3Adoi%2F10.1371%2Fjournal.pbio.1000114&rfr_id=info:sid/en.wikipedia.org:Template:Citation/COinS/doc"><span style="display: none;">&nbsp;</span></span>

The output HTML is invisible to an ordinary browser but is useful to other tools.