/* Example for [[Bugzilla:021572]] -- [[meta:user:Platonides]] */ addOnloadHook ( function() { if (wgArticleId) addPortletLink("p-tb", wgScript + "?curid=" + wgArticleId, "Short url", "t-curid", "Reference using its article id"); } );