Widget:File upload: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
Regel 102: Regel 102:
 
     });
 
     });
 
   }
 
   }
   output = output.replace(':','=');
+
   output = output.replace(/:/g,'=');
   output = output.replace(';','|');
+
   output = output.replace(/;/g','|');
 
   if(caption){
 
   if(caption){
 
     output = '{{'+settingsFilepagetemplate+'|'+output+'|caption='+caption+'|type='+type+'}}';
 
     output = '{{'+settingsFilepagetemplate+'|'+output+'|caption='+caption+'|type='+type+'}}';

Versie van 8 sep 2020 07:54

Sjabloon:Managed

This is the Widget:File upload page. It should be called in the following format:

{{#widget:File upload
|multiple=false
|preview=true
|caption=true
|drop=false
|button={{fa|upload}}
|filepagetemplate=file for test
|filepageparameters=filename:<FILENAME><Title>;page:{{FULLPAGENAME}}
|filename=<FILENAME><Title>
}}