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



YumeWiki
2,844Articles

Template:Infobox image: Difference between revisions

m (change Image Info to Basic Info)
(add Used in for BGM)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>
<includeonly>{| class="wikitable" style="width:min(700px, 100%)"
{| class="wikitable" style="width:min(700px, 100%)"
|+File Info
|+Basic Info
!
! style="width:80%;"|
|-
|-
|Game
! style="width:8ch;"|Sorted as
|{{#if:{{{Game|}}}|[[:Category:{{{Game}}} Images|{{{Game}}}]]|Unknown}}
|{{{sortkey|{{PAGENAME}}}}}
|-
|-
|Type
!{{#if:{{NAMESPACE:{{{forwiki|}}}:b}}
|[[:Category:{{{Game}}} {{#if:{{#pos:{{{Type|}}}|ther}}{{#pos:{{{Type|}}}|rt}}||{{#ifeq:{{{Unused|}}}|true|Unused {{#if:{{#pos:{{{Type|}}}|reenshot}}|Content}}|{{#if:{{{VersionRemoved|}}}|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:{{{VersionRemoved|}}}|Old Version}}}}}}{{#if:{{#pos:{{{Type|}}}|reenshot}}|{{#ifeq:{{{Unused|}}}|true|In-game Screenshot of Unused Content|{{#if:{{{VersionRemoved|}}}|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:{{{VersionRemoved|}}}|Old Version}}}} Annotated Maps]]}}[[Category:{{{Game}}} {{#if:{{#pos:{{{Type|}}}|ther}}{{#pos:{{{Type|}}}|rt}}||{{#ifeq:{{{Unused|}}}|true|Unused {{#if:{{#pos:{{{Type|}}}|reenshot}}|Content}}|{{#if:{{{VersionRemoved|}}}|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}}|&#32;
|Wiki
{{!}}-
{{!}}[[:Category:{{{forwiki}}}|{{{forwiki}}}]]
{{!}}Original Filename
|{{{forwiki|}}}
{{!}}{{#if:{{{GameFileName|}}}|{{{GameFileName}}}|Unknown}}
}}
{{!}}-
|-
{{!}}Folder
!Type
{{!}}{{#if:{{{GameFileType|}}}|[[Category:{{{Game}}} {{#if:{{{VersionRemoved|}}}|Old Version}} {{{GameFileType}}} Files]][[:Category:{{{Game}}} {{#if:{{{VersionRemoved|}}}|Old Version}} {{{GameFileType}}} Files|{{{GameFileType}}}]]|Unspecified}}}}{{#if:{{{VersionRemoved|}}}|&#32;
|{{#ifexpr:{{NAMESPACENUMBER:{{{forwiki|}}}:b}} > 2999
{{!}}-
|[[:Category:{{{forwiki}}} {{{hastype}}}|{{{hastype}}}]]
{{!}}Version Shown
{{#ifeq: {{{hastype|}}} | Other (Manual) ||[[Category:{{{forwiki}}} {{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]
{{!}}{{{VersionRemoved}}}}}{{#if:{{{EditType|}}}|&#32;
  {{#arraymap:{{{protags|}}}|,|?|[[Category:? {{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]|}}
{{!}}-
}}
{{!}}colspan="2" style="text-align:center; background-color:#eaecf0;"{{!}}Edits
{{#ifeq: {{{hastype|}}} | Annotated Maps | [[Category:{{{forwiki}}} Maps|{{{sortkey|{{PAGENAME}}}}}]]
{{!}}-
}}
{{#ifeq:{{lc:{{{Type|}}}}}|map|{{!}}Annotated
|[[:Category:{{{hastype}}}|{{{hastype}}}]]
{{!}}{{#if:{{#pos:{{{EditType|}}}|nnotated}}|Yes|No}}
{{#ifeq: {{{hastype|}}} | Other (Manual) ||[[Category:{{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]
}}
{{#ifeq: {{{hastype|}}} | Annotated Maps | [[Category:Maps|{{{sortkey|{{PAGENAME}}}}}]]
}}
}}
|-
!Removed
|{{{removed|No}}}
{{#switch:{{#explode:{{PAGENAME}}|.|-1}}
|ogg|wav|mp3=
{{!}}-
{{!}}-
{{!}}Improved Clarity
!colspan="2"{{!}}Audio Info
{{!}}{{#if:{{#pos:{{{EditType|}}}|larity}}|Yes|No}}
{{!}}-
{{!}}-
{{!}}Changed Layout
!Speed
{{!}}{{#if:{{#pos:{{{EditType|}}}|ayout}}|Yes|No}}
{{!}} {{{percent|}}}%
{{!}}-
{{!}}-
{{!}}Explanation
{{#ifeq:{{{hastype|}}}|BGM|
{{!}}|{{!}}colspan="2"{{!}}}}{{#if:{{{Edits|}}}|{{{Edits}}}|No explanation was provided by the uploader.}}}}{{#ifeq:{{{Unused|}}}|true|&#32;
!Used in
{{!}} {{#ask:[[BGM/Audio::{{FULLPAGENAME}}]]
|mainlabel=
|?BGM/Soundroom=
|?BGM/Label=
|format=plainlist
|sep=<br>
<!--|sort=BGM/Soundroom-->
}}
{{#switch:{{{forwiki}}}
|Yume 2kki|Uneven Dream|Collective Unconscious=
{{!}}-
{{!}}-
{{!}}colspan="2" style="text-align:center;"{{!}}This image showcases unused content that does not appear in-game in any version.}}
!Composer
|}</onlyinclude>
{{!}}{{#arraymap:{{#ask: [[BGM/Audio::{{FULLPAGENAME}}]]
{{documentation}}
|?BGM/Author=
|format=plainlist
|mainlabel=-
|default=Author Unknown
|limit=1
|searchlabel=
}}|,|?|[[:Category:?|?]][[Category:?|{{{sortkey|{{PAGENAME}}}}}]]|,\s|and}}
}}
}}
}}
|}</includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 16:24, 28 July 2024


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:

Mall.png

The following input...

TBA

...would present this:

TBA