×
Create a new article
Write your page title here:
We currently have 3,036 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,036Articles

Template:Infobox file/doc: Difference between revisions

m (subst template then removed categories)
m (update to new param names)
Line 5: Line 5:
With comments:
With comments:
<pre><nowiki>{{Infobox image
<pre><nowiki>{{Infobox image
|Wiki =  
|Game =  
|Type = <!--choose one of: screenshot, map, character, gamefile, art, other-->
|Type = <!--choose one of: screenshot, map, character, gamefile, art, other-->
|EditType = <!--use any of: annotated, clarity, layout, recreation-->
|EditType = <!--use any of: annotated, clarity, layout, recreation-->
|Edits = <!--Explain edits here, if necessary-->
|Edits = <!--Explain edits here, if necessary-->
|OldVersion = <!--if old content, which version does it show?-->
|VersionRemoved = <!--if old content, whhen was it removed?-->
|Unused = <!--set to "true" if the thing was never even used-->
|Unused = <!--set to "true" if the thing was never even used-->
|GameFileType = <!--use any of: ChipSet, CharSet, Panorama, Picture-->
|GameFileType = <!--use any of: ChipSet, CharSet, Panorama, Picture-->
Line 16: Line 16:
Without comments:
Without comments:
<pre><nowiki>{{Infobox image
<pre><nowiki>{{Infobox image
|Wiki =  
|Game =  
|Type =  
|Type =  
|EditType =  
|EditType =  
|Edits =  
|Edits =  
|OldVersion =  
|VersionRemoved =  
|Unused =  
|Unused =  
|GameFileType =  
|GameFileType =  
Line 75: Line 75:
==Parameters==
==Parameters==
<templatedata> {"description": "The template parameters are unfinished and need updating.","params": {
<templatedata> {"description": "The template parameters are unfinished and need updating.","params": {
"Wiki": {
"Game": {
"label": "Intended Game/Wiki",
"label": "Intended Game/Topic",
"type": "string",
"type": "string",
"description": "Explanation",
"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_Input",
"example": "Dotflow",
"default": "Default_If_Static",
"required": true
"required": true
},
},
Line 98: Line 97:
"default": "false"
"default": "false"
},
},
"OldVersion": {
"VersionRemoved": {
"label": "Outdated Game Version",
"label": "Version Removed",
"type": "string",
"type": "string",
"description": "If the image showcases something from an older game version, provide the latest version in which it still appears as displayed in the image.",
"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 133: Line 132:
},
},
"paramOrder": [
"paramOrder": [
"Wiki",
"Game",
"Type",
"Type",
"EditType",
"EditType",
"Edits",
"Edits",
"Unused",
"Unused",
"OldVersion",
"VersionRemoved",
"GameFileName",
"GameFileName",
"GameFileType"
"GameFileType"
Line 152: Line 151:
The following input...
The following input...
<pre><nowiki>{{Infobox image
<pre><nowiki>{{Infobox image
|Wiki = Yume Nikki
|Game = Yume Nikki
|Type = screenshot
|Type = screenshot
|EditType =  
|EditType =  
|Edits =  
|Edits =  
|OldVersion =  
|VersionRemoved =  
|Unused =  
|Unused =  
|GameFileType =  
|GameFileType =  
Line 168: Line 167:
! style="width:50.5%;"|
! style="width:50.5%;"|
|-
|-
|{{#ifexpr:{{NAMESPACENUMBER:Yume Nikki:Yume Nikki Wiki}} > 2999|Game|Wiki}}
|Game
|{{#if:Yume Nikki|[[:Category:Yume Nikki Images|Yume Nikki]]|Unknown}}
|[[:Category:Yume Nikki Images|Yume Nikki]]
|-
|-
|Type
|Type
|{{#if:{{#pos:screenshot|shot}}|[[:Category:Yume Nikki {{#if:|Old Version}} Screenshots|{{#if:|Outdated}} In-game Screenshot]]}}
|[[:Category:Yume Nikki Screenshots|In-game Screenshot]]
|}
|}
<noinclude>__NOTOC__ [[Category:Template Documentation]]</noinclude>
<noinclude>__NOTOC__ [[Category:Template Documentation]]</noinclude>
<includeonly>__NOEDITSECTION__</includeonly>
<includeonly>__NOEDITSECTION__</includeonly>

Revision as of 01:30, 3 September 2023

Description

Showcases information of images in the File namespace and categorizes the file pages based on provided info.

Syntax

With comments:

{{Infobox image
|Game = 
|Type = <!--choose one of: screenshot, map, character, gamefile, art, other-->
|EditType = <!--use any of: annotated, clarity, layout, recreation-->
|Edits = <!--Explain edits here, if necessary-->
|VersionRemoved = <!--if old content, whhen was it removed?-->
|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
|Game = 
|Type = 
|EditType = 
|Edits = 
|VersionRemoved = 
|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.

Defines Categories
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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Intended Game/TopicGame

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
Dotflow
Stringrequired
Image TypeType

Explanation

Suggested values
screenshot map character gamefile art other
Example
Example_Input
Stringrequired
Edit TypeEditType

Explanation

Suggested values
annotated clarity layout recreation
Example
Example_Input
Stringoptional
Fancy_NameEdits

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.
Contentsuggested
Unused ImageUnused

If the image is completely unused in every game version.

Default
false
Example
true
Booleanoptional
Version RemovedVersionRemoved

If the image showcases something from an older game version, provide the version in which it was made unavailable.

Example
0.112a
Stringoptional
Name in Game FilesGameFileName

If Type is 'gamefile', provide the original filename as read from the game files of the original-language game copy.

Example
【FC】主人公_A003.xyz
Stringoptional
Game FolderGameFileType

If Type is 'gamefile', provide the folder the game file is found in.

Suggested values
ChipSet CharSet Panorama Picture FaceSet Battle System Title
Example
Example_Input
Stringoptional

Sample

If you had this image:

Mall.png

The following input...

{{Infobox image
|Game = Yume Nikki
|Type = screenshot
|EditType = 
|Edits = 
|VersionRemoved = 
|Unused = 
|GameFileType = 
|GameFileName = 
}}

...would present this:

Image Info
Game Yume Nikki
Type In-game Screenshot