Extension talk:Page Forms/Manual/Using Semantic Forms for file pages and uploads

About this board

File named based on a template?

3
أحمد (talkcontribs)

Is it possible to have the uploaded file named based on the output of a template instead of a single field? So that more complex naming schemes can be devised based on on the values of the properties of the uploaded file.

This post was hidden by أحمد (history)
This post was hidden by أحمد (history)
Reply to "File named based on a template?"
أحمد (talkcontribs)

Perhaps the example be made less abstract by using mnemonic file names and property names instead of the abstract "File" and "File name".

Also literals, if any, could be visually distinguished.

I'm having trouble understand which of the strings are labels and which are references. Moreover I'm always uncertain whether my test isn't working because I made a mistake or due to the Arabic environment being incompatible with some functionality.

For example the corresponding documentation at semantic-mediawiki.org uses names that are slightly different, for example it has "[[File::File:{{{File|}}}]]" instead of "[[File::File:{{{File name|}}}]]"

أحمد (talkcontribs)

OK, I can now confirm that the file name trick "page name=File:<MyFileTemplate[File name]>" works only when the template name is in Latin script. The field name can be in another script, but not the template name for some reason.

Reply to "Less abstract example"
There are no older topics