Template:Deptree draw/doc

From Ring of Brodgar
Jump to navigation Jump to search
Description
Draws a gfx-style box showing the dependencies for a particular target.
With the elements in the box being are active page-links
Current main examples of this can be seen on the Skills & Credo pages.
See the Deptree set template for the creation of dependency-tree datasets.


Syntax
{{deptree_draw|<dpt-id-name>|<parent>}}.
Where:
  • dpt-id-name: Mandatory short id name. This is the id-name of the target dependency-tree dataset.
    This name is used as part of the property-names that contain the relevant dataset.
    (always first).
  • parent: The target(parent) for which to get show its dependencies(children).
    (The parent/child terminological is a bit misleading in this case)
    (always second.).


Limitation
Has currently no selectable recursion limit. (Other than the native #ask: recursion limit (?)).


Technical info
This template uses SMW #ask: recursion to get the job done.
Used property names: "dpt_<dpt-id-name>_prt"(parent) & "dpt_<dpt-id-name>_chl"(child).
Uses the shadowbox template to draw the box part.