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



YumeWiki
3,033Articles

Template:Infobox file: Difference between revisions

(create template)
 
(fix whole thing lol)
Line 2: Line 2:
{| class="wikitable" style="width:min(700px, 100%)"
{| class="wikitable" style="width:min(700px, 100%)"
|+Image Info
|+Image Info
! style="width:49.5%;"|
!
! style="width:50.5%;"|
! style="width:80%;"|
|-
|-
|{{#ifexpr:{{NAMESPACENUMBER:{{{Wiki|}}}:{{{Wiki|}}} Wiki}} > 2999|Game|Wiki}}
|Game
|{{#if:{{{Wiki|}}}|[[:Category:{{{Wiki}}} Images|{{{Wiki}}}]]|Unknown}}
|{{#if:{{{Game|}}}|[[:Category:{{{Game}}} Images|{{{Game}}}]]|Unknown}}
|-
|-
|Type
|Type
|{{#ifeq:{{lc:{{{Type|}}}}}|map|[[Category:{{{Wiki}}} {{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Old Version}}}} Maps]][[:Category:{{{Wiki}}} {{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Old Version}}}} Maps|{{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Outdated}}}} Location Map]]{{#if:{{#pos:{{{EditType|}}}|nnotated}}|[[Category:{{{Wiki}}} {{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Old Version}}}} Annotated Maps]]}}}}{{#ifeq:{{lc:{{{Type|}}}}}|gamefile|[[Category:{{{Wiki}}} {{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Old Version}}}} Game Files]][[:Category:{{{Wiki}}} {{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Old Version}}}} Game Files|{{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Outdated}}}} Game File]]
|[[:Category:{{{Game}}} {{#if:{{#pos:{{{Type|}}}|ther}}{{#pos:{{{Type|}}}|rt}}||{{#ifeq:{{{Unused|}}}|true|Unused {{#if:{{#pos:{{{Type|}}}|reenshot}}|Content}}|{{#if:{{{OldVersion|}}}|Old Version}}}}}} {{#switch:{{lc:{{{Type|}}}}}|screenshot=Screenshots|map=Maps|character=Character Images|gamefile=Game Files|art={{#if:{{#pos:{{{EditType|}}}|ecreation}}|A|Official A}}rt|other=Other Images}}|{{#if:{{#pos:{{{Type|}}}|ther}}{{#pos:{{{Type|}}}|rt}}{{#pos:{{{Type|}}}|reenshot}}||{{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Old Version}}}}}}{{#if:{{#pos:{{{Type|}}}|reenshot}}|{{#ifeq:{{{Unused|}}}|true|In-game Screenshot of Unused Content|{{#if:{{{OldVersion|}}}|Old Game Version Screenshot|In-game Screenshot}}}}}} {{#switch:{{lc:{{{Type|}}}}}|screenshot=|map=Location Map|character=Character Sprite|gamefile=Game File|art={{#if:{{#pos:{{{EditType|}}}|ecreation}}|A|Official A}}rt|other=Other Images}}]]{{#ifeq:{{#pos:{{{EditType|}}}|nnotated}}{{#pos:{{{Type|}}}|ap}}|11|[[Category:{{{Game}}} {{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Old Version}}}} Annotated Maps]]}}[[Category:{{{Game}}} {{#if:{{#pos:{{{Type|}}}|ther}}{{#pos:{{{Type|}}}|rt}}||{{#ifeq:{{{Unused|}}}|true|Unused {{#if:{{#pos:{{{Type|}}}|reenshot}}|Content}}|{{#if:{{{OldVersion|}}}|Old Version}}}}}} {{#switch:{{lc:{{{Type|}}}}}|screenshot=Screenshots|map=Maps|character=Character Images|gamefile=Game Files|art={{#if:{{#pos:{{{EditType|}}}|ecreation}}|A|Official A}}rt|other=Other Images}}]]
{{!}}-
{{#if:{{#pos:{{{Type|}}}|amefile}}|{{!}}-
{{!}}Original Filename
{{!}}Original Filename
{{!}}{{#if:{{{GameFileName|}}}|{{{GameFileName}}}|Unknown}}
{{!}}{{#if:{{{GameFileName|}}}|{{{GameFileName}}}|Unknown}}
{{!}}-
{{!}}-
{{!}}Folder
{{!}}Folder
{{!}}{{#if:{{{GameFileType|}}}|[[Category:{{{Wiki}}} {{{GameFileType}}} Files]][[:Category:{{{Wiki}}} {{{GameFileType}}} Files]]|Unspecified}}}}{{#ifeq:{{lc:{{{Type|}}}}}|character|[[Category:{{{Wiki}}} {{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Old Version}}}} Character Images]][[:Category:{{{Wiki}}} {{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Old Version}}}} Character Images|{{#ifeq:{{{Unused|}}}|true|Unused|{{#if:{{{OldVersion|}}}|Old Version}}}} Character Sprite]]}}{{#ifeq:{{lc:{{{Type|}}}}}|art|[[Category:{{{Wiki}}} {{#if:{{#pos:{{{EditType|}}}|ecreation}}||Official}} Art]][[:Category:{{{Wiki}}} {{#if:{{#pos:{{{EditType|}}}|ecreation}}||Official}} Art|{{#if:{{#pos:{{{EditType|}}}|ecreation}}|Fan-made|Official}} Art]]}}{{#if:{{#pos:{{{Type|}}}|shot}}|[[Category:{{{Wiki}}} {{#if:{{{OldVersion|}}}|Old Version}} Screenshots]][[:Category:{{{Wiki}}} {{#if:{{{OldVersion|}}}|Old Version}} Screenshots|{{#if:{{{OldVersion|}}}|Outdated}} In-game Screenshot]]}}{{#ifeq:{{lc:{{{Type|}}}}}|other|[[Category:{{{Wiki}}} Other Images]][[:Category:{{{Wiki}}} Other Images]]}}
{{!}}{{#if:{{{GameFileType|}}}|[[Category:{{{Game}}} {{#if:{{{OldVersion|}}}|Old Version}} {{{GameFileType}}} Files]][[:Category:{{{Game}}} {{#if:{{{OldVersion|}}}|Old Version}} {{{GameFileType}}} Files|{{{Game}}} {{{GameFileType}}} Files]]|Unspecified}}}}{{#if:{{{OldVersion|}}}| 
|-
{{!}}-
{{#if:{{{OldVersion|}}}|{{!}}Version Shown
{{!}}Version Shown
{{!}}{{{OldVersion}}}
{{!}}{{{OldVersion}}}}}{{#if:{{{EditType|}}}| 
{{!}}-
{{!}}-
{{!}}}}{{#if:{{{EditType|}}}|colspan="2" style="text-align:center; background-color:#eaecf0;"{{!}}Edits
{{!}}colspan="2" style="text-align:center; background-color:#eaecf0;"{{!}}Edits
{{!}}-
{{!}}-
{{#ifeq:{{lc:{{{Type|}}}}}|map|
{{#ifeq:{{lc:{{{Type|}}}}}|map|{{!}}Annotated
{{!}}Annotated
{{!}}{{#if:{{#pos:{{{EditType|}}}|nnotated}}|Yes|No}}
{{!}}{{#if:{{#pos:{{{EditType|}}}|nnotated}}|Yes|No}}
{{!}}-
{{!}}-
Line 33: Line 32:
{{!}}-
{{!}}-
{{!}}Explanation
{{!}}Explanation
{{!}}|{{!}}colspan="2"{{!}}}}{{#if:{{{Edits|}}}|{{{Edits}}}|No explanation was provided by the uploader.}}}}
{{!}}|{{!}}colspan="2"{{!}}}}{{#if:{{{Edits|}}}|{{{Edits}}}|No explanation was provided by the uploader.}}}}{{#ifeq:{{{Unused|}}}|true| 
{{#ifeq:{{{Unused|}}}|true|{{!}}-
{{!}}-
{{!}} colspan="2" style="text-align:center;"{{!}}This image showcases unused content that does not appear in-game in any version.}}
{{!}}colspan="2" style="text-align:center;"{{!}}This image showcases unused content that does not appear in-game in any version.}}
|}</onlyinclude>
|}</onlyinclude>
{{documentation}}
{{documentation}}

Revision as of 16:37, 31 August 2023

Image Info
Game Unknown
Type [[:Category:{{{Game}}} | ]][[Category:{{{Game}}} ]]
Documentation (for the above template, sometimes hidden or invisible)

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

Visit Template:Infobox file/doc to edit this text! (How does this work?)