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

From blackwiki
Jump to navigation Jump to search
imported>Peter coxhead
(sync with live)
imported>Peter coxhead
(deal with missing "|{{{1}}}")
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. It is (now) an error if parameter 1 is given a value.
--></noinclude><includeonly>{{#invoke:Autotaxobox|callTaxonomyKey|parent={{{parent|}}}|rank={{{rank|}}}|extinct={{{extinct|}}}|always_display={{{always_display|{{{always display|}}}}}}|link_target={{{link|}}}|link_text={{{2|}}}|refs={{{refs|}}}|same_as={{{same_as|{{{same as|}}}}}}}}<!--
+
--></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|}}}}}}}}<!--
 
-->{{#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>
 
-->{{#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>

Revision as of 12:41, 16 January 2017

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.

}}