Difference between revisions of "Template:Commit"

From NetHackWiki
Jump to navigation Jump to search
(Also, the word "commit" seems to be redundant. Excise it.)
(make the default link title "commit <first 8 characters of hash>")
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly><abbr title="{{{1}}}">{{{2}}}</abbr></includeonly></onlyinclude>
+
<onlyinclude><includeonly>[https://github.com/NetHack/NetHack/commit/{{{1}}} {{{2|commit {{padleft:|8|{{{1}}}}}}}}]</includeonly></onlyinclude>
 
<noinclude>
 
<noinclude>
This template is intended for creating links directly to individual commits in the public source repository. (However, currently it only displays the commit hash, because the repository does not appear to be viewable in a web browser.)
+
This template is intended for creating links directly to individual commits in the public source repository.
 +
 
 +
=== Usage ===
 +
<nowiki>
 +
{{commit|fullhash|link title}}
 +
</nowiki>
 +
 
 
</noinclude>
 
</noinclude>

Latest revision as of 04:25, 8 August 2022


This template is intended for creating links directly to individual commits in the public source repository.

Usage

{{commit|fullhash|link title}}