Addshore added a comment.
As said in https://www.mediawiki.org/wiki/Manual:Sites_table#Importing_sites_table_from_another_wiki the script allows you to import all sites from another wiki. The default uses meta.wikimedia so you end up with all of the sites for wikimedia. If your local test site is not configured to be one of these sites / have the same id / dbname etc then it wont just work. If you want to add my_wiki then you will need to add it in the more manual way using some of the code snippets from https://www.mediawiki.org/wiki/Manual:Sites_table#Insert_wiki_family_(using_Script) In T206567#5728943 <https://phabricator.wikimedia.org/T206567#5728943>, @Niedzielski wrote: > @addshore, I think I'm getting all the sites from meta: > The default link is: > http://localhost:8181/wiki/Special:NewItem?site=my_wiki&page=Foo > That doesn't work but manually typing in `site=enwiki` to the URL works: That is correct and the default like is correct based on your wiki configuration. Your wiki is called my_wiki and thus that it the id used for the sitelink. On your repo however the sites table does not contain that site. > http://localhost:8181/wiki/Special:NewItem?site=enwiki&page=Foo > I could add "my_wiki" and I think it would work. I'm unsure what the default behavior should be but working out of the box seems ideal. That would work, and that would be the correct expected thing to be done. You create a wiki, and you create a client, and then register the client with the repo in the sites table. making this nicer will likely be tackled in 2020 where something like T97012 <https://phabricator.wikimedia.org/T97012> will be done. I thought there was already a ticket tracking a sites table entry for the local wiki, but there is not, so I will create that and then close this task. TASK DETAIL https://phabricator.wikimedia.org/T206567 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Addshore Cc: Masumrezarock100, Bcbussche, pmiazga, Addshore, Aklapper, Niedzielski, Pavithraes, darthmon_wmde, Jelabra, DannyS712, Nandana, Cpaulf30, Lahi, Gq86, GoranSMilovanovic, Ivana_Isadora, Jayprakash12345, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, srodlund, Asahiko, Wikidata-bugs, aude, Dinoguy1000, Lydia_Pintscher, Mbch331, Jay8g
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
