|
|
| ltemplates := "{{ *(AGPL|Apache license 2.0|Assumed-CC-BY-SA-2.0-self|Attribution|Bing image|Bing image portions|BSD|CC-BY-(NC-|)(ND-|)(SA-|)(2.0|2.5|3.0|4.0|)(-self| OpenStreetMap|)|CC-SA-1.0|CC0|CC0-self|Esri image|Geograph|GFDL|GPL|ID screenshot|ISC|JOSM Icon license( with imagery| without imagery|)|LGPL|Licence Ouverte( 2|)|Mapbox image credit|Maxar image|MIT|MPL|ODbL( OpenStreetMap|)|OSM Carto (example|icon|screenshot)|PD(-B-road-sign|-CAGov|-creator|-old|-PRC-Road Traffic Signs|-RU-exempt|-self|-shape|-USGov|-USGov-NOAA|)|Self-made-image|Tiles@Home screenshot|WTFPL(-self|)) *(\||}})"; | | ltemplates := "{{ *(AGPL|Apache license 2.0|Assumed-CC-BY-SA-2.0-self|Attribution|Bing image|Bing image portions|BSD|CC-BY-(NC-|)(ND-|)(SA-|)(2.0|2.5|3.0|4.0|)(-self| OpenStreetMap|)|CC-SA-1.0|CC0|CC0-self|Esri image|Geograph|GFDL|GPL|ID screenshot|ISC|JOSM Icon license|JOSM screenshot without imagery|LGPL|Licence Ouverte( 2|)|Mapbox image credit|Maxar image|MIT|MPL|ODbL( OpenStreetMap|)|OSM Carto (example|icon|screenshot)|PD(-B-road-sign|-CAGov|-creator|-old|-PRC-Road Traffic Signs|-RU-exempt|-self|-shape|-USGov|-USGov-NOAA|)|Self-made-image|Tiles@Home screenshot|WTFPL(-self|)) *(\||}})"; |
| (action == 'stashupload' | action == 'upload') | | (action == 'stashupload' | action == 'upload') |
| & !("bot" in user_groups) | | & !("bot" in user_groups) |
| & !(new_wikitext rlike ltemplates) | | & !(new_wikitext rlike ltemplates) |
| & !(old_wikitext rlike ltemplates) /* needed for re-uploads with existing license templates */ | | & !(old_wikitext rlike ltemplates) /* needed for re-uploads with existing license templates */ |