Wikidata:WikiProject Roads/roadtable
roadtable is a framework for displaying label, description, and statement progress for road items. Using an extensible system written in Lua, tables created by the roadtable modules provide an at-a-glance, yet comprehensive, view of how complete our items are.
Versions
[edit]There are three versions of the roadtable framework:
- Version 1 tables are made up of a series of
{{Roadtable row}}
placed between{{Roadtable top}}
and{{Roadtable bottom}}
templates. They are visually distinguished by the lack of background colors in the cells and the absence of the summary row at the bottom. - Version 2 tables use a single call to
{{Roadtable body}}
in place of the repeated{{Roadtable row}}
calls. By including every item in a given section within a single module call, version 2 can include a summary row encapsulating the overall progress of the section. In a stylistic change from version 1, each statement-related cell has either a green, red, or gray background color, corresponding to the value within that cell. - Version 3 is the most powerful version. In this version, the entire page is encapsulated in a single call to
{{Roadtable}}
, which generates each section, their headers, and a page summary table at the top. Individual section tables are defined by{{Roadtable/section}}
calls, which have a similar syntax to{{Roadtable body}}
calls, and only include the columns that are actually used. Section types are defined in a Lua module, and headers are automatically translated to the interface language, when possible, based on translations in another Lua module.
Reading the tables
[edit]For this section, refer to the following version 3 tables:
Table 1
[edit]Item | 16 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Interstates | de en nl | ✓ | ✓ | — | — | — | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✓ | ✗ | — |
Summary | de en nl | ✓ | ✓ | — | — | — | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✓ | ✗ | — |
Top | de en nl | ✓ | ✓ | — | — | — | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✓ | ✗ | — |
|
Interstates
Item | 13 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Interstate 8 in Arizona | Item not created | ||||||||||||||
Interstate 10 in Arizona (Q807275) | de en nl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✓ | ✓ | ✓ |
Interstate 11 in Arizona | Item not created | ||||||||||||||
Interstate 15 in Arizona (Q452902) | ast da de en es fr nl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ |
Interstate 17 (Q93561) | de en fr nl zh | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✓ | ✗ |
Interstate 19 (Q93660) | de en fr nl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✓ | ✗ |
Interstate 40 in Arizona (Q807247) | de en nl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✓ | ✗ |
Summary | de en nl | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✓ | ✗ |
|
Table 2
[edit]Item | 16 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
State highways | de en | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Summary | de en | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
High | de en | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
|
State highways
Item | 16 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
State highways | de en | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
Summary | de en | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ | ✗ | ✗ | ✗ |
|
Labels
[edit]For an item, the row header is the label of the item in the current user interface language, or the Q number if there is no label in that language. For a manual row, the contents of the header are determined by the value passed to the template.
Languages
[edit]The second cell contains a list of language codes. These are the languages with both labels and descriptions for that item.
Statements
[edit]The property for a column can be found in the key at the bottom of the table. A check (✓) in a cell means that the item has a statement for that property, while an X (✗) means there is no statement on that item for that property. An em-dash (—) means that the property is not required for that item.