Changes
Template:Git summary/doc (view source)
Revision as of 22:22, 15 October 2014
, 22:22, 15 October 2014no edit summary
<noinclude>{{Documentation subpage}}
{{timw|{{BASEPAGENAME}}}}
</noinclude>
<templatedata>
{
"description": "Generate a link to a repository's summary page on git.wikimedia.org, our Gitblit server.",
"params": {
"1": {
"label": "Repository name",
"description": "Name of the repository on git.wikimedia.org",
"type": "string",
"required": true
},
"2": {
"label": "Label",
"description": "Label text of the link",
"type": "string",
"default": "Repository name"
},
"3": {
"label": "Repository parent",
"description": "Parent path to repository",
"type": "string",
"default": "mediawiki/extensions/"
}
}
}
</templatedata>
==Example==
{{tlx|Git_summary|examples}}
: {{Git_summary|examples}}
If the repo is not in mediawiki/extensions then you have to provide a path (the third parameter), for example:
{{tlx|Git_summary|vagrant|MW-Vagrant|mediawiki}}
: {{Git_summary|vagrant|MW-Vagrant|mediawiki}}
{{tlx|git summary|jenkins-job-builder-config| |integration}}<!-- bug in tlx, doesn't handle empty param-->
: {{git summary|jenkins-job-builder-config| |integration}}
==See also==
* {{tl|Git file}}, a richer template.
* {{tl|Gitweb}}, the old template that links to gerrit/gitweb. This uses the same syntax (positional and biased towards extensions).
<includeonly>
<!-- PUT HERE THE CATEGORIES OF THE TEMPLATE -->
[[Category:Extension templates]]
[[Category:Link templates]]
[[Category:Git]]
</includeonly>
{{timw|{{BASEPAGENAME}}}}
</noinclude>
<templatedata>
{
"description": "Generate a link to a repository's summary page on git.wikimedia.org, our Gitblit server.",
"params": {
"1": {
"label": "Repository name",
"description": "Name of the repository on git.wikimedia.org",
"type": "string",
"required": true
},
"2": {
"label": "Label",
"description": "Label text of the link",
"type": "string",
"default": "Repository name"
},
"3": {
"label": "Repository parent",
"description": "Parent path to repository",
"type": "string",
"default": "mediawiki/extensions/"
}
}
}
</templatedata>
==Example==
{{tlx|Git_summary|examples}}
: {{Git_summary|examples}}
If the repo is not in mediawiki/extensions then you have to provide a path (the third parameter), for example:
{{tlx|Git_summary|vagrant|MW-Vagrant|mediawiki}}
: {{Git_summary|vagrant|MW-Vagrant|mediawiki}}
{{tlx|git summary|jenkins-job-builder-config| |integration}}<!-- bug in tlx, doesn't handle empty param-->
: {{git summary|jenkins-job-builder-config| |integration}}
==See also==
* {{tl|Git file}}, a richer template.
* {{tl|Gitweb}}, the old template that links to gerrit/gitweb. This uses the same syntax (positional and biased towards extensions).
<includeonly>
<!-- PUT HERE THE CATEGORIES OF THE TEMPLATE -->
[[Category:Extension templates]]
[[Category:Link templates]]
[[Category:Git]]
</includeonly>