×
Create a new article
Write your page title here:
We currently have 2,844 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
2,844Articles

Form:File: Difference between revisions

(test lone outputs)
m (test bgm query and center image)
 
(15 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{#forminput:form=File|autocomplete on namespace=File|namespace=File}}
{{#forminput:form=File|autocomplete on namespace=File|namespace=File}}


</noinclude><includeonly>{{PAGENAMEE}}
</noinclude><includeonly>
<big>'''File preview:'''</big>


{{#explode:{{PAGENAMEE}}|.|-1}}
[[{{FULLPAGENAME}}|frameless|center]]


{{#switch:{{#explode:{{PAGENAMEE}}|.|-1}}
{{#ask:[[BGM/Audio::{{FULLPAGENAME}}]]
|png|jpg|jpeg|gif=Images
|outro=
|ogg|wav|mp3=Audio
|intro=Used in:&#32;
|mp4|mov|ogv|mkv=Videos
|mainlabel=
|#default=None}}
|?BGM/Soundroom=
|?BGM/Label=
|format=plainlist
<!--|sort=BGM/Soundroom-->
}}


{{#switch:{{#explode:{{PAGENAMEE}}|.|-1}}
|png|jpg|jpeg|gif|ogg|wav|mp3|mp4|mov|ogv|mkv=hidden
|#default=mandatory}}
<div id="wikiPreview" title="test" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{info|create title=<page name>|edit title=<page name>}}}
{{{info|create title=<page name>|edit title=<page name>}}}
{{{for template|Infobox image}}}
{{{for template|Infobox image}}}
{{{field|filecat|input type=radiobutton|values=Images, Audio, Videos|default={{#switch:{{#explode:{{PAGENAMEE}}|.|-1}}
{| class="formtable"
|png|jpg|jpeg|gif=Images
|-
|ogg|wav|mp3=Audio
! style="text-align:center;"| Type
|mp4|mov|ogv|mkv=Videos
! style="text-align:center; width:100%;"| Input
|#default=None}}|{{#switch:{{#explode:{{PAGENAMEE}}|.|-1}}
|-
|png|jpg|jpeg|gif|ogg|wav|mp3|mp4|mov|ogv|mkv=hidden
! <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>
|#default=mandatory}}|show on select=Images=>images;Audio=>audio;Videos=>videos}}}
| {{{field|sortkey|input type=text|placeholder=Defaults to filename ({{PAGENAME}})}}}
<table class="formtable">
Without first word: <code style="white-space: nowrap; overflow: hidden;">{{#explode:{{#explode:{{PAGENAME}}|.|0}}|<nowiki> </nowiki>|1|2}}</code>
<tr>
|-
<th style="text-align:center;"> Type </th>
! Wiki/Game:
<th style="text-align:center; width:100%;"> Input </th>
| {{{field|forwiki|input type=combobox|mandatory|values from property=Is part of game}}}
</tr><tr>
|-
<th> Raw Name: </th>
! Type:
<td> {{{field|sortkey|input type=text|mandatory|default={{#explode:{{#explode:{{PAGENAMEE}}|_|1|2}}|.|0}}}}} </td>
| {{{field|hastype|input type=radiobutton|mandatory|values={{#switch:{{#explode:{{PAGENAME}}|.|-1}}
</tr><tr>
<th> Wiki/Game: </th>
<td> {{{field|forwiki|input type=combobox|mandatory}}} </td>
</tr><tr>
<th> Type: </th>
<td> {{{field|hastype|input type=radiobutton|mandatory|values={{#switch:{{#explode:{{PAGENAMEE}}|.|-1}}
|png|jpg|jpeg|gif=Screenshots, Maps, Annotated Maps, Panoramas, Picture Files, Character Images, Protagonist Images, Banners, Guide Images, Other (Manual)
|png|jpg|jpeg|gif=Screenshots, Maps, Annotated Maps, Panoramas, Picture Files, Character Images, Protagonist Images, Banners, Guide Images, Other (Manual)
|ogg|wav|mp3=BGM, Sounds, Other (Manual)
|ogg|wav|mp3=BGM, Sounds, Other (Manual)
|mp4|mov|ogv|mkv=Gameplay, Guide Videos, Other (Manual)
|mp4|mov|ogv|mkv=Gameplay, Guide Videos, Other (Manual)
|#default=Screenshots, Maps, Annotated Maps, Panoramas, Picture Files, Character Images, Protagonist Images, Banners, Guide Images, BGM, Sounds, Gameplay, Guide Videos, Other (Manual)
|#default=Screenshots, Maps, Annotated Maps, Panoramas, Picture Files, Character Images, Protagonist Images, Banners, Guide Images, BGM, Sounds, Gameplay, Guide Videos, Other (Manual)
}}}}} </td>
}}}}}
</tr><tr>
|-
<th> Version Removed: </th>
! Version Removed (if&nbsp;any):
<td> {{{field|removed|input type=combobox|values from property=Versions updated}}} </td>
| {{{field|removed|input type=combobox|values from property=Versions updated}}}
</tr><tr>
|-
<th> Fangame Protagonists: </th>
! Fangame Protagonists:
<td> {{{field|fgchars|input type=checkbox|values=Multiple|show on select=Multiple=>protags}}} </td>
| {{{field|fgchars|input type=checkbox|values=Multiple|label=Multiple|show on select=Multiple=>protags}}}
</tr><tr id="protags">
|- id="protags"
<th> File relates to protagonists: </th>
! File relates to protagonists:
<td> {{{field|protags|input type=tokens|list|delimiter=,}}} </td>
| {{{field|protags|input type=tokens|list|delimiter=,}}}
</tr><tr id="audio">
{{#switch:{{#explode:{{PAGENAME}}|.|-1}}
<th> Speed: </th>
|ogg|wav|mp3=
<td> {{{field|percent|input type=regexp
{{!}}-
|regexp=/^\d*$/}}} </td>
! Speed:
</tr>
{{!}} {{{field|percent|input type=regexp
</table>
|regexp=/^\d*$/}}}
}}
|}
{{{end template}}}
{{{end template}}}
==Description==
==Description==
{{{standard input|free text}}}
{{{standard input|free text}}}


{{{standard input|summary|label=Form changes summary:}}}
{{{standard input|minor edit}}} {{{standard input|watch}}}
{{{standard input|save}}} {{{standard input|changes}}} {{{standard input|cancel}}}
</includeonly>
</includeonly>

Latest revision as of 16:17, 28 July 2024

This is the "File" form. It should be used to edit pages in the File namespace.