Neidio i'r cynnwys

Modiwl:Tree chart/doc

Oddi ar Wicipedia
Dyma ddiwygiad cyfredol y dudalen Modiwl:Tree chart/doc a ddiwygiwyd gan Xxglennxx (sgwrs | cyfraniadau) am 14:55, 30 Rhagfyr 2024. Mae'r URL yn y Bar Lleoliad uwchben yn ddolen barhaol i'r fersiwn hwn o'r dudalen hon.
(gwahan) ← Fersiwn hŷn | Fersiwn diweddaraf (gwahan) | Fersiwn diweddarach → (gwahan)

This is the documentation page for Modiwl:Tree chart

Usage

[golygu cod]

Implements Template:Chart; Full documentation on chart syntax exists at Template: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:TreeChart/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.

Errors

[golygu cod]

With the migration to Lua, the following errors were removed:

  • "Template:Chart/cellb" - caused by any instance of |}} being used instead of | }}.
  • "Template:Chart/celltTemplate:Chart/cellb" - caused by any instance of || being used instead of | |, or |}} being used instead of | }}.
  • "Template:Chart/celly tTemplate:Chart/celly b" - caused by any instance of |y | being used instead of |y|.