(change author property) |
(do not add ungraded maps category if it is a basic map) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
|+File Info | |+File Info | ||
|- | |- | ||
! style="width:8ch;"|{{#ifeq:{{{hastype|}}}|BGM|BGM Title{{#set: | ! style="width:8ch;"|{{#ifeq:{{{hastype|}}}|BGM|BGM Title{{#set:Title={{{sortkey|{{PAGENAME}}}}}}}|Sorted as}} | ||
|{{{sortkey|{{PAGENAME}}}}} | |{{{sortkey|{{PAGENAME}}}}} | ||
|- | |- | ||
Line 49: | Line 49: | ||
{{!}}- | {{!}}- | ||
!Composer | !Composer | ||
{{!}}{{#arraymap:{{{creator|Author Unknown}}}|,|?|[[:Category:?|?]][[Category:?|{{{sortkey|{{PAGENAME}}}}}]]|,\s|and}}{{#set:File author={{{creator|Author Unknown}}}|+sep=, | {{!}}{{#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 82: | Line 82: | ||
| <!-- audio file type "else" --> | | <!-- audio file type "else" --> | ||
{{!}}} <!-- table end if not audio --> | {{!}}} <!-- table end if not audio --> | ||
}}<!-- audio file type switch --><div style="clear:both;"></div></includeonly><noinclude> | }}<!-- audio file type switch --> | ||
{{#switch:{{{hastype}}} | |||
|Maps|Annotated Maps={{#if:{{{grading|}}}{{#ifeq:{{{hastype}}}|Annotated Maps|X}}|{{MapGrade|{{#switch:{{{grading}}}|A|B|C|D|F|Z={{{grading}}}|#default=}}|{{{mapnote|}}}}}}}}} | |||
<div style="clear:both;"></div></includeonly><noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 03:19, 11 April 2025
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?)