Module:eFloras/doc
Appearance
This is a documentation subpage for Module:EFloras. It may contain usage information, categories and other content that is not part of the original module page. |
This Lua module is used on approximately 1,400 pages and changes may be widely noticed. Test changes in the module's /sandbox or /testcases subpages, or in your own module sandbox. Consider discussing changes on the talk page before implementing them. |
Usage
[edit]This module performs tasks for Template:eFloras. The first task is taking the flora_id
and the name of the family (or tribe of Asteraceae) and converting them to the corresponding volume numbers for the Floras of North America, China, and Chile. The second is taking the flora_id
from the URL and returning the corresponding flora or list name. The data used for these two tasks is in Module:eFloras/data. The third is detecting what type of scientific name is in the third parameter of the template, and applying the correct italicization. For this purpose, the module strips initial and final whitespace, and any italicization or bolding.
{{#invoke:EFloras|volume|1|family=Rosaceae}} or {{#invoke:EFloras|volume|1|Rosaceae}} {{#invoke:EFloras|resource|1}} {{#invoke:eFloras|volumeDate|1||Rosaceae}} {{#invoke:eFloras|volumeDate|1|9|}} {{#invoke:eFloras|volumeName|1||Rosaceae}} {{#invoke:eFloras|volumeName|1|9|}}
- 9
- Flora of North America North of Mexico (FNA)
- 2014
- 2014
- Magnoliophyta: Picramniaceae to Rosaceae
- Magnoliophyta: Picramniaceae to Rosaceae
{{#invoke:eFloras|name|Asteraceae}}
- Asteraceae
{{#invoke:eFloras|name|Aster}}
- Aster
{{#invoke:eFloras|name|Aster ericoides}}
- Aster ericoides
{{#invoke:eFloras|name|Aster ericoides var. ericoides}}
- Aster ericoides var. ericoides
{{#invoke:eFloras|name|Aster ericoides'' var. ''ericoides}}
- Aster ericoides var. ericoides
{{#invoke:eFloras|name|Acer tataricum subsp. ginnala}}
- Acer tataricum subsp. ginnala