Module:Sandbox/Was a bee/tree/doc explained
Usage
Paste following code at anatomy articles. It automatically shows tree (as far as structural data is stored in Wikidata with the source, TA98)
<nowiki>{{</nowiki>[[User:Was a bee/TreeBox]]}}
Plans
As far as I think in long-term perspective, technical part (rendering graphical tree based on data in Wikidata) would be implemented someday by Mediawiki extension or something in more stylish manner by experienced coder. Just like . So I feel other part would be more important.
- : Rendering parent-side tree (upstream toward human body)
- Need to process multiple-parents cases (bifurcated parent tree)
- : Rendering brother tree. Parent (upper) and child (lower) concepts are important. But at the same time, brother concepts (same level concepts) are also important for understanding the topic.
- : Formatting TA98 ref. I think at least it would be needed to provide external link to the entry (like this http://www.unifr.ch/ifaa/Public/EntryPage/TA98%20Tree/Entity%20TA98%20EN/14.1.09.110%20Entity%20TA98%20EN.htm) using TA98_ID
- Is it possible to make tree references more compact? Because tree references would be needed, but actually not so interesting.
- Treat species general and human specific articles. Fro example, "Human brain" and "Brain", "Human head" and "Head".
- (Re)arrange some input options, especially source and appearance related options.
- Populating Wikidata pages with "part_of " and "has_part " relations (see Ontology_components#Relationships). Currently TA98 ID is registered in about 3.3k Wikidata pages (Property_talk:P1323).
Related pages
- - Lua code which generates following trees
- - wrapper template
- - Lua help
- - Lua help for Wikidata
- Tree technologies from discussion at (perm link)
Technical background
Visual appearance
Tree-like visual appearance is created by the "treeview" style described in . This module outputs code which contains HTML elements "ul" (unordered list) and "li" (list). And the style sheet converts them into tree view.
Algorithm
Sourcing
- Currently permitted sourceStatement which has following item in "stated in" section is shown in tree. Other data is not shown in tree in default.
- Other possible candidates
Problems
- Incompatibilities between different sources
Different sources categorize things different ways. But this module can show only one tree. So some kind of troubleshooting is needed. Actually tree structures are almost similar and the differences between them are subtle. But it exist certainly.Usage
Tree based only on data which is sourced by TA98
- Starting from
- Tracking through for downward 10 depth
- Tracking through for upward 5 depth
- Only showing data which is sourced by (excluding other data)
<nowiki>{{User:Was a bee/Tree|items=Q47273|childProperty=P527|childDepth=10|parentProperty=P361|parentDepth=5|sources=TA98}}</nowiki>
Tree based on data including unreferenced data
- Starting from
- Tracking through for downward 10 depth
- Tracking through for upward 5 depth
- Showing all data (including unreferenced data)
<nowiki>{{User:Was a bee/Tree|items=Q47273|childProperty=P527|childDepth=10|parentProperty=P361|parentDepth=5||sources=}}</nowiki>