m (fix error where all maps were being categorised as annotated) |
(add Used in for BGM) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <includeonly>{| class="wikitable" style="width:min(700px, 100%)" | ||
{| class="wikitable" style="width:min(700px, 100%)" | |+File Info | ||
|+ | |||
|- | |- | ||
| | ! style="width:8ch;"|Sorted as | ||
|{{ | |{{{sortkey|{{PAGENAME}}}}} | ||
|- | |- | ||
!{{#if:{{NAMESPACE:{{{forwiki|}}}:b}} | |||
|Wiki | |||
{{!}}[[:Category:{{{forwiki}}}|{{{forwiki}}}]] | |||
|{{{forwiki|}}} | |||
}} | |||
|- | |||
!Type | |||
|{{#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}}}}}]] | |||
}} | |||
}} | |||
|- | |||
!Removed | |||
|{{{removed|No}}} | |||
{{#switch:{{#explode:{{PAGENAME}}|.|-1}} | |||
|ogg|wav|mp3= | |||
{{!}}- | {{!}}- | ||
!colspan="2"{{!}}Audio Info | |||
{{!}} | |||
{{!}}- | {{!}}- | ||
!Speed | |||
{{!}}{ | {{!}} {{{percent|}}}% | ||
{{!}}- | {{!}}- | ||
{{ | {{#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 | ||
|}</ | {{!}}{{#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> |
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:
The following input...
TBA
...would present this:
TBAVisit Template:Infobox file/doc to edit this text! (How does this work?)