×
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

(create template)
 
(add Used in for BGM)
 
(14 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
|+Image Info
! style="width:49.5%;"|
! style="width:50.5%;"|
|-
|-
|{{#ifexpr:{{NAMESPACENUMBER:{{{Wiki|}}}:{{{Wiki|}}} Wiki}} > 2999|Game|Wiki}}
! style="width:8ch;"|Sorted as
|{{#if:{{{Wiki|}}}|[[:Category:{{{Wiki}}} Images|{{{Wiki}}}]]|Unknown}}
|{{{sortkey|{{PAGENAME}}}}}
|-
|-
|Type
!{{#if:{{NAMESPACE:{{{forwiki|}}}:b}}
|{{#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]]
|Wiki
{{!}}-
{{!}}[[:Category:{{{forwiki}}}|{{{forwiki}}}]]
{{!}}Original Filename
|{{{forwiki|}}}
{{!}}{{#if:{{{GameFileName|}}}|{{{GameFileName}}}|Unknown}}
}}
{{!}}-
|-
{{!}}Folder
!Type
{{!}}{{#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]]}}
|{{#ifexpr:{{NAMESPACENUMBER:{{{forwiki|}}}:b}} > 2999
|[[:Category:{{{forwiki}}} {{{hastype}}}|{{{hastype}}}]]
{{#ifeq: {{{hastype|}}} | Other (Manual) ||[[Category:{{{forwiki}}} {{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]
  {{#arraymap:{{{protags|}}}|,|?|[[Category:? {{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]|}}
}}
{{#ifeq: {{{hastype|}}} | Annotated Maps | [[Category:{{{forwiki}}} Maps|{{{sortkey|{{PAGENAME}}}}}]]
}}
|[[:Category:{{{hastype}}}|{{{hastype}}}]]
{{#ifeq: {{{hastype|}}} | Other (Manual) ||[[Category:{{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]
}}
{{#ifeq: {{{hastype|}}} | Annotated Maps | [[Category:Maps|{{{sortkey|{{PAGENAME}}}}}]]
}}
}}
|-
|-
{{#if:{{{OldVersion|}}}|{{!}}Version Shown
!Removed
{{!}}{{{OldVersion}}}
|{{{removed|No}}}
{{!}}-
{{#switch:{{#explode:{{PAGENAME}}|.|-1}}
{{!}}}}{{#if:{{{EditType|}}}|colspan="2" style="text-align:center; background-color:#eaecf0;"{{!}}Edits
|ogg|wav|mp3=
{{!}}-
{{!}}-
{{#ifeq:{{lc:{{{Type|}}}}}|map|
!colspan="2"{{!}}Audio Info
{{!}}Annotated
{{!}}{{#if:{{#pos:{{{EditType|}}}|nnotated}}|Yes|No}}
{{!}}-
{{!}}-
{{!}}Improved Clarity
!Speed
{{!}}{{#if:{{#pos:{{{EditType|}}}|larity}}|Yes|No}}
{{!}} {{{percent|}}}%
{{!}}-
{{!}}-
{{!}}Changed Layout
{{#ifeq:{{{hastype|}}}|BGM|
{{!}}{{#if:{{#pos:{{{EditType|}}}|ayout}}|Yes|No}}
!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=
{{!}}-
{{!}}-
{{!}}Explanation
!Composer
{{!}}|{{!}}colspan="2"{{!}}}}{{#if:{{{Edits|}}}|{{{Edits}}}|No explanation was provided by the uploader.}}}}
{{!}}{{#arraymap:{{#ask: [[BGM/Audio::{{FULLPAGENAME}}]]
{{#ifeq:{{{Unused|}}}|true|{{!}}-
|?BGM/Author=
{{!}} colspan="2" style="text-align:center;"{{!}}This image showcases unused content that does not appear in-game in any version.}}
|format=plainlist
|}</onlyinclude>
|mainlabel=-
{{documentation}}
|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