Difference between revisions of "Template:Don't edit this line/sandbox"
imported>Peter coxhead (deal with missing "|{{{1}}}") |
imported>Peter coxhead (sync'ed with live) |
||
Line 1: | Line 1: | ||
<noinclude><!-- | <noinclude><!-- | ||
− | This template should only be called by | + | This template should only be called by taxonomy template pages, where {{{machine code}}} is unspecified. |
− | --></noinclude><includeonly>{{#invoke:Autotaxobox|callTaxonomyKey|parent={{{parent|}}}|rank={{{rank|}}}|extinct={{{extinct|}}}|always_display={{{always_display|{{{always display|}}}}}}|link_target={{{link|}}}|link_text= | + | Note that "link=A|B" in the taxonomy template is decomposed into "link_target=A" and "link_text=B", as B will |
− | -->{{#ifeq:{{NAMESPACE}}|Template|{{#if:{{Str endswith|{{PAGENAME}}|/?}}|[[Category:Taxonomy templates with query|{{#titleparts:{{PAGENAME}}||2}}]]|[[Category:Taxonomy templates|{{#titleparts:{{PAGENAME}}||2}}]]}}}}</includeonly><noinclude>{{documentation}}</noinclude> | + | be the only unnamed parameter. |
+ | --></noinclude><includeonly>{{#invoke:Autotaxobox|callTaxonomyKey|taxon={{#titleparts:{{PAGENAME}}||2}}|parent={{{parent|}}}|rank={{{rank|}}}|extinct={{{extinct|}}}|always_display={{{always_display|{{{always display|}}}}}}|link_target={{{link|}}}|link_text={{{1|}}}|refs={{{refs|}}}|same_as={{{same_as|{{{same as|}}}}}}}}<!-- | ||
+ | -->{{#ifeq:{{NAMESPACE}}|Template | ||
+ | |{{#ifeq:{{lcfirst:{{{rank|}}}}}|species | ||
+ | |[[Category:Taxonomy templates for species|{{#titleparts:{{PAGENAME}}||2}}]] | ||
+ | |{{#if:{{Str endswith|{{PAGENAME}}|/?}} | ||
+ | |[[Category:Taxonomy templates with query|{{#titleparts:{{PAGENAME}}||2}}]] | ||
+ | |{{#if:{{#titleparts:{{PAGENAME}}||3}} | ||
+ | |[[Category:Taxonomy templates with qualified names|{{#titleparts:{{PAGENAME}}||2}}]] | ||
+ | |[[Category:Taxonomy templates|{{#titleparts:{{PAGENAME}}||2}}]] | ||
+ | }} | ||
+ | }} | ||
+ | }} | ||
+ | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 17:47, 11 February 2019
![]() | This is the template sandbox page for Template:Don't edit this line (diff). |
For templates with names of the form "Don't edit this line xxx" or "Get xxx", see Template:Don't edit this line/doc/variant.
![]() | This template is used on approximately NAN pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
Usage
This template is transcluded from every taxonomy template page (i.e. every page whose name is of the form "Template:Taxonomy/taxon") when |machine code=
is not specified. This should only happen when viewing a taxonomy template page. It uses function callTaxonomyKey
in Module:Autotaxobox to prepare for and then use {{Taxonomy key}} to display the taxonomy template page in a more readable form.
As an example, see Template:Taxonomy/Felis – the display is created by {{Don't edit this line |rank=genus |link=Felis |parent=Felinae}}
given that |machine code=
is not given a value.
The template places a taxonomy template in one of the following tracking categories:
- Category:Taxonomy templates – all 'normal' taxonomy templates
- Category:Taxonomy templates for species – subcategory
- Category:Taxonomy templates with qualified names – subcategory
- Category:Taxonomy templates with query – subcategory
See also
For templates that are transcluded when |machine code=
is given a value, see Template:Don't edit this line/doc/variant.
}}
The above documentation is transcluded from Template:Don't edit this line/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |