(create rough doc (needs update)) |
m (subst template then removed categories) |
||
Line 172: | Line 172: | ||
|- | |- | ||
|Type | |Type | ||
| | |{{#if:{{#pos:screenshot|shot}}|[[:Category:Yume Nikki {{#if:|Old Version}} Screenshots|{{#if:|Outdated}} In-game Screenshot]]}} | ||
|} | |} | ||
<noinclude>__NOTOC__ [[Category:Template Documentation]]</noinclude> | <noinclude>__NOTOC__ [[Category:Template Documentation]]</noinclude> | ||
<includeonly>__NOEDITSECTION__</includeonly> | <includeonly>__NOEDITSECTION__</includeonly> |
Revision as of 05:56, 29 August 2023
Description
Showcases information of images in the File namespace and categorizes the file pages based on provided info.
Syntax
With comments:
{{Infobox image |Wiki = |Type = <!--choose one of: screenshot, map, character, gamefile, art, other--> |EditType = <!--use any of: annotated, clarity, layout, recreation--> |Edits = <!--Explain edits here, if necessary--> |OldVersion = <!--if old content, which version does it show?--> |Unused = <!--set to "true" if the thing was never even used--> |GameFileType = <!--use any of: ChipSet, CharSet, Panorama, Picture--> |GameFileName = <!--if a file from the game's folder, what is it actually named?--> }}
Without comments:
{{Infobox image |Wiki = |Type = |EditType = |Edits = |OldVersion = |Unused = |GameFileType = |GameFileName = }}
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 more visually appealing and intuitive to visitors of the file page.
Type | Category | If Unused | If Old Version | |
---|---|---|---|---|
Screenshot | % Screenshots | % Old Version Screenshots | ||
Map | % Maps | % Unused Maps | % Old Version Maps | |
Character | % Character Images | % Unused Character Images | % Old Version Character Images | |
Gamefile | % Game Files | % Unused Game Files | % Old Version Game Files | |
Special Cases | ||||
Art | % Official Art | If EditType includes "recreation": % Art | ||
Other | Always: % Other Images |
Parameters
The template parameters are unfinished and need updating.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Intended Game/Wiki | Wiki | Explanation
| String | required |
Image Type | Type | Explanation
| String | required |
Edit Type | EditType | Explanation
| String | optional |
Fancy_Name | Edits | If the image is edited in any way, please explain how it is edited and why the edits were made.
| Content | suggested |
Unused Image | Unused | If the image is completely unused in every game version.
| Boolean | optional |
Outdated Game Version | OldVersion | If the image showcases something from an older game version, provide the latest version in which it still appears as displayed in the image.
| String | optional |
Name in Game Files | GameFileName | If Type is 'gamefile', provide the original filename as read from the game files of the original-language game copy.
| String | optional |
Game Folder | GameFileType | If Type is 'gamefile', provide the folder the game file is found in.
| String | optional |
Sample
If you had this image:
The following input...
{{Infobox image |Wiki = Yume Nikki |Type = screenshot |EditType = |Edits = |OldVersion = |Unused = |GameFileType = |GameFileName = }}
...would present this:
Game | Yume Nikki |
Type | In-game Screenshot |