Difference between revisions of "Module:Taxonbar/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Ahecht
(→‎Usage: add link to conf)
m (86 revisions imported)
 
(49 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
{{For|the stable version of Taxonbar|Template:Taxonbar}}{{Module rating |pre-alpha}}{{Uses Wikidata|section=[[Template:Taxonbar#Wikidata_taxon_identifiers|Wikidata taxon identifiers]]}}
+
{{t links|Taxonbar}}
 +
{{High-use|394398}}
 +
{{Module rating|protected}}
 +
{{Main|Template:Taxonbar}}
 +
{{Uses Wikidata|section=Taxon identifiers}}
 +
{{Lua|Module:Taxonbar/conf|Module:TaxonItalics|Module:ResolveEntityId|Module:Navbox|Module:No globals}}
 +
{{Lua sidebar}}
 +
{{TOC right}}
  
== Usage ==
+
This module contains the code of {{T|Taxonbar}}. To use Taxonbar, follow instructions at [[Template:Taxonbar/doc]].
'''At this time we request this module/template not be implemented on taxon pages''' until links are cleaned up and the module fulfills the needs of the community. Parameters will be added with time in [[:Module:Taxonbar/conf]]. The goal is to eventually update and implement this Lua code to replace the existing {{T|Taxonbar}} template.
 
  
For testcases use: <code><nowiki>{{</nowiki>Taxonbar/sandbox2 | from=QID}}</code> View testcases at [[Template:Taxonbar/testcases2]]
+
==Configuration==
 +
Parameters and databases are set by [[:Module:Taxonbar/conf]].
  
=== Taxon Example: ===
+
==Taxon identifiers==
[[File:Scarlet Macaw RWD3.jpg|thumb|left|'''[[Scarlet macaw|Scarlet macaw (''Ara macao'')]]''']]{{clear|left}}
+
{{See|Template:Taxonbar/doc#Taxon identifiers}}
<code><nowiki>{{</nowiki>Taxonbar/sandbox2 | from=[[:d:Q243761|Q243761]]}}</code>{{clear|left}}
 
'''Result:'''
 
{{Taxonbar/sandbox2 | from=Q243761}}
 
  
 
==Testcases==
 
==Testcases==
{{Seealso|Template:Taxonbar/testcases2}}
+
{{See also|Template:Taxonbar/testcases|Module:Taxonbar/sandbox}}
 +
For testcases use: <code><nowiki>{{</nowiki>Taxonbar | from=QID}}</code>
 +
 
 
{{Purge page}}{{clear|left}}
 
{{Purge page}}{{clear|left}}
 
'''''[[Rhododendron maximum]]'''''
 
'''''[[Rhododendron maximum]]'''''
{{Taxonbar/sandbox2|from=Q7061732}}
+
{{Taxonbar|from=Q7061732}}
 
'''''[[Asclepias syriaca]]'''''
 
'''''[[Asclepias syriaca]]'''''
{{Taxonbar/sandbox2|from=Q158295}}
+
{{Taxonbar|from=Q158295}}
 
'''[[Peach]] (''Prunus persica'')'''
 
'''[[Peach]] (''Prunus persica'')'''
{{Taxonbar/sandbox2|from=Q13189}}
+
{{Taxonbar|from=Q13189}}
'''[[Puma_(genus)]]'''
+
'''[[Puma (genus)]]'''
{{Taxonbar/sandbox2||from=Q270748}}
+
{{Taxonbar||from=Q270748}}
 
'''[[Dog]] (''Canis lupus familiaris'')'''
 
'''[[Dog]] (''Canis lupus familiaris'')'''
{{Taxonbar/sandbox2|from=Q26972265}}
+
{{Taxonbar|from=Q26972265}}
 
'''[[Eastern bluebird]] (''Sialia sialis'')'''
 
'''[[Eastern bluebird]] (''Sialia sialis'')'''
{{Taxonbar/sandbox2|from=Q600880}}
+
{{Taxonbar|from=Q600880}}
 
'''[[Honey bee]] (''Apis'')'''
 
'''[[Honey bee]] (''Apis'')'''
{{Taxonbar/sandbox2|from=Q102857}}
+
{{Taxonbar|from=Q102857}}
 
'''[[Western honey bee]] (''Apis mellifera'')'''
 
'''[[Western honey bee]] (''Apis mellifera'')'''
{{Taxonbar/sandbox2|from=Q30034}}
+
{{Taxonbar|from=Q30034}}
 
'''Clipper butterfly (''[[Parthenos sylvia]]'')'''
 
'''Clipper butterfly (''[[Parthenos sylvia]]'')'''
{{Taxonbar/sandbox2|from=Q1955014}}
+
{{Taxonbar|from=Q1955014}}
 
'''Turkey tail (''[[Trametes versicolor]]'')'''
 
'''Turkey tail (''[[Trametes versicolor]]'')'''
{{Taxonbar/sandbox2|from=Q753833}}
+
{{Taxonbar|from=Q753833}}
'''Button/portobello mushroom ([[Agaricus_bisporus|''Agaricus bisporus'']])'''
+
'''Button/portobello mushroom ([[Agaricus bisporus|''Agaricus bisporus'']])'''
{{Taxonbar/sandbox2|from=Q227690}}
+
{{Taxonbar|from=Q227690}}
  
 
==Module editing — to-do list==
 
==Module editing — to-do list==
* Improve documentation
+
{{See|Template:Taxonbar/doc#Module editing — to-do list}}
* Add parameters to remove individual identifiers from taxonbar. This could help the box from becoming two lines when one line is desired.
 
* Pull the formatter URLs from Wikidata.
 
* Add ability to add identifiers not listed on Wikidata.
 
* Add support for <code>from=</code> to show taxonbox as an example on pages without data, such as template documentation and userpages.
 
* <s>Hide taxonbar if empty.</s>
 
* Add support for parameters currently supported by {{T|Taxonbar}}.
 
** See {{Tl|Taxonbar/testcases}}.
 
*** Add support for entering missing data with listed parameters above. Add documentation.
 
*** Add support for <code>wcsp=</code> Add documentation.
 
*** Add support for <code>namebank=</code> aka uBio Add documentation?
 
*** Add support for <code>emonocot=</code> Add documentation.
 
*** Add support for <code>others=</code>?
 
*** Disable certain non research-grade databases by default? EOL?
 
*** Add support for grin and <code>grinurl=</code> Add documentation that a URL must be entered for GRIN rather than ID.
 
* Change "Taxon identifiers" link to the Wikidata entry link? - This may need community consensus. The Wikidata link is useful because it will show identifiers that were not shown in Taxonbar.
 
* Add tracking for entries not on Wikidata. Suggest differences be resolved.
 
  
 
==See also==
 
==See also==
*{{T|Taxonbar}} the original template.
+
* [[Module:Taxonbar/conf]] &ndash; the configuration module to add/remove/edit sources
* [[:Template_talk:Taxonbar]], Taxonbar discussion.
+
* {{tl|Taxonbar/exists}} &ndash; tests for {{tl|Taxonbar}} existence
* [[:Module:Authority_control]].
+
* {{tl|Taxonbar/candidate}} &ndash; categorize highly-likely and potentially-likely {{tl|Taxonbar}} candidates
* [[:gl:Módulo:Taxonbar]], original code source for this template.
+
* [[Module:Authority control]] &ndash; a {{tl|Taxonbar}}-like module for unique subjects
 +
* [[:gl:Módulo:Taxonbar]] &ndash; original code source for this module
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Latest revision as of 16:56, 29 September 2020

Taxonbar (edit talk history links # /subpages /doc /doc edit /sbox /sbox diff /test)

Template:Uses Wikidata

This module contains the code of Template:T. To use Taxonbar, follow instructions at Template:Taxonbar/doc.

Configuration

Parameters and databases are set by Module:Taxonbar/conf.

Taxon identifiers

Testcases

For testcases use: {{Taxonbar | from=QID}}

Purge server cache

Rhododendron maximum Template:Taxonbar Asclepias syriaca Template:Taxonbar Peach (Prunus persica) Template:Taxonbar Puma (genus) Template:Taxonbar Dog (Canis lupus familiaris) Template:Taxonbar Eastern bluebird (Sialia sialis) Template:Taxonbar Honey bee (Apis) Template:Taxonbar Western honey bee (Apis mellifera) Template:Taxonbar Clipper butterfly (Parthenos sylvia) Template:Taxonbar Turkey tail (Trametes versicolor) Template:Taxonbar Button/portobello mushroom (Agaricus bisporus) Template:Taxonbar

Module editing — to-do list

See also