Difference between revisions of "Template:Github/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
(language links)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
==Description==
+
== Description ==
This template creates a link to a GitHub repository or profile page.
+
This template creates a link to a GitHub repository or profile page. This lets users add external links to GitHub or edit pages that contain them without issue.
  
==Usage==
+
== Usage ==
<pre>
+
{| class="wikitable"
* Naked URL: {{github|Pathoschild/SMAPI}}
+
|-
* Link text: {{github|Pathoschild/SMAPI|source}}
+
! Usage
</pre>
+
! Code
 
+
! Result
* Naked URL: {{github|Pathoschild/SMAPI}}
+
|-
* Link text: {{github|Pathoschild/SMAPI|source}}
+
| Naked URL
<noinclude>[[Category:Template documentation]]</noinclude>
+
| <pre>{{Github|Pathoschild/SMAPI}}</pre>
<includeonly>[[de:Vorlage:{{PAGENAME}}]]
+
| {{Github|Pathoschild/SMAPI}}
[[es:Plantilla:{{PAGENAME}}]]
+
|-
[[ja:テンプレート:{{PAGENAME}}]]
+
| Link Text
[[pt:Predefinição:{{PAGENAME}}]]
+
| <pre>{{Github|Pathoschild/SMAPI|source}}</pre>
[[ru:Шаблон:{{PAGENAME}}]]
+
| {{Github|Pathoschild/SMAPI|source}}
[[zh:Template:{{PAGENAME}}]]</includeonly>
+
|}<includeonly>{{Addlanglinks}}[[Category:Modding templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 22:14, 8 January 2023

Description

This template creates a link to a GitHub repository or profile page. This lets users add external links to GitHub or edit pages that contain them without issue.

Usage

Usage Code Result
Naked URL
{{Github|Pathoschild/SMAPI}}
https://github.com/Pathoschild/SMAPI
Link Text
{{Github|Pathoschild/SMAPI|source}}
source