Teamplaid:Speciesbox/trim
Coltas
This template is currently protected from editing. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected. |
This page is not a sandbox. It should not be used for test editing. To experiment, please use the Wikipedia sandbox, your user sandbox, or the other sandboxes. |
Uses Lua: |
Ùsaid - Usage
This template is designed to be used only from {{Speciesbox}} and its subtemplates to extract the 'bare' genus name from a longer string. It behaves like {{Str letter/trim}}, but treats hyphen as a letter (the International Code of Nomenclature for algae, fungi, and plants allows hyphens in genus names) and handles the "×" at the start of nothogenus names.
Eisimpleirean - Examples
- {{Speciesbox/trim|Bellis}} → Bellis
- {{Speciesbox/trim|Bellis perennis}} → Bellis
- {{Speciesbox/trim|Pseudo-nitzschia sp.}} → Pseudo-nitzschia
- {{Speciesbox/trim|Alsophila (plant)}} → Alsophila
- {{Speciesbox/trim|Bubo/?}} → Bubo
- {{Speciesbox/trim|× Astrolista bicarinata}} → × Astrolista
- {{Speciesbox/trim|×Astrolista bicarinata}} → ×Astrolista
Nòta - Note
- {{Speciesbox/trim|x Astrolista bicarinata}} → x
- {{Speciesbox/trim|xAstrolista bicarinata}} → xAstrolista
- {{Speciesbox/trim|X Astrolista bicarinata}} → X
- {{Speciesbox/trim|XAstrolista bicarinata}} → XAstrolista
The above documentation is transcluded from Teamplaid:Speciesbox/trim/documentation. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /documentation subpage. Subpages of this template. |