m (subst template then removed categories) |
(add category) |
||
(5 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 built to work with [[Form:File]]. | |||
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 | |||
''TBA'' | |||
==Parameters== | ==Parameters== | ||
<templatedata> {"description": " | ''TBA'' | ||
" | |||
"label": "Intended Game/ | <!-- | ||
<templatedata> {"description": "","params": { | |||
"sortkey": { | |||
"label": "Intended Game/Topic", | |||
"type": "string", | "type": "string", | ||
"description": " | "description": "The name of the game the image is from or about. Use the name exactly as it is written for the YumeWiki namespace, or as the page name (English text only).", | ||
"example": " | "example": "Dotflow", | ||
"required": true | "required": true | ||
}, | }, | ||
Line 87: | Line 26: | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": ["screenshot","map","character","gamefile","art","other"], | "suggestedvalues": ["screenshot","map","character","gamefile","art","other"], | ||
"description": " | "description": "The type of image. Screenshots are from normal gameplay, maps are the full worlds, character is for NPC sprites and events, gamefile is self-explanatory, art is for any official or fanmade art of maps and characters, and finally other is for anything else.", | ||
"example": " | "example": "map", | ||
"required": true | "required": true | ||
}, | }, | ||
Line 98: | Line 37: | ||
"default": "false" | "default": "false" | ||
}, | }, | ||
" | "VersionRemoved": { | ||
"label": " | "label": "Version Removed", | ||
"type": "string", | "type": "string", | ||
"description": "If the image showcases something from an older game version, provide the | "description": "If the image showcases something from an older game version, provide the version in which it was made unavailable.", | ||
"example": "0.112a" | "example": "0.112a" | ||
}, | }, | ||
Line 108: | Line 47: | ||
"type": "string", | "type": "string", | ||
"suggestedvalues": ["annotated","clarity","layout","recreation"], | "suggestedvalues": ["annotated","clarity","layout","recreation"], | ||
"description": " | "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": " | "example": "annotated, layout", | ||
"suggested": true | |||
}, | }, | ||
"GameFileName": { | "GameFileName": { | ||
"label": "Name in Game Files", | "label": "Name in Game Files", | ||
"type": "string", | "type": "string", | ||
"description": "If Type is 'gamefile', provide the original filename as read from the game files of the original | "description": "If Type is 'gamefile', provide the original filename as read from the game files of the (original language) game copy.", | ||
"example": "【FC】主人公_A003.xyz" | "example": "【FC】主人公_A003.xyz" | ||
}, | }, | ||
Line 122: | Line 62: | ||
"suggestedvalues": ["ChipSet","CharSet","Panorama","Picture","FaceSet","Battle","System","Title"], | "suggestedvalues": ["ChipSet","CharSet","Panorama","Picture","FaceSet","Battle","System","Title"], | ||
"description": "If Type is 'gamefile', provide the folder the game file is found in.", | "description": "If Type is 'gamefile', provide the folder the game file is found in.", | ||
"example": " | "example": "Picture" | ||
}, | }, | ||
"Edits": { | "Edits": { | ||
"label": " | "label": "Edits", | ||
"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." | ||
} | } | ||
}, | }, | ||
"paramOrder": [ | "paramOrder": [ | ||
" | "Game", | ||
"Type", | "Type", | ||
"EditType", | "EditType", | ||
"Edits", | "Edits", | ||
"Unused", | "Unused", | ||
" | "VersionRemoved", | ||
"GameFileName", | "GameFileName", | ||
"GameFileType" | "GameFileType" | ||
Line 145: | 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> |
Revision as of 08:39, 29 July 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