Manual:$wgUploadNavigationUrl/it
Appearance
Files and file uploads: $wgUploadNavigationUrl | |
---|---|
Point the upload navigation link in the sidebar to a custom URL. |
|
Introdotto nella versione: | 1.5.0 |
Rimosso nella versione: | Still in use |
Valori concessi: | (URL) or false |
Valore predefinito: | false |
Impostazioni: Alfabetiche | Per funzione |
Dettagli
Point the "Carica un file" link in the sidebar "Strumenti" section to a custom URL. Useful if you want to direct users to a shared repository by default without disabling local uploads, e.g.:
$wgUploadNavigationUrl = '//commons.wikimedia.org/wiki/Special:Upload';
If you wish to point users to a custom upload page on the wiki, use an appropriate relative URL:
$wgUploadNavigationUrl = '/wiki/Project:Upload_start_page';
If $wgUploadNavigationUrl is set to false, then a link to Special:Upload is added to the toolbar if uploads are enabled and the user has both upload and edit permissions. If $wgUploadNavigationUrl is set to a url, the link is always shown, regardless of the user's permissions.
Red file links
As of r69997 $wgUploadMissingFileUrl is used for red links. This allows pointing $wgUploadNavigationUrl to an external page that is not per se a Special:Upload directly. If $wgUploadMissingFileUrl is not defined, then $wgUploadNavigationUrl will be used as a fallback since 1.19.
Vedi anche
- $wgEnableUploads - set this to false to disable uploads completely.