×
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

(i can only guarantee this ain't working the first time)
(add Used in for BGM)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="wikitable" style="width:min(700px, 100%)"
<includeonly>{| class="wikitable" style="width:min(700px, 100%)"
|+Basic Info
|+File Info
|-
|-
!Raw Name
! style="width:8ch;"|Sorted as
| style="width:80%;"|{{{sortkey|{{PAGENAME}}}}}
|{{{sortkey|{{PAGENAME}}}}}
|-
|-
!{{#if:{{NAMESPACE:{{{forwiki|}}}:b}}
!{{#if:{{NAMESPACE:{{{forwiki|}}}:b}}
  |Wiki
  |Wiki
{{!}}[[:Category:{{{forwiki}}} {{{filecat|}}}|{{{forwiki}}}]] [[Category:{{{forwiki}}} {{{filecat|}}}|{{{sortkey|{{PAGENAME}}}}}]]
{{!}}[[:Category:{{{forwiki}}}|{{{forwiki}}}]]
  |{{{forwiki|}}}
  |{{{forwiki|}}}
}}
}}
Line 16: Line 16:
{{#ifeq: {{{hastype|}}} | Other (Manual) ||[[Category:{{{forwiki}}} {{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]
{{#ifeq: {{{hastype|}}} | Other (Manual) ||[[Category:{{{forwiki}}} {{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]
   {{#arraymap:{{{protags|}}}|,|?|[[Category:? {{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]|}}
   {{#arraymap:{{{protags|}}}|,|?|[[Category:? {{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]|}}
}}
{{#ifeq: {{{hastype|}}} | Annotated Maps | [[Category:{{{forwiki}}} Maps|{{{sortkey|{{PAGENAME}}}}}]]
}}
}}
  |[[:Category:{{{hastype}}}|{{{hastype}}}]]
  |[[:Category:{{{hastype}}}|{{{hastype}}}]]
{{#ifeq: {{{hastype|}}} | Other (Manual) ||[[Category:{{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]
{{#ifeq: {{{hastype|}}} | Other (Manual) ||[[Category:{{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]
}}
{{#ifeq: {{{hastype|}}} | Annotated Maps | [[Category:Maps|{{{sortkey|{{PAGENAME}}}}}]]
}}
}}
  }}
  }}
Line 24: Line 28:
!Removed
!Removed
|{{{removed|No}}}
|{{{removed|No}}}
{{#ifeq:{{{filecat|}}}|Audio|
{{#switch:{{#explode:{{PAGENAME}}|.|-1}}
|ogg|wav|mp3=
{{!}}-
!colspan="2"{{!}}Audio Info
{{!}}-
{{!}}-
!Speed
!Speed
{{!}} {{{percent|}}}
{{!}} {{{percent|}}}%
{{#ifexpr:{{NAMESPACENUMBER}} = 3002 or {{NAMESPACENUMBER}} = 3014 or {{NAMESPACENUMBER}} = 3018
{{!}}-
|{{!}}-
{{#ifeq:{{{hastype|}}}|BGM|
!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=
{{!}}-
!Composer
!Composer
{{!}}{{#arraymap:{{#ask: [[BGM/Audio::{{FULLPAGENAME}}]]
{{!}}{{#arraymap:{{#ask: [[BGM/Audio::{{FULLPAGENAME}}]]
Line 41: Line 60:
}}
}}
}}
}}
|}<includeonly><noinclude>{{documentation}}</noinclude>
}}
|}</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