Samwilson added a comment.
Just as another example of an existing template that provides this sort of functionality: the {{wdl}} <https://en.wikisource.org/wiki/Template:Wikidata_link> (or 'wikidata link') template on English Wikisource takes a Wikidata ID and optional link-text, and links to the first-found: Wikisource, Wikipedia, Commons, or Reasonator. See it in action, for example, on Letter from T.H. Barker to his wife Mary, 12 December 1903 <https://en.wikisource.org/wiki/Letter_from_T.H._Barker_to_his_wife_Mary,_12_December_1903>. I think the `{{wdl|Qxxx|Label text}}` is pretty succinct, and as easy as any other custom-purpose syntax. TASK DETAIL https://phabricator.wikimedia.org/T212211 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Samwilson Cc: Samwilson, Liuxinyu970226, leila, Pginer-WMF, Sannita, GerardM, Daniel_Mietchen, Manu1400, Volker_E, Lucie, Salgo60, Jane023, cmadeo, Aklapper, Amire80, Adidsone1, darthmon_wmde, DannyS712, Nandana, Phukettaxigroup, Lahi, Gq86, GoranSMilovanovic, Jayprakash12345, QZanden, LawExplorer, _jensen, rosalieper, Soum213, Taiwania_Justo, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Nikerabbit, Arrbee, santhosh, KartikMistry, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs