Difference between revisions of "Template:GoogleCodeDownload"

From RobotX
Jump to navigation Jump to search
Mediawiki>Shirayuki
(translation tweaks)
 
m (Text replacement - "</>" to "")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages/>
 
<languages/>
</noinclude>{{#switch:<translate></translate>
+
</noinclude>{{#switch:
 
| =
 
| =
[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/ <translate><!--T:1--> Project page</translate>]<br />{{#if:{{{snapshot|}}}|[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/downloads/list '''<translate><!--T:2--> Download snapshot</translate>''']<br />|}}{{#switch: {{{vcs|}}} |svn=[http://{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}.googlecode.com/svn/trunk/ Subversion] <sup>[<span></span>[[Special:MyLanguage/Subversion|<translate><!--T:3--> Help</translate>]]]</sup> |git=[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/source/checkout Git] <sup>[<span></span>[[Special:MyLanguage/Git#Working_with_Git|<translate><!--T:4--> Help</translate>]]]</sup> |mercurial=[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/source/checkout Mercurial] <sup>[<span></span>[http://mercurial.selenic.com/wiki/BeginnersGuides <translate><!--T:5--> Help</translate>]]</sup> |#default=[http://{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}.googlecode.com/svn/trunk/ Subversion] <sup>[<span></span>[[Special:MyLanguage/Subversion|<translate><!--T:6--> Help</translate>]]]</sup>}}<br />
+
[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/ Project page]<br />{{#if:{{{snapshot|}}}|[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/downloads/list ''' Download snapshot''']<br />|}}{{#switch: {{{vcs|}}} |svn=[http://{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}.googlecode.com/svn/trunk/ Subversion] <sup>[<span></span>[[Special:MyLanguage/Subversion| Help]]]</sup> |git=[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/source/checkout Git] <sup>[<span></span>[[Special:MyLanguage/Git#Working_with_Git| Help]]]</sup> |mercurial=[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/source/checkout Mercurial] <sup>[<span></span>[http://mercurial.selenic.com/wiki/BeginnersGuides Help]]</sup> |#default=[http://{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}.googlecode.com/svn/trunk/ Subversion] <sup>[<span></span>[[Special:MyLanguage/Subversion| Help]]]</sup>}}<br />
[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/source/browse/ <translate><!--T:7--> Browse source code</translate>]<br />
+
[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/source/browse/ Browse source code]<br />
[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/source/list <translate><!--T:8--> View code changes</translate>]<br />
+
[http://code.google.com/p/{{{1|{{IfNotTranslation|{{PAGENAME}}|{{BASEPAGENAME}}}}}}}/source/list View code changes]<br />
<small>''{{Note }} <translate><!--T:9--> No [[<tvar|localisation>Special:MyLanguage/Localisation#Translation resources</>|localisation]] updates provided by <tvar|twn>{{ll|translatewiki.net}}</>.</translate>''</small>
+
<small>''{{Note }} No [[<tvar|localisation>Special:MyLanguage/Localisation#Translation resources|localisation]] updates provided by <tvar|twn>{{ll|translatewiki.net}}.''</small>
 
| #default=
 
| #default=
 
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:GoogleCodeDownload|noshift=1}}
 
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:GoogleCodeDownload|noshift=1}}

Latest revision as of 15:53, 21 December 2019


Project page
Subversion [ Help]
Browse source code
View code changes
Note  Note: No [[<tvar|localisation>Special:MyLanguage/Localisation#Translation resources|localisation]] updates provided by <tvar

Template documentation[view] [edit] [history] [purge]

Usage

Transclude the template inside an Extension article to create Google Code Subversion links. It is specifically designed to provide links for the download argument used in Template:Extension and categorizes into Category:Extensions in Google Code version control.

e.g. {{TNT|GoogleCodeDownload|SyntaxHighlight_GeSHi}}

  • Note: Spaces must be padded with '_' underscores.

To show the link to the files/snapshot, add the snapshot=1 parameter. This is useful when an package the extension as a download.

e.g. {{TNT|GoogleCodeDownload|SyntaxHighlight_GeSHi|snapshot=1}}

Version control systems support

This template supports multipul forms of the VCS options that Google Code support, to use this, activate the |vcs= parameter. The available options are:

See also