Difference between revisions of "Template:GitHub/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(11 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 +
{{Lua|Module:String}}
 
== Usage ==
 
== Usage ==
Used to create a link to a repository or a single file on [[GitHub]]
+
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 {{Para|link|no}}, and the mentioning of GitHub can be omitted entirely with {{Para|link|hidden}}.
  
== Example ==
+
== Examples ==
* {{Tlx|GitHub|RDFLib/rdflib|RDFLib repository on GitHub}} {{arrow}} {{GitHub|RDFLib/rdflib|RDFLib repository on GitHub}}
+
* {{#invoke:DemoTemplate|{{BASEPAGENAME}}|RDFLib/rdflib}}
* {{Tlx|GitHub|<nowiki>http://github.com/RDFLib/rdflib</nowiki>}} {{arrow}} {{GitHub|http://github.com/RDFLib/rdflib}}
+
* {{#invoke:DemoTemplate|{{BASEPAGENAME}}|RDFLib/rdflib|RDFLib}}
* {{Tlx|GitHub|<nowiki>https://github.com/RDFLib/rdflib/blob/master/rdflib/compare.py</nowiki>}} {{arrow}} {{GitHub|https://github.com/RDFLib/rdflib/blob/master/rdflib/compare.py}}
+
* {{#invoke:DemoTemplate|{{BASEPAGENAME}}|RDFLib/rdflib|RDFLib|link=no}}
 +
* {{#invoke:DemoTemplate|{{BASEPAGENAME}}|RDFLib/rdflib|RDFLib|link=hidden}}
 +
* {{#invoke:DemoTemplate|{{BASEPAGENAME}}|https://github.com/RDFLib/rdflib}}
 +
* {{#invoke:DemoTemplate|{{BASEPAGENAME}}|https://github.com/RDFLib/rdflib/blob/master/rdflib/compare.py}}
  
 
== See also ==
 
== See also ==
*{{tl|Github}}
+
{{Wikidata property|1=P2037}}
 +
* {{Tl|Openhub}}
 +
* {{Tl|SourceForge}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:External link templates]]
+
[[Category:Software external link templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 15:26, 25 April 2020

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

See also

Template:Wikidata property