Template:Cite GitHub/doc: Difference between revisions
Jump to navigation
Jump to search
add docs Tag: 2017 source edit |
fix params Tag: 2017 source edit |
||
Line 51: | Line 51: | ||
"required": true | "required": true | ||
}, | }, | ||
"hash": { | "retrieved": { | ||
"label": "Retrieved Date", | |||
"description": "The date the file was retrieved. Not necessary if referencing a hash.", | |||
"type": "date", | |||
"suggested": true | |||
}, | |||
"commit": { | |||
"label": "Commit Hash", | "label": "Commit Hash", | ||
"description": "The hash of the commit being referenced. Only required if the type is a commit.", | "description": "The hash of the commit being referenced. Only required if the type is a commit.", | ||
Line 57: | Line 63: | ||
"required": true | "required": true | ||
}, | }, | ||
" | "date": { | ||
"label": " | "label": "Commit Date", | ||
"description": "The day the commit was committed.", | |||
"type": "date" | |||
"description": "The | |||
"type": "date" | |||
} | } | ||
}, | }, | ||
Line 76: | Line 76: | ||
"repo", | "repo", | ||
"type", | "type", | ||
"commit", | "commit", | ||
"retrieved" | "retrieved", | ||
"date" | |||
], | ], | ||
"description": "Cites a GitHub commit or file." | "description": "Cites a GitHub commit or file." | ||
} | } | ||
</templatedata> | </templatedata> |
Latest revision as of 21:44, 14 September 2024
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 |