Template:Cite GitHub: Difference between revisions
Jump to navigation
Jump to search
initial cite github template Tag: 2017 source edit |
m remove some spaces Tag: 2017 source edit |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}} }} | {{#if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}} }} {{#if: {{{author|}}} | by {{{author}}} }} in {{{org}}}/{{{repo}}} | ||
{{#if: {{{author|}}} | by {{{author}}} }} | {{#if: {{{type|}}} | {{#ifeq: {{{type}}}|commit| @ <code>{{{commit|}}}</code>}} }} {{#if: {{{date|}}} |, committed on {{{date}}} }} {{#if: {{{retrieved|}}} |. Retrieved {{{retrieved}}}. }} | ||
in {{{org}}}/{{{repo}}} | <noinclude> | ||
{{#if: {{{type|}}} | | {{Documentation}} | ||
. Retrieved {{{retrieved}}}. | </noinclude> |
Latest revision as of 03:04, 31 December 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 |