Difference between revisions of "Template:GitHub"

From blackwiki
Jump to navigation Jump to search
imported>Technical 13
(If you want to change the text label, please achieve a consensus on the talk page and not everyone uses or likes https and it shouldn't be forced on users.)
imported>Technical 13
(create a /doc page)
Line 1: Line 1:
[{{#ifeq: {{str left|{{{1|{{{url}}}}}}|4}} | http |{{{url}}}|https://github.com/{{{1}}}}} {{{label|{{{2|{{#titleparts:{{{1|GitHub page}}}|1|-1}}}}}}}}]<noinclude>{{doc|content=
+
[{{#ifeq: {{str left|{{{1|{{{url}}}}}}|4}} | http |{{{url}}}|https://github.com/{{{1}}}}} {{{label|{{{2|{{#titleparts:{{{1|GitHub page}}}|1|-1}}}}}}}}]<noinclude>{{Documentation}}</noinclude>
 
 
== Example ==
 
* {{tlx|GitHub|RDFLib/rdflib|RDFLib}} {{arrow}} {{GitHub|RDFLib/rdflib|RDFLib}}
 
 
 
[[Category:External link templates]]
 
 
 
}}</noinclude>
 

Revision as of 15:44, 20 November 2014

GitHub page

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

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
  • {{GitHub|RDFLib/rdflib|RDFLib}}RDFLib
  • {{GitHub|RDFLib/rdflib|RDFLib|link=no}}RDFLib
  • {{GitHub|RDFLib/rdflib|RDFLib|link=hidden}}RDFLib
  • {{GitHub|https://github.com/RDFLib/rdflib}} → [{{{url}}} rdflib]
  • {{GitHub|https://github.com/RDFLib/rdflib/blob/master/rdflib/compare.py}} → [{{{url}}} compare.py]

See also

Template:Wikidata property