Difference between revisions of "Template:Git"

From Hercules Wiki
Jump to: navigation, search
m (Changing Doc to doc includes the correct documentation templates.)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
[https://github.com/HerculesWS/Hercules/blob/master/{{{1|}}} {{{1|}}}]<noinclude>
+
[https://github.com/HerculesWS/Hercules/blob/master/{{{1|}}} {{#ifeq: {{{2|}}} | full | https://github.com/HerculesWS/Hercules/blob/master/ | }}{{{1|}}}]<noinclude>
{{Documentation}}<!-- ADD CATEGORIES ON DOCUMENTATION PAGE, NOT HERE -->
+
{{documentation}}<!-- ADD CATEGORIES ON DOCUMENTATION PAGE, NOT HERE -->
 
</noinclude>
 
</noinclude>

Latest revision as of 01:07, 29 May 2013

[1]

[edit]Template Documentation

The {{git}} template is a simple template used to display hyperlinks to the Hercules Git repository, currently hosted at GitHub.

It should be used whenever a link to Git repository is required in text.

Do not subst this template.

Contents

Usage

Optional first parameter will be added to the base url, making it possible to link to files or directories. It will be also used as visible name in the link.

For example, {{git|LICENSE}} will display as LICENSE.


Optional second parameter full indicates that a full link should be displayed.

Examples: