(add creator param + move All Links to within BGM check) |
(that's why) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|+File Info | |+File Info | ||
|- | |- | ||
! style="width:8ch;"|Sorted as | ! style="width:8ch;"|{{#ifeq:{{{hastype|}}}|BGM|BGM Title{{#set:Title={{{sortkey|{{PAGENAME}}}}}}}|Sorted as}} | ||
|{{{sortkey|{{PAGENAME}}}}} | |{{{sortkey|{{PAGENAME}}}}} | ||
|- | |- | ||
Line 42: | Line 42: | ||
{{!}}- | {{!}}- | ||
!Speed | !Speed | ||
{{!}} {{#if:{{{percent|}}}| {{{percent|}}}% | [[Category:Missing speed|{{{sortkey|{{PAGENAME}}}}}]] }} | {{!}} {{#if:{{{percent|}}}| {{#set:Audio speed={{{percent|}}}|template=BySetTemplateSimpleValueOutput}}% | [[Category:Missing speed|{{{sortkey|{{PAGENAME}}}}}]] }} | ||
{{!}}- | {{!}}- | ||
{{#ifeq:{{{hastype|}}}|BGM| | {{#ifeq:{{{hastype|}}}|BGM| | ||
Line 49: | Line 49: | ||
{{!}}- | {{!}}- | ||
!Composer | !Composer | ||
{{!}}{{#arraymap: | {{!}}{{#arraymap:{{{creator|Author Unknown}}}|,|?|[[:Category:?|?]][[Category:?|{{{sortkey|{{PAGENAME}}}}}]]|,\s|and}}{{#set:File author={{{creator|Author Unknown}}}|+sep=,}} | ||
}}<!-- forwiki collab games switch --> | }}<!-- forwiki collab games switch --> | ||
{{!}}}<!-- table end if audio and bgm --> | {{!}}}<!-- table end if audio and bgm --> | ||
Line 58: | Line 58: | ||
|limit=1 | |limit=1 | ||
|searchlabel= | |searchlabel= | ||
|default=NONE | |||
}}]] | }}]] | ||
|mainlabel=Location | |mainlabel=Location | ||
Line 67: | 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> | ||
}} | }} |
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?)