Seb35 added a comment.

I just succeeded in using formatterUrlProperty on a test wiki. Here is my steps:

  1. After installation of Wikibase repo, create a property with type String, it can be empty (without any statement), this will be the equivalent property than http://www.wikidata.org/entity/P1630, it is numbered P5 in my case;
  2. In LocalSettings.php, set $wgWBRepoSettings['formatterUrlProperty'] = 'P5';;
  3. Run the maintenance script php extensions/Wikibase/repo/maintenance/rebuildPropertyInfo.php --rebuild-all --force;
  4. Then your properties can declare some P5 with as the value the URL of the destination, with $1 in the URL as a placeholder with the external identifier.

I searched for some time the third step above, I’m not sure if it’s mandatory or if it was because I created the properties (of step 4) before setting formatterUrlProperty.


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

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

To: Seb35
Cc: Seb35, hoo, Lydia_Pintscher, Sjoerddebruin, Aklapper, Cpaulf30, Lahi, Gq86, GoranSMilovanovic, Ivana_Isadora, Jayprakash12345, QZanden, LawExplorer, Wikidata-bugs, aude, Dinoguy1000, Mbch331, Jay8g
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to