Template:Cite GitHub: Difference between revisions
Jump to navigation
Jump to search
remove newlines Tag: 2017 source edit |
minor tweaks Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
{{#if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}} }} {{#if: {{{author|}}} | by {{{author}}} }} in {{{org}}}/{{{repo}}} | {{#if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}} }} {{#if: {{{author|}}} | by {{{author}}} }} in {{{org}}}/{{{repo}}} | ||
{{#if: {{{type|}}} | | {{#if: {{{type|}}} | {{#ifeq: {{{type}}}|commit| @ <code>{{{commit|}}}</code>}} }} {{#if: {{{date|}}} | , committed on {{{date}}} }} {{#if: {{{retrieved|}}} | . Retrieved {{{retrieved}}}. }} | ||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 22:09, 9 September 2024
{{{title}}} in {{{org}}}/{{{repo}}}
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 |