ଛାଞ୍ଚ:Speciesbox/trim/doc
< ଛାଞ୍ଚ:Speciesbox | trim
This is a documentation subpage for ଛାଞ୍ଚ:Speciesbox/trim. It may contain usage information, categories and other content that is not part of the original ଛାଞ୍ଚ page. |
This template uses Lua: |
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.
{{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