Jump to content

Module:Tree chart/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Usage: Rename
Errors: Nobody cares about bugs that used to exist years ago
Line 3: Line 3:


This module uses the mw.html library to create rows of table cells whose borders draw lines to show relationships between elements. When an unnamed parameter matches a key in [[Module:Tree chart/data]], the module will create a block with stylings as defined in the table. Each key in the table has a subtable with 0, 1, or 2 keys of its own: <code>t</code> for the "top" row and <code>b</code> for the "bottom row". Any unnamed parameter whose value does not exist in the table will be used to create elements on the chart, and additional named parameters for that value will be looked for.
This module uses the mw.html library to create rows of table cells whose borders draw lines to show relationships between elements. When an unnamed parameter matches a key in [[Module:Tree chart/data]], the module will create a block with stylings as defined in the table. Each key in the table has a subtable with 0, 1, or 2 keys of its own: <code>t</code> for the "top" row and <code>b</code> for the "bottom row". Any unnamed parameter whose value does not exist in the table will be used to create elements on the chart, and additional named parameters for that value will be looked for.

==Errors==
With the migration to Lua, the following errors were removed:
* "{{red|Template:Chart/cellb}}" - caused by any instance of {{!xt|1=<nowiki>|}}</nowiki>}} being used instead of {{xt|1=<nowiki>| }}</nowiki>}}.
* "{{red|Template:Chart/celltTemplate:Chart/cellb}}" - caused by any instance of {{!xt|1=<nowiki>||</nowiki>}} being used instead of {{xt|1=<nowiki>| |</nowiki>}}, or {{!xt|1=<nowiki>|}}</nowiki>}} being used instead of {{xt|1=<nowiki>| }}</nowiki>}}.
* "{{red|Template:Chart/celly tTemplate:Chart/celly b}}" - caused by any instance of {{!xt|1=<nowiki>|y |</nowiki>}} being used instead of {{xt|1=<nowiki>|y|</nowiki>}}.


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 15:36, 14 March 2020

Usage

Implements Template:Tree chart; Full documentation on chart syntax exists at Template:Tree chart/doc

This module uses the mw.html library to create rows of table cells whose borders draw lines to show relationships between elements. When an unnamed parameter matches a key in Module:Tree chart/data, the module will create a block with stylings as defined in the table. Each key in the table has a subtable with 0, 1, or 2 keys of its own: t for the "top" row and b for the "bottom row". Any unnamed parameter whose value does not exist in the table will be used to create elements on the chart, and additional named parameters for that value will be looked for.