Nikki added a comment.

  On Wikidata we call these "permanent duplicates". One page gets linked to the 
Wikidata item with all the data and sitelinks (in the example given, that's 
Sonia Shirsat <https://gom.wikipedia.org/wiki/Sonia_Shirsat> which gets linked 
to Q26924563 <https://www.wikidata.org/wiki/Q26924563>). For all other versions 
of a page, we create a separate item and add a statement instance of 
<https://www.wikidata.org/wiki/Property:P31> (`P31`) Wikimedia permanent 
duplicated page <https://www.wikidata.org/wiki/Q21286738> (Q21286738) and a 
statement permanent duplicated item 
<https://www.wikidata.org/wiki/Property:P2959> (`P2959`) linking to the proper 
item (so for this example we have Q65445260 
<https://www.wikidata.org/wiki/Q65445260> for सोनिया शिरसाट 
<https://gom.wikipedia.org/wiki/%E0%A4%B8%E0%A5%8B%E0%A4%A8%E0%A4%BF%E0%A4%AF%E0%A4%BE_%E0%A4%B6%E0%A4%BF%E0%A4%B0%E0%A4%B8%E0%A4%BE%E0%A4%9F>
 and Q113497590 <https://www.wikidata.org/wiki/Q113497590> for ಸೋನಿಯಾ ಶಿರ್ಸಾಟ್ 
<https://gom.wikipedia.org/wiki/%E0%B2%B8%E0%B3%8B%E0%B2%A8%E0%B2%BF%E0%B2%AF%E0%B2%BE_%E0%B2%B6%E0%B2%BF%E0%B2%B0%E0%B3%8D%E0%B2%B8%E0%B2%BE%E0%B2%9F%E0%B3%8D>).
  
  My suggestion would be:
  
  Create a module which checks the "instance of" (`P31`) value of the current 
page. If it's "Wikimedia permanent duplicated page" (Q21286738), get the value 
of "permanent duplicated item" (`P2959`), load that item, get its sitelinks and 
then include them as interwiki links in the current page.
  
  Then, call that module from the template for linking the different versions 
(सांचो:Lipi 
<https://gom.wikipedia.org/wiki/%E0%A4%B8%E0%A4%BE%E0%A4%82%E0%A4%9A%E0%A5%8B:Lipi>)
 and all versions of the page should get the same links.
  
  I'm not sure if any wikis currently have a module that does //exactly// that 
which could be reused (if any, then probably the Ladino Wikipedia), but there 
are definitely some modules out there which do something similar. I don't have 
any links right now but I think there are some for Commons (because of 
galleries and categories), Incubator (because they can't be linked to Wikidata) 
and some of the Wikisources (because of books and individual editions of them).

TASK DETAIL
  https://phabricator.wikimedia.org/T278366

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Nikki
Cc: Nikki, Amire80, Winston_Sung, Pginer-WMF, Aklapper, alexhollender_WMF, 
Wangombe, Astuthiodit_1, karapayneWMDE, Invadibot, Func, PallaviPatke, 
maantietaja, Rileych, ItamarWMDE, Akuckartz, 50019062, VulpesVulpes825, 
Nandana, Jony, lucamauri, AbdellahSADIQUI, Lahi, Willy1018, Gq86, Biblbroks, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Soum213, 
Taiwania_Justo, Scott_WUaS, LNDDYL, Wikidata-bugs, aude, ssastry, Nikerabbit, 
Arrbee, santhosh, KartikMistry, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to