Land Bayern

This script is used to add images from Wikimedia Commons and/or links to Commons categories to certain lists of monuments. A full list of monument registers supported by the script can be found below.

How to use it

Anyone can use this script by adding

mw.loader.load('/w/index.php?title=User:Dudemanfellabra/AddCommonsCatLinks.js&action=raw&ctype=text/javascript');

or on other language versions by adding

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Dudemanfellabra/AddCommonsCatLinks.js&action=raw&ctype=text/javascript');

to the bottom of their personal JavaScript page. The script generates a button at the top of supported monument lists which reads "Check Commons for images and categories" (or the corresponding phrase in other supported languages). When clicked, the script extracts the unique IDs of the sites in the list and checks Commons for categories and images that have been identified with that same ID. If a match is found, the script prompts the user to choose to add the matched images and/or categories or elect not to add anything. Upon reaching the bottom of the list, the script automatically edits the list to include the chosen images/categories if the user chose to add any.

How it works

Every time the user visits a new page, the script queries the wikitext of that page and determines if a supported row template (see below) is transcluded therein. If one of these row templates is found, the button is placed at the top of the page; if not, the script exits itself. When the user clicks the button, the wikitext is parsed to extract all the rows and then cycles through them, querying Commons for matches to the unique ID specified in each row template one by one.

Row templates

For each of the supported registers listed below, there is a row template used to create the tables found in the list-articles on which this button is added. For example, lists of sites on the US National Register of Historic Places use the {{NRHP row}} template to create each row in the tables. In the coding of this template, a parameter for a unique alphanumeric ID that identifies the site on that row is included (for the US NRHP, it is |refnum=########). This ID is used to add the site to the monuments database on Commons, allowing this script to recognize it. A good place to look for these row templates is Category:Monument list templates, although not all of the members of this category are supported by the script, and some supported templates may not be in this category.

Besides the unique identifier, it is also necessary that the row template adds the CSS class='vcard' to the row so that the script can recognize it. If this class is not present, the script will throw an error and exit itself.

Commons templates

The row templates identify the sites on the English Wikipedia, but other templates are needed to identify the images and categories on Commons. These templates can be found in commons:Category:Monument templates, though, again, not all of these templates are supported and some that are supported may not be in this category. These templates can be added to categories and files on Commons to mark them as being related to sites on their respective monument register. This is done by adding them to a category with the sortkey equal to the unique ID for that site. This script then queries the members of that category to find matches here. For example, any file or category on which commons:Template:NRHP is transcluded (along with a unique ID) is added to commons:Category:National Register of Historic Places with known IDs, in which this script then looks for matches. If the ID of a file/category on Commons matches the ID of a row template on a page here, the script suggests that file/category for inclusion here. It's that simple!

Other suggested matches

In addition to strict matches, i.e. when the ID of a file/category matches the ID of a row template, the script also makes suggestions in situations where files may not actually be tagged with a Commons template. If, for instance, a row in a list has a commons category specified when the script encounters it but does not include an image, the script will suggest that the user add an image that is in the pre-existing category. This is also the case if a row template has neither an image nor a Commons category when the script encounters it and the script finds a matching category but no matching images. In this case, the script suggests the images in the newly matched category for addition to the template. Of course, these are just suggestions and may not be actual matches since they have not been tagged on Commons definitively stating that they are images of this site, but the suggestions are often times accurate. If the suggested images (or even the strict matches) are not of the site in question or are not in the user's opinion of sufficient quality, there is always the option to forego adding an image or category to a row.

Bot output

Though this script can be run on any supported list, User:ErfgoedBot is instrumental in keeping up the Commons monuments database mentioned above and has some very helpful output that can be used to pinpoint where images and categories that have been identified on Commons need to be added here. An example output is Wikipedia:WikiProject National Register of Historic Places/Missing commons category links, which lists articles on which this script can be used to add links to Commons categories related to sites on the US NRHP. When there is a bot output available for a given register, it is linked in the supported registers table below.

Supported registers

The following table shows an extensive list of the monument registers on the English Wikipedia supported by this template, along with the relevant templates and categories this script uses. See below for monument registers supported on other language Wikipedias.

Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Antarctic Protected AreasAntarctica{{Antarctic Protected Area row}}|type=, |number=commons:Template:Antarctic Protected Areacommons:Category:Antarctic Protected Areas with known IDs
Monuments of ArubaAruba{{Table row Aruba monuments}}|objcode=commons:Template:Cultural Heritage Arubacommons:Category:Cultural heritage monuments in Aruba with known IDs
Beschermd erfgoedBelgiumFlemish Region{{Table row BE}}|id=commons:Template:Onroerend erfgoedcommons:Category:Onroerend erfgoed with known IDs
Beschermd erfgoedBelgiumWallonia{{Table row Wallonia}}|niscode=, |objcode=commons:Template:Monument Walloniecommons:Category:Cultural heritage monuments in Wallonia with known IDs
Canadian Register of Historic PlacesCanada{{HPC row}}|idf=, |idp=, |idm=commons:Template:Historic Places in Canadacommons:Category:Heritage properties in Canada with known IDs
Major Historical and Cultural Site Protected at the National LevelChina{{NHS China row}}|designation=commons:Template:Cultural Heritage Chinacommons:Category:Cultural heritage monuments in China with known IDs
Ghana’s material cultural heritageGhana{{Ghana Monument row}}|id=commons:Template:Cultural Heritage Ghanacommons:Category:Cultural heritage monuments in Ghana with known IDs
Declared monuments of Hong KongHong Kong{{HK Declared Monument row}}|id=commons:Template:Declared monuments Hong Kongcommons:Category:Declared monuments of Hong Kong with known IDs
Historic buildings in Hong KongHong Kong{{HK Historic Building row}}|id=commons:Template:Historic buildings Hong Kongcommons:Category:Historic buildings of Hong Kong with known IDs
Indian Monuments of National ImportanceIndia{{ASI Monument row}}|number=commons:Template:Historic buildings Hong Kongcommons:Category:ASI monuments with known ID's
Public art in IsraelIsrael{{Public art in Israel - row}}|id=commons:Template:Public Art Israelcommons:Category:Public art in Israel with known IDs
Monuments of JapanJapan{{NHS Japan row}}|id=commons:Template:NHS Japancommons:Category:National historic sites of Japan with known IDs
Sites and monuments in KenyaKenya{{Kenya Monument row}}|id=commons:Template:Kenya Monumentcommons:Category:Kenya Monuments with known IDs
Monuments in NepalNepal{{Nepal Monument row}}|number=commons:Template:Cultural Heritage Nepalcommons:Category:Cultural heritage monuments in Nepal with known IDs
Cultural heritage sites in PakistanPakistan{{PKmonument row}}|number=commons:Template:Cultural Heritage Pakistancommons:Category:Cultural heritage monuments in Pakistan with known IDs
Cultural Properties of the PhilippinesPhilippines{{Philippine cultural property row}}|cp-wmph-id=commons:Template:WMPH-IDcommons:Category:Cultural heritage monuments in the Philippines with known IDs
National heritage sites of South AfricaSouth Africa{{SAHRA heritage site row}}|SiteReference=commons:Template:South African Heritage Sitecommons:Category:South Africa Heritage Resources with known IDs
Swiss Inventory of Cultural Property of National and Regional SignificanceSwitzerland{{SIoCPoNaRS row}}|KGS_nr=commons:Template:Cultural property of national significance in Switzerlandcommons:Category:Cultural properties of national significance in Switzerland with known IDs
National Cultural Sites in UgandaUganda{{National Cultural Site of Uganda row}}|number=commons:Template:National Cultural Site Ugandacommons:Category:National Cultural Sites in Uganda with known IDs
Listed buildings in EnglandUnited KingdomEngland{{EH listed building row}}|uid=commons:Template:Listed building Englandcommons:Category:Listed buildings in England with known IDs
Listed buildings in WalesUnited KingdomWales{{Cadw listed building row}}|hb=commons:Template:Listed building Walescommons:Category:Listed buildings in Wales with known IDs
Listed buildings in CardiffUnited KingdomWalesCardiff{{Cardiff listed building row}}|hb=commons:Template:Listed building Walescommons:Category:Listed buildings in Wales with known IDs
Listed buildings in ScotlandUnited KingdomScotland{{HS listed building row}}|hb=commons:Template:Listed building Scotlandcommons:Category:Listed buildings in Scotland with known IDs
Listed buildings in Northern IrelandUnited KingdomNorthern Ireland{{NIEA listed building row}}|hb=commons:Template:Listed building Northern Irelandcommons:Category:Listed buildings in Northern Ireland with known IDs
United States National Register of Historic Places listingsUnited States{{NRHP row}}|refnum=commons:Template:NRHPcommons:Category:National Register of Historic Places with known IDs
California Historical LandmarksUnited StatesCalifornia{{CHL row}}|refnum=commons:Template:US-CHLcommons:Category:California Historical Landmarks with known IDs

Other language Wikipedias

This script also supports lists on other language Wikipedias and is constantly expanding that support. While it may be possible to edit a list on a non-English Wikipedia, the GUI may or may not be displayed in that language. If the GUI has not yet been translated, the script will default to English, as will the edit summary (though the parameters added to the wikitext will be in the native language). If you can help translate the GUI into another language, please leave me a message at my talk page with the section title "I can help translate the CommonsCat script into LANGUAGE!"

A full list of supported registers on non-English Wikipedias is included below, sorted by the ISO 639 language code for that language (e.g. German's code is "de"). Click [show] next to the relevant language to display the list.

Azerbaijani / azərbaycan dili (az)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Abidələrin siyahısıAzerbaijan{{AZE Monument row}}|ID=commons:Template:Cultural Heritage Azerbaijancommons:Category:Cultural heritage monuments in Azerbaijan with known IDs
Belarusian / Беларуская (be/be-x-old)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Cultural Properties of BelarusBelarus{{Вікі любіць славутасьці/Элемэнт сьпісу}}|шыфр=commons:Template:Belarus heritagecommons:Category:Cultural heritage monuments in Belarus with known IDs
Czech / česky (cs)
GUI has been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Cultural monument (Czech Republic)Czech Republic{{Památky v Česku}}|Id_objektu=commons:Template:Cultural Heritage Czech Republiccommons:Category:Cultural monuments in the Czech Republic with known IDs
Danish / dansk (da)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
National Register of Sites and MonumentsDenmark{{Tabelrække FF}}|systemnummer=commons:Template:Fortidsmindecommons:Category:Archaeological monuments in Denmark with known IDs
Listed buildings in DenmarkDenmark{{Tabelrække FBB}}|kommunenr=, |ejendomsnr=, |bygningsnr=commons:Template:Fredet bygningcommons:Category:Listed buildings in Denmark with known IDs
German / Deutsch (de)
GUI has been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Denkmalgeschütztes ObjektAustria{{Denkmalliste Österreich Tabellenzeile}}|ObjektID=commons:Template:Denkmalgeschütztes Objekt Österreichcommons:Category:Cultural heritage monuments in Austria with known IDs
Naturdenkmal in AustriaAustria{{Naturdenkmal Österreich Tabellenzeile}}|ID=commons:Template:Naturdenkmal Österreichcommons:Category:Natural monuments in Austria with known ID
Public art in AustriaAustria{{WLPA-AT-Zeile}}|ID=commons:Template:Public Art Austriacommons:Category:Public Art in Austria with known IDs
Baudenkmäler in BayernGermanyBavaria{{Denkmalliste Bayern Tabellenzeile}}|Nummer=commons:Template:Baudenkmal Bayerncommons:Category:Cultural heritage monuments in Bavaria with known IDs
Bau- und Bodendenkmale in BrandenburgGermanyBrandenburg{{Denkmalliste Brandenburg Tabellenzeile}}|Id=commons:Template:Baudenkmal Brandenburgcommons:Category:Cultural heritage monuments in Brandenburg with known ID
Kulturdenkmäler in HessenGermanyHesse{{Denkmalliste Hessen Tabellenzeile}}|Nummer=commons:Template:Kulturdenkmal Hessencommons:Category:Cultural heritage monuments in Hesse with known ID
Baudenkmäler in Nordrhein-WestfalenGermanyNorth Rhine-Westphalia{{Denkmalliste1 Tabellenzeile}}|Nummer=commons:Template:Kulturdenkmalcommons:Category:Cultural heritage monuments in NRW with known ID
Baudenkmäler in Bergheim-MitteGermanyNorth Rhine-WestphaliaBergheim{{Denkmalliste Bergheim Tabellenzeile}}|Nummer=commons:Template:Kulturdenkmal Bergheimcommons:Category:Cultural heritage monuments in Bergheim with known ID
Baudenkmäler in KölnGermanyNorth Rhine-WestphaliaCologne{{Denkmalliste Köln Tabellenzeile}}|Nummer_Denkmalliste=commons:Template:Kulturdenkmal Kölncommons:Category:Cultural heritage monuments in Cologne with known ID
Kulturdenkmale in SachsenGermanySaxony{{Denkmalliste Sachsen Tabellenzeile}}|ID=commons:Template:Kulturdenkmal Sachsencommons:Category:Cultural heritage monuments in Saxony with known ID
Baudenkmäler in SüdtirolItalySouth Tyrol{{Denkmalliste Südtirol Tabellenzeile}}|ObjektID=commons:Template:Denkmalgeschütztes Objekt Südtirolcommons:Category:Cultural heritage monuments in South Tyrol with known IDs
National Inventory of Cultural Property of the Maltese IslandsMalta{{Denkmalliste Malta Tabellenzeile}}|Inventarnummer=commons:Template:National Inventory of Cultural Property of the Maltese Islandscommons:Category:Cultural heritage monuments in Malta with known IDs
Cultural Heritage Monuments of SlovakiaSlovakia{{Denkmalliste Slowakei Tabellenzeile}}|ObjektID=commons:Template:Cultural Heritage Slovakiacommons:Category:Cultural heritage monuments in Slovakia with known IDs
Swiss Inventory of Cultural Property of National and Regional SignificanceSwitzerland{{Denkmalliste Schweiz Tabellenzeile}}, {{Denkmalliste2 Schweiz Tabellenzeile}}, {{Denkmalliste2 Schweiz-ZH Tabellenzeile}}, {{Kulturgüter Schweiz Tabellenzeile}}|KGS-Nr=, |ID=commons:Template:Cultural property of national significance in Switzerlandcommons:Category:Cultural properties of national significance in Switzerland with known IDs
Spanish / Español (es)
GUI has been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
National Historic Monuments of ArgentinaArgentina{{MonumentoArgentina}}|id=commons:Template:Monumento Argentinocommons:Category:Monuments in Argentina with known IDs
Monumentos nacionales de BoliviaBolivia{{MonumentoBolivia}}|id=commons:Template:Monumento Boliviacommons:Category:Cultural heritage monuments in Bolivia with known IDs
National Monuments of ChileChile{{MonumentoChile}}|id=commons:Template:Monumento Nacional de Chilecommons:Category:National monuments in Chile with known IDs
National Monuments of ColombiaColombia{{MonumentoColombia}}|id=commons:Template:Monumento Nacional de Colombiacommons:Category:National monuments in Colombia with known IDs
Monuments of El SalvadorEl Salvador{{MonumentoElSalvador}}|id=commons:Template:Cultural Heritage El Salvadorcommons:Category:Cultural heritage monuments in El Salvador with known IDs
Monuments of MexicoMexico{{MonumentoMéxico}}|id=commons:Template:Monumento de Méxicocommons:Category:Cultural heritage monuments in Mexico with known IDs
Monuments of PanamaPanama{{Fila PCN}}|registro=commons:Template:PCNcommons:Category:Cultural heritage monuments in Panama with known IDs
Bien de Interés CulturalSpain{{Fila BIC}}|bic=commons:Template:BICcommons:Category:Cultural heritage monuments in Spain with known IDs
National Monuments of UruguayUruguay{{MonumentoUruguay}}|id=commons:Template:Monumento Uruguaycommons:Category:Cultural heritage monuments in Uruguay with known IDs
National Monuments of VenezuelaVenezuela{{MonumentoVenezuela}}|id=commons:Template:Monumento Venezuelacommons:Category:Cultural heritage monuments in Venezuela with known IDs
Estonian / eesti (et)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Eesti kultuurimälestisedEstonia{{KRR rida}}|number=commons:Template:Kultuurimälestiscommons:Category:Cultural heritage monuments in Estonia (with known IDs)
Finnish / suomi (fi)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Public art in FinlandFinland{{Wlpa-teokset-rivi}}|id=commons:Template:Public Art Finlandcommons:Category:Public art in Finland with known IDs
Galician / Galego (gl)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Bien de Interés CulturalSpain{{BIC}}|id=commons:Template:BICcommons:Category:Cultural heritage monuments in Spain with known IDs
Hebrew / עברית (he)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Monuments in IsraelIsrael{{אתר מורשת בישראל בשורה}}|מספר אתר=commons:Template:Heritage site in Israelcommons:Category:Heritage sites in Israel with known IDs
Hungarian / Magyar (hu)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Monuments in HungaryHungary{{Műemlék}}|azonosító=commons:Template:Monument Hungarycommons:Category:Cultural heritage monuments in Hungary with known IDs
Armenian / Հայերեն (hy)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Monuments in ArmeniaArmenia{{Հուշարձան ցանկ}}|համարանիշ=commons:Template:Cultural Heritage Armeniacommons:Category:Cultural heritage monuments in Armenia with known IDs
Norwegian / Norsk (no)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Kulturminner in NorwayNorway{{Kulturminner row}}|id=commons:Template:Monument Norgecommons:Category:Cultural heritage monuments in Norway with known IDs
Polish / polski (pl)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Objects of cultural heritage in PolandPoland{{Zabytki/wpis}}|id=commons:Template:Zabytek nieruchomycommons:Category:Cultural heritage monuments in Poland with known IDs
Portuguese / Português (pt)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
National monuments of PortugalPortugal{{IGESPAR/linha}}|id=commons:Template:IGESPARcommons:Category:IGESPAR with known IDs
Romanian / română (ro)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Monumente istoriceRomania{{ElementLMI}}|Cod=commons:Template:Monument istoriccommons:Category:Cultural heritage monuments in Romania with known IDs
Slovak / slovenčina (sk)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Cultural Heritage Monuments of SlovakiaSlovakia{{Monuments tableline-SK}}|IDobjektu=commons:Template:Cultural Heritage Slovakiacommons:Category:Cultural heritage monuments in Slovakia with known IDs
Serbian / српски језик (sr)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Cultural Heritage of SerbiaSerbia{{Споменици ред}}|ИД=commons:Template:Cultural Heritage Serbiacommons:Category:Cultural heritage monuments in Serbia with known IDs
Thai / ไทย (th)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
Archaeological sites in ThailandThailand{{แถวโบราณสถาน}}|ทะเบียน=commons:Template:Cultural Heritage Thailandcommons:Category:Cultural heritage monuments in Thailand with known IDs
Ukrainian / українська (uk)
GUI has not been translated.
Register nameCountry/LocationRow templateUnique ID parameter(s)Commons templateCommons categoryBot output
CatsImages
State Register of Immovable Monuments of UkraineUkraine{{ВЛП-рядок}}|ID=commons:Template:Monument Ukrainecommons:Category:Cultural heritage monuments in Ukraine with known IDs

Adding support for new registers/languages

In order to add support for new registers, the entire framework–row template, Commons template, and ID category–must be set up for the register. In addition to making this script more useful, converting existing lists of sites on heritage registers around the world into this format will improve the database on Commons as well and will be very useful for Wiki Loves Monuments, an annual international photo drive in which thousands of images of monuments are added to Commons. Support for any new registers which have been converted to this format can easily be added to the script by contacting User:Dudemanfellabra.

Support for registers on other language Wikipedias does not require anything more than registers on the English Wikipedia; however, if you want the GUI/edit summary to be displayed in the local language, it must first be translated from English. There are several strings that are displayed by the GUI, all of which must be translated before the language can be supported. The strings are shown below with their English versions and notes on when they are used when necessary as guidance for translation. If you are inclined to do so, translate the strings below and copy them to my talk page. I will add support for them as soon as possible.

Click [show] to see a list of strings to be translated in the GUI
 // The strings "ROWTEMPLATE", "NAME", "CATNAME", etc. should not be translated but can be moved around for better grammar.
 // These strings will be replaced by the relevant items during output.

 // text to be displayed in the button you click to start the script
        "ButtonText":"Check Commons for images and categories",
        "ImageOnlyText":"Check Commons for images only",
 // Error at the beginning of the script to catch templates that don't include the correct CSS class
        "RowMismatch":"Row mismatch! This is probably due to an incorrectly formatted row template. All row templates must include class='vcard' in order for this script to identify them. If {{ROWTEMPLATE}} does include class='vcard', please let me know at en:User_talk:Dudemanfellabra, and I will try to resolve the problem. The script will now exit itself. Sorry!",
// Similar error but for templates verified to have class='vcard'
        "MalformedRow":"Row mismatch! This is probably due to an incorrectly formatted row template in the wikicode, e.g. a missing }} or a misplaced HTML comment. If you cannot find the error on this page or believe it is due to something else, please let me know at :en:User_talk:Dudemanfellabra, and I will try to resolve the problem. The script will now exit itself. Sorry!",
 // self-explanatory
        "CheckingMatches":"Checking for matches...",
        "EditSummary":"[[:en:User:Dudemanfellabra/AddCommonsCatLinks|Semi-automated]] addition of image(s) and/or commonscat link(s) to monument list",
        "NoneFound":"No matches found or selected. Script exited.",
        "Found":"Matches found!",
        "Invalid":"The existing image and/or category cannot be found on Commons. Selecting a match here will replace the existing one(s). If you do not want to replace anything, choose Do not add any category/image.",
        "FollowingImages":"NAME matches the following images:",
 // asking to select either a matched image or a category; shouldn't include the words for "image" or "category"
        "SelectOne":"Select one to add:",
        "DontAddImage":"Do not add any image",
        "OtherSuggested":"Other suggested images for NAME from matched or existing categories:",
        "Suggested":"Suggested images for NAME from matched or existing categories:",
 // included with each suggested image showing which category it is a member of
        "From":"from CATNAME",
        "FollowingCats":"NAME matches the following categories:",
        "DontAddCat":"Do not add any category",
 // shown on the buttons
        "SelectButton":"Continue",
        "SaveButton":"Save progress and exit",
        "Done":"Done!<br>Editing page...",
        "SuccessfulEdit":"Done! Refresh the page to see the result!",
        "FailedEdit":"The edit query returned an error.",
        "LeavePage":"Are you sure you want to leave the page? All categories/files that you have added will not be saved!"

Troubleshooting

The following are known issues with the script that have not yet been addressed or are not technically feasible due to limitations of Wikimedia software:

  • If a single Commons template is transcluded multiple times on the same category/image because, e.g., multiple parts of the site in question are designated independently, the script can only detect the last one transcluded on the page. This is due to the limitation that a page in a category cannot have more than one sortkey (explained above), so each successive template simply overwrites the existing sortkey, making it invisible to this script. Note: This only applies to sites where a single template is transcluded multiple times; if a site is designated on two different registers marked by two different templates which include the category/image in two different categories, the script should detect each designation individually.
  • Sometimes the script will suggest an image/category when there is already one there, falsely claiming that the existing image/category does not in fact exist. For images, this is usually because the image itself is not stored on Commons but on the local language's Wikipedia. Choosing to add a matched/suggested image in this case will replace the existing image with the one on Commons. For categories, this means that the commonscat previously specified in the template cannot be found on Commons (likely a typo in the row template?). Choosing a matched/suggested category will replace the existing one. This also can happen if there is a linebreak in front of the file or category name, in which case adding the suggested image will break the template output.
  • The code tries hard to preserve the original formatting of the wikicode for the row template. If the row template is found to have each parameter on its own newline, the script will add a new line for the image/commonscat parameter; if the wikicode does not include newlines but rather just one big block of code, the script will add the parameter inline without forcing a linebreak. That said, the script is not so good at preserving spacing and other aesthetic formatting. Many times editors like to include spaces between parameter names and the equals sign (=) or pipes (|) for other parameters so the wikicode is more readable. This script is not intelligent enough (yet) to known how many spaces are needed to preserve this formatting, but small improvements are always being made. For now, it may be in the user's best interest to manually review the wikicode after using the script to preserve any spacing and avoid angering other editors.

If any errors or undesired behaviors apart from those listed above are encountered while using this script, please direct questions to User:Dudemanfellabra, the script's creator.

Wissen

Automated Chatbot

Data Security

Virtual Reality

Communication

Support

Company

About Us

Services

Features

Our Pricing

Latest News

© 2024 campus1.de