Template:Cite GitHub: Difference between revisions
Jump to navigation
Jump to search
initial cite github template Tag: 2017 source edit |
add documentation Tag: 2017 source edit |
||
Line 4: | Line 4: | ||
{{#if: {{{type|}}} | @ {{#if: {{{hash|}}} | {{{hash}}} | <code>{{{commit|}}}</code> }} on GitHub }} | {{#if: {{{type|}}} | @ {{#if: {{{hash|}}} | {{{hash}}} | <code>{{{commit|}}}</code> }} on GitHub }} | ||
. Retrieved {{{retrieved}}}. | . Retrieved {{{retrieved}}}. | ||
<noinclude> | |||
{{Documentation}} | |||
</noinclude> |
Revision as of 21:50, 9 September 2024
{{{title}}}
in {{{org}}}/{{{repo}}}
. Retrieved {{{retrieved}}}.
Cite GitHub.
Use this to Cite GitHub.
TemplateData
Cites a GitHub commit or file.
Parameter | Description | Type | Status | |
---|---|---|---|---|
URL | url | The URL to the resource.
| URL | required |
Title | title | The title of the file, commit, etc.
| String | required |
Author | author | The author of the commit, if applicable. | String | optional |
Org/User | org | Org/User of Repo
| String | required |
Repository Name | repo | The name of the repository being cited.
| String | required |
Type | type | The type of thing being cited. Currently just a commit or file.
| String | required |
Commit Hash | commit | The hash of the commit being referenced. Only required if the type is a commit. | String | required |
Retrieved Date | retrieved | The date the file was retrieved. Not necessary if referencing a hash. | Date | suggested |
Commit Date | date | The day the commit was committed. | Date | optional |