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



YumeWiki
3,033Articles

Form:File: Difference between revisions

No edit summary
mNo edit summary
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>PAGENAMEE: {{PAGENAMEE}}


{{#explode:{{PAGENAMEE}}|.|-1}}
file extension switch: {{#explode:{{PAGENAMEE}}|.|-1}}


{{#switch:{{#explode:{{PAGENAMEE}}|.|-1}}
file extension switch: {{#switch:{{#explode:{{PAGENAMEE}}|.|-1}}
|png|jpg|jpeg|gif=Images
|png|jpg|jpeg|gif=Images
|ogg|wav|mp3=Audio
|ogg|wav|mp3=Audio
Line 15: Line 15:
|#default=None}}
|#default=None}}


{{#switch:{{#explode:{{PAGENAMEE}}|.|-1}}
without underscore prefix: {{#explode:{{#explode:{{PAGENAMEE}}|_|1|2}}|.|0}}
|png|jpg|jpeg|gif|ogg|wav|mp3|mp4|mov|ogv|mkv=hidden
|#default=mandatory}}
 
{{#explode:{{#explode:{{PAGENAMEE}}|_|1|2}}|.|0}}


<div id="wikiPreview" title="test" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
<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}}
|png|jpg|jpeg|gif=Images
|ogg|wav|mp3=Audio
|mp4|mov|ogv|mkv=Videos
|#default=None}}|hidden|show on select=Images=>images;Audio=>audio;Videos=>videos}}}
<table class="formtable">
<table class="formtable">
<tr>
<tr>
<th style="text-align:center;"> Type </th>
<th style="text-align:center;"> Type </th>
<th style="text-align:center; width:100%;"> Input </th>
<th style="text-align:center; width:100%;"> Input </th>
</tr><tr>
<th> File: </th>
<td> {{{field|filecat|input type=radiobutton|values=Images, Audio, Videos|default={{#switch:{{#explode:{{PAGENAMEE}}|.|-1}}
|ogg|wav|mp3=Audio
|mp4|mov|ogv|mkv=Videos
|#default=Images}}|mandatory|show on select=Audio=>audio}}} </td>
</tr><tr>
</tr><tr>
<th> Raw Name: </th>
<th> Raw Name: </th>

Revision as of 03:52, 26 July 2024

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