• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.133
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Speciesbox/trim

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
< Template:Speciesbox
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:String

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
The above documentation is transcluded from Template:Speciesbox/trim/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Speciesbox/trim&oldid=31361"
Categories:
  • Templates based on the String Lua module
  • Taxobox templates
Last edited on 11 November 2019, at 11:37

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 11 November 2019, at 11:37.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop