Difference between revisions of "Template:Make cite iucn/doc"
imported>Trappist the monk m (→Limitation: ce;) |
imported>Pppery (Module renamed) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | {{lua|Module: | + | {{lua|Module:Cite iucn}} |
{{Subst only|auto=yes}} | {{Subst only|auto=yes}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
Revision as of 01:18, 21 June 2020
| 40px | This is a documentation subpage for Template:Make cite iucn. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
| 40x40px | 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
To use this template
- at an IUCN Red List species page, highlight and copy the example citation
- at the en.wiki article write:
{{subst:make cite iucn|}}
- paste the IUCN example citation into the above between
|and}} - click Show preview to show the
{{cite iucn}}template as a raw template - click Publish changes; the raw template shown in Show preview becomes active
Example
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. http://dx.doi.org/10.2305/IUCN.UK.2013-1.RLTS.T19708408A19708411.en. Downloaded on 27 December 2019.
writing the template:
{{subst:make cite iucn|Farjon, A. 2013. Cupressus arizonica var. glabra. The IUCN Red List of Threatened Species 2013: e.T19708408A19708411. http://dx.doi.org/10.2305/IUCN.UK.2013-1.RLTS.T19708408A19708411.en. Downloaded on 27 December 2019.}}
shows this in Preview mode:
- {{cite iucn |author=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}}
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.
Limitation
Substing does not work within <ref>...</ref> tags; see Script error: No such module "Section link"..
One, sort of awkward, way around 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 copy and paste into the target article. The x parameter shows the italic markup in |title=.