Template:GitHub: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Create "Template:GitHub" for quick linking to repos or source files on GitHub
imported>AntumDeluge
Link to "Category:RefactoringTemplates" under "See Also" section & clarify usage
 
(5 intermediate revisions by the same user not shown)
Line 9: Line 9:
== Usage ==
== Usage ==


<span style="font-family:monospace;font-size:20px;border:solid 2px;border-color:lightgray;"><nowiki>{{GitHub|user/org|[repo]|[branch/tag/commit]|[file]|[text]}}</nowiki></span>
* <span style="font-family:monospace;font-size:14px;border:solid 2px;border-color:lightgray;font-weight:bold;"><nowiki>{{GitHub|name|[repo|[branch/tag/commit|[file]]]|[text]}}</nowiki></span>

=== Arguments ===


{| class="wikitable"
{| class="wikitable"
! Argument || Description
! Argument || Required || Description
|-
|-
| user/org || User or organization name.
| name || {{status|check}} || User or organization name.
|-
|-
| repo || Repository name.
| repo || || Repository name.
|-
|-
| branch/tag/commit || Branch name or tag/commit ID.
| branch/tag/commit || || Branch name or tag/commit ID.
|-
|-
| file || Relative path to file.
| file || || Relative path to file.
|-
|-
| text || Alternate text to display.
| text || || Alternate text to display.
|}
|}


Line 49: Line 51:
== See Also ==
== See Also ==


* [[Templates|List of templates]]
* [[Special:WhatLinksHere/Template:{{PAGENAME}} | Pages using Template:{{PAGENAME}}]]
* [[:Category:RefactoringTemplates|List of refactoring templates]]




[[Category:Stendhal]]
[[Category:Stendhal]]
[[Category:Development]]
[[Category:Development]]
[[Category:RefactoringTemplates]]
</noinclude>