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



YumeWiki
3,104Articles

Template:Infobox file/doc: Difference between revisions

m (add more info and finish parameters)
(add category)
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:


==Syntax==
==Syntax==
With comments:
''TBA''
<pre><nowiki>{{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?-->
}}</nowiki></pre>
Without comments:
<pre><nowiki>{{Infobox image
|Game =
|Type =
|EditType =
|Edits =
|VersionRemoved =
|Unused =
|GameFileType =
|GameFileName =
}}</nowiki></pre>
==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 more visually appealing and intuitive to visitors of the file page.
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''


{| class="wikitable" style="width:100%"
|+Defines Categories
!style="width:25%"|Type
!style="width:25%"|Category
!style="width:25%"|If Unused
!style="width:25%"|If Old Version
|-
|Screenshot
|% Screenshots
|style="background-color:#cdcdcd"|
|% 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
|-
|colspan="4" style="text-align:center; background-color:#eaecf0;"|'''Special Cases'''
|-
|Art
|% Official Art
|colspan="3" style="text-align:center;"|''If EditType includes "recreation":'' % Art
|-
|Other
|colspan="3" style="text-align:center;"|''Always:'' % Other Images
|}
The ''edit types'' that may be used to describe an image are defined as followed:
*'''Annotated:''' Labels, circles, arrows, guiding lines, markers
*'''Clarity:''' Increased brightness, altered colours/saturation, changed background
*'''Layout:''' For maps where different parts are moved around to make paths more clear, or when multiple areas are combined to create one large map image
*'''Recreation:''' Recreations of other images, such as [[:File:Mall_Poster_1.png|art]] and [[:File:001RECONSTRUCTION.png|maps]]
==Parameters==
==Parameters==
''TBA''
<!--
<templatedata> {"description": "","params": {
<templatedata> {"description": "","params": {
"Game": {
"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."
"suggested": true
}
}
},
},
Line 140: Line 84:
}
}
</templatedata>
</templatedata>
==Sample== <!-- I need a better example. -->
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><nowiki>{{Infobox image
<pre>
|Game = Yume Nikki
TBA
|Type = screenshot
</pre>
|EditType =
|Edits =
|VersionRemoved =
|Unused =
|GameFileType =
|GameFileName =
}}</nowiki></pre>
...would present this:
...would present this:


{| class="wikitable" style="width:min(700px, 100%)"
''TBA'' <!-- subst -->
|+Image Info
 
! style="width:49.5%;"|
<noinclude>__NOTOC__ [[Category:Template documentation]]</noinclude>
! style="width:50.5%;"|
<includeonly>__NOEDITSECTION__
|-
[[Category:Infobox templates|Image]]
|Game
</includeonly>
|[[:Category:Yume Nikki Images|Yume Nikki]]
|-
|Type
|[[:Category:Yume Nikki Screenshots|In-game Screenshot]]
|}
<noinclude>__NOTOC__ [[Category:Template Documentation]]</noinclude>
<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:

YN Mall.png

The following input...

TBA

...would present this:

TBA