Hallo,
We have the interwiki prefixes '[[:svn:' and '[[:rev:', but last time i checked we don't have any easy way to link to GitWeb or Gerrit.
Maybe it's possible to link to Gerrit using an interwiki prefix, but GitWeb would probably be too complicated and will require a template. (A "link" in the style of '[[File:' with a gazillion parameters is... suboptimal.)
I started a template for doing this: https://translatewiki.net/wiki/Template:Gitweb
It's very naive and early, because i know very little about GitWeb, so feel free to play with it and make it more useful. Also, it's not used much now, so feel free even to break it :)
-- Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי http://aharoni.wordpress.com “We're living in pieces, I want to live in peace.” – T. Moore
On Tue, Apr 3, 2012 at 3:49 PM, Amir E. Aharoni amir.aharoni@mail.huji.ac.il wrote:
Hallo,
We have the interwiki prefixes '[[:svn:' and '[[:rev:', but last time i checked we don't have any easy way to link to GitWeb or Gerrit.
Maybe it's possible to link to Gerrit using an interwiki prefix, but GitWeb would probably be too complicated and will require a template. (A "link" in the style of '[[File:' with a gazillion parameters is... suboptimal.)
I started a template for doing this: https://translatewiki.net/wiki/Template:Gitweb
It's very naive and early, because i know very little about GitWeb, so feel free to play with it and make it more useful. Also, it's not used much now, so feel free even to break it :)
There is a gerrit interwiki prefix. You can use it like [[gerrit:1234]]. You're right in that making a gitweb one is impractical--templates are the way to go here.
-Chad
On 03/04/12 22:08, Chad wrote:
There is a gerrit interwiki prefix. You can use it like [[gerrit:1234]]. You're right in that making a gitweb one is impractical--templates are the way to go here.
-Chad
Why impractical? There's no reason [[gitrev:c2a3ff15fc2b69e7a8f6fd7c4143718708619494]] couldn't work.
2012/4/4 Platonides Platonides@gmail.com:
On 03/04/12 22:08, Chad wrote:
There is a gerrit interwiki prefix. You can use it like [[gerrit:1234]]. You're right in that making a gitweb one is impractical--templates are the way to go here.
-Chad
Why impractical? There's no reason [[gitrev:c2a3ff15fc2b69e7a8f6fd7c4143718708619494]] couldn't work.
Doesn't it need to have at least the repo name?
-- Amir Elisha Aharoni · אָמִיר אֱלִישָׁע אַהֲרוֹנִי http://aharoni.wordpress.com “We're living in pieces, I want to live in peace.” – T. Moore
wikitech-l@lists.wikimedia.org