Template:Infobox device/doc: Difference between revisions
(Created page with "This template is for articles about devices and machines. It will automatically add Category:Devices to the article. == Usage == {{Infobox device | name = {{{name}}} | i...") |
(Update documentation for 'Infobox device'.) |
||
Line 6: | Line 6: | ||
| image = {{{image}}} | | image = {{{image}}} | ||
| imagecaption = {{{imagecaption}}} | | imagecaption = {{{imagecaption}}} | ||
| dni-name = {{{dni-name}}} | |||
| location = {{{location}}} | | location = {{{location}}} | ||
}} | }} | ||
Line 12: | Line 13: | ||
| image | | image | ||
| imagecaption | | imagecaption | ||
| dni-name | |||
| location | | location | ||
}} | }} | ||
Line 17: | Line 19: | ||
== Parameters == | == Parameters == | ||
<templatedata> | |||
When this parameter is absent, the infobox will automatically use the article's page title. | { | ||
"params": { | |||
"name": { | |||
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"). | "label": "Name", | ||
"description": "When this parameter is absent, the infobox will automatically use the article's page title.", | |||
"type": "string", | |||
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. | "autovalue": "{{PAGETITLE}}" | ||
}, | |||
''' | "image": { | ||
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. | "label": "Image", | ||
"description": "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\").", | |||
"type": "wiki-file-name", | |||
"suggested": true | |||
}, | |||
"imagecaption": { | |||
"label": "Caption", | |||
"description": "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.", | |||
"type": "string" | |||
}, | |||
"dni-name": { | |||
"label": "D'ni Name", | |||
"description": "If the device has a D'ni name, provide it here in Dnifont format, ''without'' the accompanying <nowiki><dni></dni></nowiki> tags.", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"location": { | |||
"label": "Location", | |||
"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", | |||
"suggested": true | |||
} | |||
}, | |||
"description": "This template is for articles about devices and machines. It will automatically add [[:Category:Devices]] to the article." | |||
} | |||
</templatedata> | |||
<includeonly>[[Category:Infobox templates]]</includeonly> | <includeonly>[[Category:Infobox templates]]</includeonly> |
Revision as of 07:54, 25 July 2024
This template is for articles about devices and machines. It will automatically add Category:Devices to the article.
Usage
[[File:{{{image}}}|270px]] {{{imagecaption}}} | |
Name in D'ni | {{{dni-name}}} |
---|---|
Location | {{{location}}} |
{{Infobox device | name | image | imagecaption | dni-name | location }}
Parameters
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 |