Template:label data documentation

The following documentation is generated by label data documentation.[edit] Each data module defines and exports a table called  containing the data associated with the actual labels. The key is the label while the value is a table containing information on the label. The following is a basic example: labels["Argentina"] = { aliases = {"Argentinian"}, Wikipedia = true, regional_categories = "Argentinian", } This defines a label with an alias, links the label to the Wikipedia article , and causes uses of the label with lb or tlb to categorize into  where  is the language of the label.

The following is a more complex example, for use in Module:labels/data/lang/en: labels["British"] = { region = "Great Britain", addl = "Not to be confused with British spellings, a spelling system used in some English-speaking countries of the world.", aliases = {"Britain", "Great Britain"}, Wikipedia = "British English", regional_categories = true, parent = "Europe,Commonwealth", country = "the United Kingdom", } This defines a label with two aliases  and, all of which display as  and link to the Wikipedia article. Use with lb or tlb categorize into. The fields, , and  control the appearance of the category text for the category.

The following table specifies the basic fields. See the documentation of Module:labels/data for more detailed information.

The following table specifies the fields used to control how the label categorizes when used with lb or tlb.

The following table specifies the fields used to control the appearance of the category page (specified using or ) for labels that specify language varieties.

The following table specifies the remaining fields, used mostly to control how the label displays.

At the end of the data module, the  table should be returned using the following code: return require("Module:labels").finalize_data(labels)