Difference between revisions of "Template:Don't edit this line/sandbox"

From blackwiki
Jump to navigation Jump to search
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 Taxonomy template pages, where {{{machine code}}} is unspecified. It is (now) an error if parameter 1 is given a value.
+
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={{#ifeq:{{padleft:|1|{{{1|}}}}}|{|{{{2|}}}|{{{1|}}}}}|refs={{{refs|}}}|same_as={{{same_as|{{{same as|}}}}}}}}<!--
+
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

Template documentation[view] [edit] [history] [purge]

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.

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:

See also

For templates that are transcluded when |machine code= is given a value, see Template:Don't edit this line/doc/variant.

}}