Changes

Jump to: navigation, search

Template:Taxobox/displayed cell

674 bytes added, 08:23, 16 January 2017
m
Peter coxhead moved page Template:Taxobox/taxonomy cell/display to Template:Taxobox/displayed cell: immediate parent is no longer used, so move up one level and rename
<!-- We are passed the *parent* of the taxon in question, as a string "{{{1}}}".

If the taxon in question doesn't have a taxonomy/ page, {{{1}}} will be "[[:Template:Taxonomy/taxon-in-question]]". (Return X)

Otherwise, it should be an English string (so start with a letter). (Return A)

If we've hit a top level taxon (e.g. "Life"), the string will begin with a non-letter character (e.g. {). (Return 0)

-->{{#ifeq:{{ucfirst:{{{1}}} }}|{{lcfirst:{{{1}}} }}|{{#ifeq:{{padleft:|1|{{{1|}}}}}<!--this'll return the first char of the string-->|[|X|0}}|<!--
If ucfirst != lcfirst, the string must start with a letter. Return A.
-->A}}
<noinclude>{{documentation}}</noinclude>
Anonymous user

Navigation menu