[Wikitech-l] template for linking to GitWeb

4 views
Skip to first unread message

Amir E. Aharoni

unread,
Apr 3, 2012, 3:49:55 PM4/3/12
to Wikimedia developers
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‬

_______________________________________________
Wikitech-l mailing list
Wikit...@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Chad

unread,
Apr 3, 2012, 4:08:49 PM4/3/12
to Wikimedia developers
On Tue, Apr 3, 2012 at 3:49 PM, Amir E. Aharoni
<amir.a...@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

Reply all
Reply to author
Forward
0 new messages