Template:Citation: Difference between revisions
imported>Jazzhorse (add required / suggested parameters) |
imported>Jazzhorse (update to use lua script instead of template parser functions) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#invoke:Citation|main}} |
|||
{{#if:{{{work|}}}|''{{{work|}}}'': }} |
|||
{{#if:{{{author|}}}|{{{author|}}}, }} |
|||
[{{{url|{{SERVER}}}}} {{{title|No title specified}}}] |
|||
{{#if:{{{date|}}}|, {{{date|}}}}} |
|||
<noinclude> |
<noinclude> |
||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
"params": { |
"params": { |
||
⚫ | |||
"aliases": [ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
"author": { |
"author": { |
||
"suggested": true |
"suggested": true, |
||
"description": "The real name of the person or group who created the media.", |
|||
"example": "Orion Scribner", |
|||
"type": "string" |
|||
}, |
}, |
||
"url": { |
"url": { |
||
"suggested": true |
"suggested": true, |
||
"description": "The location where this media can be viewed on the internet.", |
|||
"example": "https://otherkinnews.dreamwidth.org/87285.html", |
|||
"type": "url" |
|||
}, |
}, |
||
"title": { |
"title": { |
||
"required": true |
"required": true, |
||
"description": "The title of the piece of media.", |
|||
"example": "A Field Guide to Otherkin", |
|||
"type": "string" |
|||
}, |
}, |
||
"date": { |
"date": { |
||
"suggested": true |
"suggested": true, |
||
"description": "The date the media was published.", |
|||
"example": "November 20th, 1994", |
|||
"type": "date" |
|||
⚫ | |||
⚫ | |||
"description": "The publisher of the media.", |
|||
"suggested": true, |
|||
"example": "Megalithica Press", |
|||
"type": "string" |
|||
⚫ | |||
"archiveurl": { |
|||
"description": "If the media is no longer available on the web, an archive url can be specified here. Reblogs on tumblr may be treated as archive urls.", |
|||
"type": "url", |
|||
"example": "https://web.archive.org/web/20160504215324/http://www.wrs.vcu.edu/profiles/Otherkin.htm" |
|||
}, |
|||
"username": { |
|||
"description": "The username of the person who created the media, if applicable. Will be displayed in brackets after Author if that field is filled in too.", |
|||
"example": "vagabondsun", |
|||
"type": "string" |
|||
}, |
|||
"interviewer": { |
|||
"description": "The name of the person conducting an interview - user Author and/or Username for the name of the interviewee.", |
|||
"example": "Anthony Padilla", |
|||
"type": "string" |
|||
}, |
|||
"comment_on": { |
|||
"description": "For reddit comments, reblog replies, quote tweets, forum posts, etc - the title of the media it's responding to.", |
|||
"example": "horses - are we really all that high strung?", |
|||
"type": "string" |
|||
}, |
|||
"comment_url": { |
|||
"description": "For reddit comments, reblog replies, quote tweets, forum posts, etc - the url of the media it's responding to.", |
|||
"example": "https://www.reddit.com/r/Therian/comments/120z6n0/horses_are_we_really_all_that_high_strung/", |
|||
"type": "url" |
|||
}, |
|||
"pages": { |
|||
"description": "For print media, what page(s) the source can be found on.", |
|||
"example": "57-59", |
|||
"type": "number" |
|||
}, |
|||
"timestamp": { |
|||
"description": "For audio/video media, what timestamp the source can be found at.", |
|||
"example": "4:13", |
|||
"type": "number" |
|||
}, |
|||
⚫ | |||
"description": "If the media is part of a greater work (an essay in an anthology, paper in a journal issue, article in a maganize, etc), name it here. For newspapers and sites like that, use Publisher.", |
|||
"type": "string", |
|||
"example": "Inky Paws" |
|||
} |
} |
||
}, |
}, |
||
Line 28: | Line 78: | ||
"title", |
"title", |
||
"author", |
"author", |
||
"username", |
|||
"interviewer", |
|||
"date", |
"date", |
||
"url", |
"url", |
||
"work" |
"work", |
||
"comment_on", |
|||
⚫ | |||
"comment_url", |
|||
"pages", |
|||
"timestamp", |
|||
"publisher", |
|||
"archiveurl" |
|||
⚫ | |||
"description": "This template generates citations for sources. The template is to be placed after the statement it supports; " |
|||
} |
} |
||
</templatedata> |
</templatedata> |
Latest revision as of 19:49, 4 April 2023
No title specified
This template generates citations for sources. The template is to be placed after the statement it supports;
Parameter | Description | Type | Status | |
---|---|---|---|---|
title | title | The title of the piece of media.
| String | required |
author | author | The real name of the person or group who created the media.
| String | suggested |
username | username | The username of the person who created the media, if applicable. Will be displayed in brackets after Author if that field is filled in too.
| String | optional |
interviewer | interviewer | The name of the person conducting an interview - user Author and/or Username for the name of the interviewee.
| String | optional |
date | date | The date the media was published.
| Date | suggested |
url | url | The location where this media can be viewed on the internet.
| URL | suggested |
work | work | If the media is part of a greater work (an essay in an anthology, paper in a journal issue, article in a maganize, etc), name it here. For newspapers and sites like that, use Publisher.
| String | optional |
comment_on | comment_on | For reddit comments, reblog replies, quote tweets, forum posts, etc - the title of the media it's responding to.
| String | optional |
comment_url | comment_url | For reddit comments, reblog replies, quote tweets, forum posts, etc - the url of the media it's responding to.
| URL | optional |
pages | pages | For print media, what page(s) the source can be found on.
| Number | optional |
timestamp | timestamp | For audio/video media, what timestamp the source can be found at.
| Number | optional |
publisher | publisher | The publisher of the media.
| String | suggested |
archiveurl | archiveurl | If the media is no longer available on the web, an archive url can be specified here. Reblogs on tumblr may be treated as archive urls.
| URL | optional |