Template:Infobox device/doc: Difference between revisions
(Update documentation for 'Infobox device'.) |
(Update documentation to cover new 'dni-dictionary' parameter.) |
||
Line 7: | Line 7: | ||
| imagecaption = {{{imagecaption}}} | | imagecaption = {{{imagecaption}}} | ||
| dni-name = {{{dni-name}}} | | dni-name = {{{dni-name}}} | ||
| dni-dictionary = {{{dni-dictionary}}} | |||
| location = {{{location}}} | | location = {{{location}}} | ||
}} | }} | ||
Line 14: | Line 15: | ||
| imagecaption | | imagecaption | ||
| dni-name | | dni-name | ||
| dni-dictionary | |||
| location | | location | ||
}} | }} | ||
Line 49: | Line 51: | ||
"description": "If a device or machine exists in a specific Age or location, provide a link to that location's article using this parameter. If the device is portable (such as the [[KI]]), do not include this parameter.", | "description": "If a device or machine exists in a specific Age or location, provide a link to that location's article using this parameter. If the device is portable (such as the [[KI]]), do not include this parameter.", | ||
"type": "string", | "type": "string", | ||
"suggested": true | |||
}, | |||
"dni-dictionary": { | |||
"label": "D'ni Dictionary Name", | |||
"description": "If the device has a corresponding dictionary entry, provide the name of that entry here. Do not include the <code>Dictionary:</code> namespace, that will be added automatically.", | |||
"suggested": true | "suggested": true | ||
} | } |
Latest revision as of 08:07, 25 July 2024
This template is for articles about devices and machines. It will automatically add Category:Devices to the article.
Usage[edit source]
[[File:{{{image}}}|270px]] {{{imagecaption}}} | |
Name in D'ni | [[Dictionary:{{{dni-dictionary}}}|{{{dni-name}}}]] |
---|---|
Location | {{{location}}} |
{{Infobox device | name | image | imagecaption | dni-name | dni-dictionary | location }}
Parameters[edit source]
This template is for articles about devices and machines. It will automatically add [[:Category:Devices]] to the article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | When this parameter is absent, the infobox will automatically use the article's page title.
| String | optional |
Image | image | Supply a file name with an image of the device or machine. Don't provide the full <nowiki>[[File:…]]</nowiki> tag, just the file name (e.g. "KI.jpg"). | File | suggested |
Caption | imagecaption | You can optionally include a caption that will appear beneath the image. Use this rather than '''name''' to provide additional information or context for the image you include. | String | optional |
D'ni Name | dni-name | If the device has a D'ni name, provide it here in Dnifont format, ''without'' the accompanying <nowiki><dni></dni></nowiki> tags. | String | suggested |
Location | location | If a device or machine exists in a specific Age or location, provide a link to that location's article using this parameter. If the device is portable (such as the [[KI]]), do not include this parameter. | String | suggested |
D'ni Dictionary Name | dni-dictionary | If the device has a corresponding dictionary entry, provide the name of that entry here. Do not include the <code>Dictionary:</code> namespace, that will be added automatically. | Unknown | suggested |