Difference between revisions of "Template:Github"

From postmarketOS
Jump to navigation Jump to search
(Add template for linking to github issues/PRs)
 
(Fix resulting links)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>{{Template:Template}}{{DISPLAYTITLE:Template:github}}
 
<noinclude>{{Template:Template}}{{DISPLAYTITLE:Template:github}}
  
Link to a GitHub issue or pull request by specifying <code>project</code> (defaults to [https://github.com/postmarketOS postmarketOS]), <code>repository</code> (defaults to [https://github.com/postmarketOS/pmbootstrap pmbootstrap]) and <code>id</code>.
+
Link to a GitHub issue or pull request by specifying:
 +
* <code>id</code> of the issue/pull-request
 +
* <code>repository</code> (defaults to [https://github.com/postmarketOS/pmbootstrap pmbootstrap])
 +
* <code>project</code> (defaults to [https://github.com/postmarketOS postmarketOS])
  
 
==Usage==
 
==Usage==
 
+
  <nowiki>{{github|id|repository|project}}</nowiki>
<nowiki>{{github|1}}</nowiki>
 
 
 
<nowiki>{{github|1|osk-sdl}}</nowiki>
 
 
 
<nowiki>{{github|1092|aports|alpinelinux}}</nowiki>
 
  
 
==Example==
 
==Example==
  
 +
<nowiki>{{github|1}}</nowiki>
 
{{github|1}}
 
{{github|1}}
  
 +
<nowiki>{{github|1|osk-sdl}}</nowiki>
 
{{github|1|osk-sdl}}
 
{{github|1|osk-sdl}}
  
 +
<nowiki>{{github|1092|aports|alpinelinux}}</nowiki>
 
{{github|1092|aports|alpinelinux}}
 
{{github|1092|aports|alpinelinux}}
  
</noinclude><includeonly>[https://github.com/{{{3|postmarketOS}}}/{{{2|pmbootstrap}}}/{{{1}}} {{{2|}}}#{{{1}}}]</includeonly>
+
</noinclude><includeonly>[https://github.com/{{{3|postmarketOS}}}/{{{2|pmbootstrap}}}/issues/{{{1}}} {{{2|}}}#{{{1}}}]</includeonly>

Latest revision as of 00:27, 22 October 2017

This page is a template. It contains no postmarketOS-related information, but should be used as part of other articles.

Check out all pages using this template and feel free to discuss it in the gitlab issues.

For more information, read Templates and Template:Template.

Link to a GitHub issue or pull request by specifying:

Usage

 {{github|id|repository|project}}

Example

{{github|1}}

#1

{{github|1|osk-sdl}}

osk-sdl#1

{{github|1092|aports|alpinelinux}}

aports#1092