Template:Infobox Scheduled Language of India
This template uses Lua: |
Syntax[edit]
{{Infobox Scheduled Language of India
| SLI = <!-- name as inscribed on the Eighth Schedule List: use with the STAND-ALONE version of this template -->
| Official_name = <!-- name as inscribed on the Eighth Schedule List: use ONLY with the embedded version of this template, if it doesn't matches the name of the template it is in: see [[Meitei language]] for an example-->
| image = <!-- optional -->
| image_size = <!-- optional -->
| caption = <!-- optional -->
| Part_of = <!-- optional: when the article subject is part of a SLI listing, not a full one, e.g. Meitei language -->
| Includes = <!-- optional: when a group of subjects together form this SLI; avoid long listings, in which case it is better to summarize or to omit the parameter altogether-->
| Location = <!-- optional -->
| ID =
| Coordinates = <!-- optional; use {{coord}} -->
| Year =
| Extension = <!-- optional -->
| Website = <!-- optional -->
| locmapin = <!-- optional -->
| map_caption = <!-- optional -->
| map_width = <!-- optional -->
| relief = <!-- "1" for relief map - if available -->
| child = <!-- optional; set to "yes" to embed this infobox within another infobox -->
| embedded = <!-- optional; use to embed another infobox template within this one, e.g. {{Location map many}} -->
}}
Pre-loading Wikidata values[edit]
The listing below proposes to import Wikidata values (called "claims" at Wikidata) and convert them to static local data, with the subst: technique.
Pre-loading Wikidata values in this fashion would often be unsuccessful due to failing Wikidata claims for the item: it is up to the editor importing the claims to check whether the claim is correct and appropriate for the infobox.
several values need to be reformatted after loading with this method, see comments starting with three !!! in the list below |
The preload-list can be used for a first implementation of this template in an article. Separate parameter substitutions can be used to complement incomplete parameter sets in a previously implemented infobox.
This list is incomplete; you can help by adding missing items. |
{{Infobox Scheduled Language of India
| child =
| SLI = {{subst:Wikidata|qualifier|P1435|P1448}}<!-- leave empty, unless for stand-alone infoboxes that need a title different from the article title -->
| image = {{subst:Wikidata|property|P18}}<!-- !!! remove "[[File:" and "]]" wrapping the image name or it is impossible to manage the image size -->
| image_upright = 1.2
| caption = {{subst:Wikidata|qualifier|P18|P2096}}
| official_name = {{subst:Wikidata|qualifier|P1435|P1448}}<!-- leave empty unless the official WHS name is different from the title of the infobox -->
| location = {{subst:Wikidata|properties|linked|P706}}, {{subst:Wikidata|properties|linked|P276}}, {{subst:Wikidata|properties|linked|P131}}, {{subst:Wikidata|property|linked|P17}}, {{subst:Wikidata|property|linked|P30}}<!-- make selection: P17 (country) and possibly P131 (administrative subdivision of country) suffice in most cases -->
| part_of = {{subst:Wikidata|properties|linked|P361}}
| includes = {{subst:Wikidata|properties|linked|P527}}<!--replace by summary if the list of sub-entities is too large or incomplete-->
| ID = {{subst:Wikidata|property|P757}}
| coordinates = {{subst:Wikidata|property|linked|P625}}<!-- !!! convert to {{coord|...|...|format=dms}} -->
| year = {{subst:Wikidata|qualifier|P1435|P580}}
| extension = {{subst:Wikidata|qualifiers|P793|P585}}
| danger = {{#if: {{subst:Wikidata|qualifiers|P793|P580}}|{{subst:Wikidata|qualifiers|P793|P580}} -|}}{{#if: {{subst:Wikidata|qualifiers|P793|P582}}|- {{subst:Wikidata|qualifiers|P793|P582}}|}}
| area = {{subst:Wikidata|property|P2046}}<!-- {{convert|...|ha|acre|abbr=on}} or similar with other units recommended -->{{subst:wikidata|reference|P2046}}
| buffer_zone =
| website = {{URL|{{subst:Wikidata|property|P856}}}}
| embedded =
| locmapin = {{subst:Wikidata|property|P17}}
| map_caption =
}}
Notes[edit]
- If the scheduled language has multiple locations across a country or continent, use the embedded template {{Location map many}} as in example 4.
- If the template is not used as an embedded template, always use the "SLI" parameter. If the template is embedded, and the official name at the Eighth Schedule doesn't match the name of the template it is used in, use "Official_name". See Meitei language for an example of the second use.
- "Type" is kept as a parameter for backwards compatibility only, and should preferably not be used.
Coordinates[edit]
For coordinates, use {{coord}} with display=inline,title. Please do not be overly precise.
Examples[edit]
- Example 1
Languages recognised by the Constitution of India | |
---|---|
Location | Manipur, Assam & Tripura |
Reference | amendments/constitution-india-seventy-first-amendment-act-1992 |
This example has no image:
{{Infobox Scheduled Language of India
| SLI = Meitei
| Location = [[Manipur]], [[Assam]] & [[Tripura]]
| ID = amendments/constitution-india-seventy-first-amendment-act-1992
| Year = 1992
}}
- Example 2
Languages recognised by the Constitution of India | |
---|---|
Location | Sikkim |
This example uses an image of width 270px, and the alt and caption parameters:
{{Infobox Scheduled Language of India
| WHS = Nepali
| image =
| image_size = 270px
| alt =
| caption =
| Location = [[Sikkim]]
| ID =
| Year = 1992
}}
Microformat[edit]
The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates[edit]
If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.
If it has a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes[edit]
hCard uses HTML classes including:
- adr
- agent
- category
- county-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- region
- street-address
- uid
- url
- vcard
Geo is produced by calling {{coord}}, and uses HTML classes:
- geo
- latitude
- longitude
Please do not rename or remove these classes nor collapse nested elements which use them.
Precision[edit]
When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter.
An Infobox for Scheduled Language of India
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | SLI Name | name as inscribed on the Eighth Schedule List | String | required |
Image | image Image | An image of the site | String | optional |
Caption | caption Caption imagecaption | The image caption | String | optional |
Location | Location | Location of the site | String | optional |
ID | ID | The reference number | Number | required |
Link | Link | A link, only used if no ID | String | optional |
Coordinates | Coordinates coordinates | Use the {{coord}} template with display=inline, do not be overly precise. | String | optional |
Year | Year | Year site was listed | String | optional |
Session | Session | Session site was inscribed: 1st – 40th | String | optional |
Extension | Extension | Extension | String | optional |
Location map | locmapin | Name of Location map to use, typically a country name | String | optional |
Map caption | map_caption | Caption to use with the map | String | optional |
Map width | map_width | Width of displayed the map | Number | optional |
Relief | relief | Use '1' for relief map - if available | Number | optional |
Child | child | set to 'yes' to embed this infobox within another infobox | String | optional |
Embedded | embedded | Use to embed another infobox template within this one, e.g. {{Infobox mountain}} | String | optional |