Template:Image classification/doc: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m (Suggestedvalues: hmm, not very useful for picking list items.)
m (Suggestedvalues: Split into separate general expected cases (starting to doubt the overall usefulness on this TemplateData extension :-/ ).)
Line 40: Line 40:
<includeonly>[[Category:Category templates|{{PAGENAME}}]]</includeonly>
<includeonly>[[Category:Category templates|{{PAGENAME}}]]</includeonly>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
----
<templatedata>
<templatedata>
{
{
"description": "",
"description": "Image classification",
"format": "{{_|_= _}}\n",
"format": "{{_|_= _}}\n",
"params": {
"params": {
Line 49: Line 50:
"description": "Classifications",
"description": "Classifications",
"type": "line",
"type": "line",
"suggestedvalues": ["Graph / Inv-Obj / Obj-Img / Obj-Info / Game-Scene, Res-Img","Legacy"]
"suggestedvalues": [
"Graph",
"Inv-Obj",
"Inv-Obj, Res-Img",
"Obj-Img",
"Obj-Img, Res-Img",
"Obj-Info",
"Game-Scene",
"Legacy",
"Unclassified"
]
}
}
}
}
}</templatedata>
}</templatedata>
<includeonly>[[Category:TemplateData templates|{{PAGENAME}}]]</includeonly>
<includeonly>[[Category:TemplateData templates|{{PAGENAME}}]]</includeonly>

Revision as of 18:20, 1 August 2023

Description
This template is used in "Files:" pages to add some classifications to an image.
By default it always adds the images to the general Images Category.
If no classification is given (ie:left empty) it will also add the image to the Img-Unclassified Category.
All image classification-categories can be found in the Image_Types Category.
Syntax
To use the template, type {{image_classification|<classification1, classification2, ...>}}.
To classify some image as a "Inventory-item image" and a "Resource pulled image" it becomes {{image_classification| Inv-Obj, Res-Img}}.
Unknown class-names are ignored. (no error is triggered in such a case.)
Classifcation key-words
(This part is still a work in progress. So changes are to be expected.)
Class Description
Unclassified The default classification if no classification(s) where given.
Can also be specified. But other classifications will be ignored in that case.
Legacy For Legacy images. Acts similar to Unclassified.
ie: Other classifications will be ignore if used. (overruled by Unclassified)

Graph Flow charts, Graphs, Data tables, etc.
Inv-Obj Inventory-item image (not seen as object)
Obj-Img Specific to a given object (no additional added info)
Obj-Info Specific to a given object. (with additional added info)
Game-Scene General scene not specific to a given object ...
Res-Img True copy of some image pulled from a game-resource file.
Currently the only one where it makes sense to use it with some other classification.
(Not available with Legacy classification though. ...)

Image classification

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Label11

Classifications

Suggested values
Graph Inv-Obj Inv-Obj, Res-Img Obj-Img Obj-Img, Res-Img Obj-Info Game-Scene Legacy Unclassified
Lineoptional