(fix whole thing lol) |
(that's why) |
||
(27 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;"|{{#ifeq:{{{hastype|}}}|BGM|BGM Title{{#set:Title={{{sortkey|{{PAGENAME}}}}}}}|Sorted as}} | |||
|{{# | |{{{sortkey|{{PAGENAME}}}}} | ||
|- | |- | ||
!{{#if:{{NAMESPACE:{{{forwiki|}}}:b}} | |||
|Wiki | |||
{{!}}[[:Category:{{{forwiki}}}|{{{forwiki}}}]] | |||
|{{{forwiki|}}} | |||
}} | |||
|- | |||
!Type | |||
|{{#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 --> | |||
|- | |||
!Removed | |||
|{{{removed|No}}} | |||
{{#switch:{{#explode:{{PAGENAME}}|.|-1}} | |||
|ogg|wav|mp3= | |||
{{!}}- | {{!}}- | ||
!colspan="2"{{!}}Audio Info | |||
{{!}} | |||
{{!}}- | {{!}}- | ||
!Speed | |||
{{!}}{{#if:{{# | {{!}} {{#if:{{{percent|}}}| {{#set:Audio speed={{{percent|}}}|template=BySetTemplateSimpleValueOutput}}% | [[Category:Missing speed|{{{sortkey|{{PAGENAME}}}}}]] }} | ||
{{!}}- | {{!}}- | ||
{{#ifeq:{{{hastype|}}}|BGM| | |||
{{#switch:{{{forwiki}}} | |||
|Yume 2kki|Uneven Dream|Collective Unconscious= | |||
{{!}}- | {{!}}- | ||
{{!}} | !Composer | ||
|}</ | {{!}}{{#arraymap:{{{creator|Author Unknown}}}|,|?|[[:Category:?|?]][[Category:?|{{{sortkey|{{PAGENAME}}}}}]]|,\s|and}}{{#set:File author={{{creator|Author Unknown}}}|+sep=,}} | ||
}}<!-- forwiki collab games switch --> | |||
{{!}}}<!-- table end if audio and bgm --> | |||
{{#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 20:51, 26 September 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?)