Template:GitHub: Difference between revisions
From Vigyanwiki
m (Protected "Template:GitHub": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefi...) |
(Created page with "[{{#if:{{#invoke:String|match|{{{1|{{{url}}}}}}|^https?://|plain=0|ignore_errors=1}}||https://github.com/}}{{#if:1|{{{url|{{{1}}}}}}}} {{If empty|{{{label|{{{2|}}}}}}|{{#title...") |
(No difference)
|
Revision as of 15:03, 11 August 2022
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}}
→ rdflib on GitHub{{GitHub|RDFLib/rdflib|RDFLib}}
→ RDFLib on GitHub{{GitHub|RDFLib/rdflib|RDFLib|link=no}}
→ RDFLib on GitHub{{GitHub|RDFLib/rdflib|RDFLib|link=hidden}}
→ RDFLib{{GitHub|https://github.com/RDFLib/rdflib}}
→ rdflib on GitHub{{GitHub|https://github.com/RDFLib/rdflib/blob/master/rdflib/compare.py}}
→ compare.py on GitHub
See also
- {{Openhub}}
- {{SourceForge}}