m (add more info and finish parameters) |
m (ZASNK moved page Template:Infobox image/doc to Template:Infobox file/doc: old name became inaccurate) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
==Syntax== | ==Syntax== | ||
''TBA'' | |||
==Usage== | ==Usage== | ||
The purpose of this template is to automatically categorize image files on the wiki. This allows the category names to be changed more easily in the future, or for the structure to be made more specific or general depending on needs. Instead of changing every file page with a command, the template can be changed to use different category names. It is also | The purpose of this template is to automatically categorize image files on the wiki. This allows the category names to be changed more easily in the future, or for the structure to be made more specific or general depending on needs. Instead of changing every file page with a command, the template can be changed to use different category names. It is also built to work with [[Form:File]]. | ||
''TBA'' | |||
==Parameters== | ==Parameters== | ||
''TBA'' | |||
<!-- | |||
<templatedata> {"description": "","params": { | <templatedata> {"description": "","params": { | ||
" | "sortkey": { | ||
"label": "Intended Game/Topic", | "label": "Intended Game/Topic", | ||
"type": "string", | "type": "string", | ||
Line 104: | Line 48: | ||
"suggestedvalues": ["annotated","clarity","layout","recreation"], | "suggestedvalues": ["annotated","clarity","layout","recreation"], | ||
"description": "What kind of edits were made to the image if any. Use the list under the Usage section of the documentation if unsure of what fits.", | "description": "What kind of edits were made to the image if any. Use the list under the Usage section of the documentation if unsure of what fits.", | ||
"example": "annotated, layout" | "example": "annotated, layout", | ||
"suggested": true | |||
}, | }, | ||
"GameFileName": { | "GameFileName": { | ||
Line 123: | Line 68: | ||
"type": "content", | "type": "content", | ||
"description": "If the image is edited in any way, please explain how it is edited and why the edits were made.", | "description": "If the image is edited in any way, please explain how it is edited and why the edits were made.", | ||
"example": "The background panorama of this world was replaced with a static color to make the pathways easier to see. The path to [[Example:Character|Character]]'s room is outlined using a green line." | "example": "The background panorama of this world was replaced with a static color to make the pathways easier to see. The path to [[Example:Character|Character]]'s room is outlined using a green line." | ||
} | } | ||
}, | }, | ||
Line 140: | Line 84: | ||
} | } | ||
</templatedata> | </templatedata> | ||
==Sample== | Remove comment after finishing templatedata--> | ||
==Sample== | |||
If you had this image: | If you had this image: | ||
[[File:Mall.png|border|300px]] | [[File:YN Mall.png|border|300px]] | ||
The following input... | The following input... | ||
<pre> | <pre> | ||
TBA | |||
</pre> | |||
...would present this: | ...would present this: | ||
''TBA'' <!-- subst --> | |||
! | <noinclude>__NOTOC__ [[Category:Template documentation]]</noinclude> | ||
<includeonly>__NOEDITSECTION__ | |||
[[Category:Infobox templates|Image]] | |||
</includeonly> | |||
<noinclude>__NOTOC__ [[Category:Template | |||
<includeonly>__NOEDITSECTION__</includeonly> |
Latest revision as of 05:40, 21 August 2024
Description
Showcases information of images in the File namespace and categorizes the file pages based on provided info.
Syntax
TBA
Usage
The purpose of this template is to automatically categorize image files on the wiki. This allows the category names to be changed more easily in the future, or for the structure to be made more specific or general depending on needs. Instead of changing every file page with a command, the template can be changed to use different category names. It is also built to work with Form:File.
TBA
Parameters
TBA
Sample
If you had this image:
The following input...
TBA
...would present this:
TBA