m (test different value for table width) |
(use infobox file instead of image, change sortkey label to title if detected as audio) |
||
Line 29: | Line 29: | ||
{{{info|create title=<page name>|edit title=<page name>}}} | {{{info|create title=<page name>|edit title=<page name>}}} | ||
{{{for template|Infobox | {{{for template|Infobox file}}} | ||
{| class="formtable" | {| class="formtable" | ||
|- | |- | ||
Line 35: | Line 35: | ||
! style="text-align:center; width:100vw;"| Input | ! style="text-align:center; width:100vw;"| Input | ||
|- | |- | ||
! <span tabindex="0" title="This is the filename without any prefix such as game name, e.g. YN_Nexus.png → Nexus.png, so it sorts as Nexus.png within the Yume Nikki category">Sort Name:<span class="explain"> (?)</span></span> | ! {{#switch:{{lc:{{#explode:{{PAGENAME}}|.|-1}} }} | ||
|ogg|wav|mp3=<span tabindex="0" title="The official title of the BGM, usually as it appears in the files. If this audio isn't BGM, put any name to sort by.">BGM Title:<span class="explain"> (?)</span></span> | |||
|#default=<span tabindex="0" title="This is the filename without any prefix such as game name, e.g. YN_Nexus.png → Nexus.png, so it sorts as Nexus.png within the Yume Nikki category">Sort Name:<span class="explain"> (?)</span></span> | |||
}} | |||
| {{{field|sortkey|input type=text|placeholder=Defaults to filename}}} | | {{{field|sortkey|input type=text|placeholder=Defaults to filename}}} | ||
Without first word: <code style="white-space: nowrap; overflow: hidden;">{{#explode:{{PAGENAME}}|<nowiki> </nowiki>|1|2}}</code> | Without first word: <code style="white-space: nowrap; overflow: hidden;">{{#explode:{{PAGENAME}}|<nowiki> </nowiki>|1|2}}</code> |
Revision as of 23:40, 24 September 2024
This is the "File" form. It should be used to edit pages in the File namespace.