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



YumeWiki
2,864Articles

Template:Infobox file: Difference between revisions

(create template)
 
m (ZASNK moved page Template:Infobox image to Template:Infobox file: old name became inaccurate)
 
(23 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
|<!-- if forwiki matches custom wiki namespace -->
{{#arraymap:{{{hastype}}}|,|$|<!--
-->{{#ifeq: $ | Other (Manual) |Other (Manual)|[[:Category:{{{forwiki}}} $|$]]}}<!--
-->{{#ifeq: $ | Other (Manual) ||[[Category:{{{forwiki}}} $|{{{sortkey|{{PAGENAME}}}}}]]}}<!--
-->{{#ifeq: $ | Annotated Maps | [[Category:{{{forwiki}}} Maps|{{{sortkey|{{PAGENAME}}}}}]]
}}
|,\s|and}}
  {{#arraymap:{{{protags|}}}|,|?|
{{#arraymap:{{{hastype}}}|,|$|
{{#ifeq: $ | Other (Manual) |Other (Manual)|[[Category:? $|{{{sortkey|{{PAGENAME}}}}}]]}}
|,}}
|}}
|<!-- if forwiki does not match custom wiki namespace -->
{{#arraymap:{{{hastype}}}|,|$|<!--
-->{{#ifeq: $ | Other (Manual) |Other (Manual)|[[:Category:$|$]]}}<!--
-->{{#ifeq: $ | Other (Manual) ||[[Category:$|{{{sortkey|{{PAGENAME}}}}}]]}}<!--
-->{{#ifeq: $ | Annotated Maps | [[Category:Maps|{{{sortkey|{{PAGENAME}}}}}]]
}}
|,\s|and}}
}}<!-- namespacenumber check -->
|-
|-
{{#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}}
{{!}} {{#if:{{{percent|}}}| {{{percent|}}}% | [[Category:Missing speed|{{{sortkey|{{PAGENAME}}}}}]] }}
{{!}}-
{{!}}-
{{!}}Changed Layout
{{#ifeq:{{{hastype|}}}|BGM|
{{!}}{{#if:{{#pos:{{{EditType|}}}|ayout}}|Yes|No}}
{{#switch:{{{forwiki}}}
|Yume 2kki|Uneven Dream|Collective Unconscious=
{{!}}-
{{!}}-
{{!}}Explanation
!Composer
{{!}}|{{!}}colspan="2"{{!}}}}{{#if:{{{Edits|}}}|{{{Edits}}}|No explanation was provided by the uploader.}}}}
{{!}}{{#arraymap:{{#if:{{{creator|}}}|{{{creator}}}|Author Unknown}}|,|?|[[:Category:?|?]][[Category:?|{{{sortkey|{{PAGENAME}}}}}]]|,\s|and}}
{{#ifeq:{{{Unused|}}}|true|{{!}}-
}}<!-- forwiki collab games switch -->
{{!}} colspan="2" style="text-align:center;"{{!}}This image showcases unused content that does not appear in-game in any version.}}
{{!}}}<!-- table end if audio and bgm -->
|}</onlyinclude>
{{#ask: [[BGM/Title::{{#ask: [[BGM/Audio::{{FULLPAGENAME}}]]
|?BGM/Title=
|mainlabel=-
|format=plainlist
|limit=1
|searchlabel=
|default=NONE
}}]]
|mainlabel=Location
|?BGM/Soundroom=ID
|?BGM/Audio=File
|?BGM/Speed=Speed
<!--|sort=BGM/Speed-->
|format=broadtable
|headers=plain
|intro=<div class="mw-collapsible" id="mw-customcollapsible-moreBGM"><div class="mw-customtoggle-moreBGM" style="text-align:center; margin:0 0 -1em 0;">'''More of this BGM +'''</div>
|class=wikitable mw-collapsible-content sortable
|outro=</div>
}}
<div class="mw-collapsible mw-collapsed">
===All Links===
<div class="mw-collapsible-content">
{{Special:WhatLinksHere/{{FULLPAGENAME}}}}
</div></div>
----
| <!-- BGM type "else" -->
{{!}}}<!-- table end if audio but not BGM -->
}}<!-- BGM type switch -->
| <!-- audio file type "else" -->
{{!}}} <!-- table end if not audio -->
}}<!-- audio file type switch --><div style="clear:both;"></div></includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>

Latest revision as of 05:40, 21 August 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:

YN Mall.png

The following input...

TBA

...would present this:

TBA

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