Difference between revisions of "Template:GitHub"
Jump to navigation
Jump to search
imported>Dsimic |
imported>Kanashimi (I miss the link. But I think it;s easy to find it...) |
||
Line 1: | Line 1: | ||
− | [{{#if:{{#invoke:String|match|{{{1|{{{url}}}}}}|^https?://|plain=0|ignore_errors=1}}||https://github.com/}}{{#if:1|{{{url|{{{1}}}}}}}} {{If empty|{{{label|{{{2|}}}}}}|{{#titleparts:{{{1}}}|1|-1}}}}] | + | [{{#if:{{#invoke:String|match|{{{1|{{{url}}}}}}|^https?://|plain=0|ignore_errors=1}}||https://github.com/}}{{#if:1|{{{url|{{{1}}}}}}}} {{If empty|{{{label|{{{2|}}}}}}|{{#titleparts:{{{1}}}|1|-1}}}}] {{#switch:{{{link}}} |
− | |GitHub | + | |hidden= |
− | |[[GitHub]] | + | |no=on GitHub |
+ | |on [[GitHub]] | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> |
Revision as of 15:41, 4 April 2016
Script error: No such module "If empty". on GitHub
![]() | This template uses Lua: |
Usage
This template can be used to create a link to a repository or a single file on GitHub. The link to GitHub can be suppressed with the parameter |link=no
, and the mentioning of GitHub can be omitted entirely with |link=hidden
.
Examples
{{GitHub|RDFLib/rdflib}}
→ Script error: No such module "If empty". on GitHub{{GitHub|RDFLib/rdflib|RDFLib}}
→ Script error: No such module "If empty". on GitHub{{GitHub|RDFLib/rdflib|RDFLib|link=no}}
→ Script error: No such module "If empty". on GitHub{{GitHub|RDFLib/rdflib|RDFLib|link=hidden}}
→ Script error: No such module "If empty".{{GitHub|https://github.com/RDFLib/rdflib}}
→ Script error: No such module "If empty". on GitHub{{GitHub|https://github.com/RDFLib/rdflib/blob/master/rdflib/compare.py}}
→ Script error: No such module "If empty". on GitHub
See also
- {{Openhub}}
- {{SourceForge}}
The above documentation is transcluded from Template:GitHub/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |