Template:Make cite IUCN/doc
This is a documentation subpage for Template:Make cite IUCN. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template should always be substituted (i.e., use {{subst:Make cite IUCN}} ). Any accidental transclusions will be automatically substituted by a bot. |
This template is an editor's aid. On each species page of the IUCN Red List of Threatened Species, IUCN provides an example citation. This template takes that example citation as a single parameter value and returns a {{cite IUCN}}
template.
Usage
[edit]To use this template
- at an IUCN Red List species page, highlight and copy the example citation
- at the en.wiki article write:
{{make cite IUCN|}}
- paste the IUCN example citation into the above between
|
and}}
- click Publish changes; the raw template shown in Show preview becomes active
Usually within an hour, AnomieBOT will substitute the {{make cite IUCN}}
with the matching {{cite IUCN}}
template.
Example
[edit]At IUCN, the page for Smooth Arizona Cypress has this example citation:
- Farjon, A. 2013. Cupressus arizonica var. glabra. The IUCN Red List of Threatened Species 2013: e.T19708408A19708411. https://dx.doi.org/10.2305/IUCN.UK.2013-1.RLTS.T19708408A19708411.en. Downloaded on 27 December 2019.
writing the template:
{{make cite IUCN|Farjon, A. 2013. Cupressus arizonica var. glabra. The IUCN Red List of Threatened Species 2013: e.T19708408A19708411. https://dx.doi.org/10.2305/IUCN.UK.2013-1.RLTS.T19708408A19708411.en. Downloaded on 27 December 2019.}}
shows this in Preview mode:
- Farjon, A. (2013). "Cupressus arizonica var. glabra". IUCN Red List of Threatened Species. 2013: e.T19708408A19708411. doi:10.2305/IUCN.UK.2013-1.RLTS.T19708408A19708411.en. Retrieved 27 December 2019.
when substed gives this:
{{cite IUCN |author1=Farjon, A. |year=2013 |title=''Cupressus arizonica'' var. ''glabra'' |volume=2013 |page=e.T19708408A19708411 |doi=10.2305/IUCN.UK.2013-1.RLTS.T19708408A19708411.en |access-date=27 December 2019}}
- Farjon, A. (2013). "Cupressus arizonica var. glabra". IUCN Red List of Threatened Species. 2013: e.T19708408A19708411. doi:10.2305/IUCN.UK.2013-1.RLTS.T19708408A19708411.en. Retrieved 27 December 2019.
Limitations
[edit]Substing, using the subst:
prefix does not work within <ref>...</ref>
tags; see Help:Substitution § Limitation. That is why this template is auto-subst'd by AnomieBOT which does work within <ref>...</ref>
tags.
Alternatively, use |ref=NAME
to wrap the output with <ref name=NAME>...</ref>
tags. When substituted with the code:
{{subst:make cite IUCN|Goodrich, J., Lynam, A., Miquelle, D., Wibisono, H., Kawanishi, K., Pattanavibool, A., Htun, S., Tempa, T., Karki, J., Jhala, Y. & Karanth, U. 2015. Panthera tigris. The IUCN Red List of Threatened Species 2015: e.T15955A50659951. https://dx.doi.org/10.2305/IUCN.UK.2015-2.RLTS.T15955A50659951.en. Downloaded on 12 August 2020.|ref=iucn}}
the following will be output on the page:
<ref name=iucn>{{cite IUCN |author=Goodrich, J. |author2=Lynam, A. |author3=Miquelle, D. |author4=Wibisono, H. |author5=Kawanishi, K. |author6=Pattanavibool, A. |author7=Htun, S. |author8=Tempa, T. |author9=Karki, J. |author10=Jhala, Y. |author11=Karanth, U. |year=2015 |title=''Panthera tigris'' |volume=2015 |page=e.T15955A50659951 |doi=10.2305/IUCN.UK.2015-2.RLTS.T15955A50659951.en |access-date=12 August 2020}}</ref>
Sometimes it is desirable to modify the output of {{make cite IUCN}}
(wikilinks etc) before saving. One, sort of awkward, way to accomplish that is to open another browser window and open a sandbox. Write the {{make cite IUCN|<IUCN citation text>|x}}
(note the unnamed parameter x
at the end); click Show preview, the template will render a formatted {{cite IUCN}}
template that you can edit and then copy/paste into the target article. The x
parameter shows the italic markup in |title=
.
From this original IUCN citation:
{{make cite IUCN|Goodrich, J., Lynam, A., Miquelle, D., Wibisono, H., Kawanishi, K., Pattanavibool, A., Htun, S., Tempa, T., Karki, J., Jhala, Y. & Karanth, U. 2015. Panthera tigris. The IUCN Red List of Threatened Species 2015: e.T15955A50659951. https://dx.doi.org/10.2305/IUCN.UK.2015-2.RLTS.T15955A50659951.en. Downloaded on 12 August 2020.|x}}
the template returns this {{cite IUCN}}
:
{{cite iucn |author=Goodrich, J. |author2=Lynam, A. |author3=Miquelle, D. |author4=Wibisono, H. |author5=Kawanishi, K. |author6=Pattanavibool, A. |author7=Htun, S. |author8=Tempa, T. |author9=Karki, J. |author10=Jhala, Y. |author11=Karanth, U. |year=2015 |title=''Panthera tigris'' |volume=2015 |page=e.T15955A50659951 |doi=10.2305/IUCN.UK.2015-2.RLTS.T15955A50659951.en |access-date=12 August 2020}}
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
IUCN citation | 1 | The example citation provided on the IUCN webpage for the species, below the abstract. | String | optional |
Format control | 2 | Set to "x" to render a formatted {{cite IUCN}} template for copy/pasting.
| String | optional |