Template:FileContentsByBot/doc
Used by Bots evaluating the file contents and adding these information to file description pages. This template creates human readable markup, allows adjustments later and exposes the information in a machine-readable form.
Usage
{{FileContentsByBot
|botName =
|Fields =
}}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
botName | The bot's name. Used for some verbose output. | a bot | optional | |
Fields | Any number of table rows consisting of one of the following templates:
| empty | optional | |
helpLocation | The location of the documents describing how the information was obtained. The subpages are fixed. | User:DrTrigonBot | optional | |
additionalInfoStyle | The style to be applied to the "there are additional information available". | empty | optional | |
demoStyle | Style to be applied to the whole table. | display:none | optional |
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: Bots
Placement:
Below {{Information}} and related templates.
Relies on:
- MediaWiki:FileContentsByBot.js, which is invoked when the user clicks on the "View them!" link/button. This script will read the face and eye positions, create image notes from them and show the template.
See also
- FileContentsByBot
- FileContentsByBot/ColorAverage
- FileContentsByBot/ColorAverage/doc
- FileContentsByBot/ColorRegions
- FileContentsByBot/ColorRegions/doc
- FileContentsByBot/Faces
- FileContentsByBot/Faces/doc
- FileContentsByBot/History
- FileContentsByBot/Metadata
- FileContentsByBot/Metadata/doc
- FileContentsByBot/OpticalCodes
- FileContentsByBot/People
- FileContentsByBot/Properties
- FileContentsByBot/Properties/doc
- FileContentsByBot/Streams
- FileContentsByBot/Text
- FileContentsByBot/areas
- FileContentsByBot/areas/doc
- FileContentsByBot/definition
- FileContentsByBot/definition/doc
- FileContentsByBot/doc
- FileContentsByBot/generic
- FileContentsByBot/generic/doc
- FileContentsByBot/legendStyle
Localization
This template is localized by utilizing custom MediaWiki namespace messages.
Not implemented yet.
Example of custom styling: To your Special:MyPage/common.css, add the following (you can also just select some of the rules)
/* Show the template left by the bot by default */
#FileContentsByBot {
display:table !important;
}
/* Hide the message "A bot has evaluated ..." */
#FileContentsByBot-Advertiser{
display:none !important;
}
/* Hide the average color table row */
#FileContentsByBot-ColorAverage{
display:none !important;
}
The IDs and classes are listed above, in the parameter documentation.
How to create new specialized templates
Look at the examples already existing in Template:FileContentsByBot/doc#See also (with exception of Template:FileContentsByBot/generic of course).