×
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

(add "More of this BGM" that shows record info of BGM with same title)
m (ZASNK moved page Template:Infobox image to Template:Infobox file: old name became inaccurate)
 
(6 intermediate revisions by the same user not shown)
Line 13: Line 13:
!Type
!Type
|{{#ifexpr:{{NAMESPACENUMBER:{{{forwiki|}}}:b}} > 2999
|{{#ifexpr:{{NAMESPACENUMBER:{{{forwiki|}}}:b}} > 2999
  |{{#ifeq: {{{hastype|}}} | Other (Manual) |Other (Manual)|[[:Category:{{{forwiki}}} {{{hastype}}}|{{{hastype}}}]]
  |<!-- if forwiki matches custom wiki namespace -->
[[Category:{{{forwiki}}} {{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]
{{#arraymap:{{{hastype}}}|,|$|<!--
  {{#arraymap:{{{protags|}}}|,|?|[[Category:? {{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]|}}
-->{{#ifeq: $ | Other (Manual) |Other (Manual)|[[:Category:{{{forwiki}}} $|$]]}}<!--
-->{{#ifeq: $ | Other (Manual) ||[[Category:{{{forwiki}}} $|{{{sortkey|{{PAGENAME}}}}}]]}}<!--
-->{{#ifeq: $ | Annotated Maps | [[Category:{{{forwiki}}} Maps|{{{sortkey|{{PAGENAME}}}}}]]
}}
}}
{{#ifeq: {{{hastype|}}} | 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}}}}}]]
}}
}}
|{{#ifeq: {{{hastype|}}} | Other (Manual) |Other (Manual)|[[:Category:{{{hastype}}}|{{{hastype}}}]]
|,\s|and}}
[[Category:{{{hastype}}}|{{{sortkey|{{PAGENAME}}}}}]]
}}<!-- namespacenumber check -->
}}
{{#ifeq: {{{hastype|}}} | Annotated Maps | [[Category:Maps|{{{sortkey|{{PAGENAME}}}}}]]
}}
}}
|-
|-
!Removed
!Removed
Line 34: Line 42:
{{!}}-
{{!}}-
!Speed
!Speed
{{!}} {{{percent|}}}%
{{!}} {{#if:{{{percent|}}}| {{{percent|}}}% | [[Category:Missing speed|{{{sortkey|{{PAGENAME}}}}}]] }}
{{!}}-
{{!}}-
{{#ifeq:{{{hastype|}}}|BGM|
{{#ifeq:{{{hastype|}}}|BGM|
!Used in
{{!}} {{#ask:[[BGM/Audio::{{FULLPAGENAME}}]]
|mainlabel=
|?BGM/Soundroom=
|?BGM/Label=
|format=plainlist
|sep=<br>
<!--|sort=BGM/Soundroom-->
}}
{{#switch:{{{forwiki}}}
{{#switch:{{{forwiki}}}
|Yume 2kki|Uneven Dream|Collective Unconscious=
|Yume 2kki|Uneven Dream|Collective Unconscious=
{{!}}-
{{!}}-
!Composer
!Composer
{{!}}{{#arraymap:{{#ask: [[BGM/Audio::{{FULLPAGENAME}}]]
{{!}}{{#arraymap:{{#if:{{{creator|}}}|{{{creator}}}|Author Unknown}}|,|?|[[:Category:?|?]][[Category:?|{{{sortkey|{{PAGENAME}}}}}]]|,\s|and}}
|?BGM/Author=
|format=plainlist
|mainlabel=-
|default=Author Unknown
|limit=1
|searchlabel=
}}|,|?|[[:Category:?|?]][[Category:?|{{{sortkey|{{PAGENAME}}}}}]]|,\s|and}}
}}<!-- forwiki collab games switch -->
}}<!-- forwiki collab games switch -->
{{!}}}<!-- table end if audio and bgm -->
{{!}}}<!-- table end if audio and bgm -->
Line 66: Line 58:
|limit=1
|limit=1
|searchlabel=
|searchlabel=
|default=NONE
}}]]
}}]]
|mainlabel=Location
|mainlabel=Location
Line 75: Line 68:
|headers=plain
|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>
|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
|class=wikitable mw-collapsible-content sortable
|outro=</div>
|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 -->
{{!}}}<!-- table end if audio but not BGM -->
}}<!-- BGM type switch -->
}}<!-- BGM type switch -->
|
| <!-- audio file type "else" -->
{{!}}} <!-- table end if not audio -->
{{!}}} <!-- table end if not audio -->
}}<!-- audio file type switch --></includeonly><noinclude>{{documentation}}</noinclude>
}}<!-- audio file type switch --><div style="clear:both;"></div></includeonly><noinclude>
{{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?)