Editing Template:Cite book
Template page
More actions
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision | Your text | ||
| Line 1: | Line 1: | ||
<noinclude>__NOTOC__ | <includeonly><cite class="book" style="font-style:normal" {{ | ||
#if: {{{ref|}}} | |||
|{{#ifeq:{{{ref}}}|none||id="{{{ref}}}"}} | |||
|{{#if:{{{last|}}} | {{#if:{{{year|}}} | id="Reference-{{{last}}}-{{{year}}}" }} }} | |||
}}>{{ | |||
#if: {{{author|{{{last|}}}}}} | |||
| {{ | |||
#if: {{{authorlink|}}} | |||
| [[{{{authorlink}}}|{{ | |||
#if: {{{last|}}} | |||
| {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }} | |||
| {{{author}}} | |||
}}]] | |||
| {{ | |||
#if: {{{last|}}} | |||
| {{{last}}}{{ #if: {{{first|}}} | , {{{first}}} }} | |||
| {{{author}}} | |||
}} | |||
}} | |||
}}{{ | |||
#if: {{{author|{{{last|}}}}}} | |||
| {{ #if: {{{coauthors|}}} | <nowiki>;</nowiki> {{{coauthors}}} }} | |||
}}{{ | |||
#if: {{{origdate|}}} | |||
|  <nowiki>[</nowiki>{{{origdate}}}] | |||
| {{ | |||
#if: {{{origyear|}}} | |||
| {{ | |||
#if: {{{origmonth|}}} | |||
|  <nowiki>[</nowiki>{{{origmonth}}} {{{origyear}}}] | |||
|  <nowiki>[</nowiki>{{{origyear}}}] | |||
}} | |||
}} | |||
}}{{ | |||
#if: {{{date|}}} | |||
|  ({{{date}}}) | |||
| {{ | |||
#if: {{{year|}}} | |||
| {{ | |||
#if: {{{month|}}} | |||
|  ({{{month}}} {{{year}}}) | |||
|  ({{{year}}}) | |||
}} | |||
}} | |||
}}{{ #if: {{{author|{{{last|}}}}}} | . | |||
}}{{ | |||
#if: {{{chapter|}}} | |||
|  “{{ | |||
#if: {{{chapterurl|}}} | |||
| [{{{chapterurl}}} {{{chapter}}}] | |||
| {{{chapter}}} | |||
}}”,}}{{ | |||
#if: {{{editor|}}} | |||
|  {{{editor}}} | |||
}} ''{{ | |||
#if: {{{url|}}} | [{{{url}}} {{{title}}}] | {{{title}}} | |||
}}''{{ | |||
#if: {{{format|}}} |  ({{{format}}}) | |||
}}{{ | |||
#if: {{{others|}}} | , {{{others}}} | |||
}}{{ | |||
#if: {{{edition|}}} | , {{{edition}}} | |||
}}{{ | |||
#if: {{{language|}}} |  (in {{{language}}}) | |||
}}{{ | |||
#if: {{{publisher|}}} | |||
| {{#if: {{{format|}}}{{{others|}}}{{{edition|}}} | ,  | .  }}{{ | |||
#if: {{{location|}}} | |||
| {{{location}}}:  | |||
}}{{{publisher}}} | |||
}}{{ | |||
#if: {{{doi|}}} | . [[Wikipedia:Digital object identifier|DOI]]:[http://dx.doi.org/{{{doi}}} {{{doi}}}] | |||
}}{{ | |||
#if: {{{id|}}} | . {{{id}}} | |||
}}{{ | |||
#if: {{{pages|}}} | , {{{pages}}} | |||
}}{{ | |||
#if: {{{accessdate|}}} | |||
| . Retrieved on {{{accessdate}}} | |||
| {{ | |||
#if: {{{accessyear|}}} | |||
| . Retrieved {{ | |||
#if: {{{accessmonth|}}} | |||
| on {{{accessmonth}}} {{{accessyear}}} | |||
| during {{{accessyear}}} | |||
}} | |||
}} | |||
}}.{{ #if: {{{quote|}}} | “{{{quote}}}” | |||
}}</cite></includeonly><noinclude> | |||
__NOTOC__ | |||
=Documentation= | =Documentation= | ||
This template is used to [[BW:CITE|cite sources]] in ''Battlestar Wiki''. It is specifically for books. | This template is used to [[BW:CITE|cite sources]] in ''Battlestar Wiki''. It is specifically for books. | ||
| Line 14: | Line 104: | ||
| first = | | first = | ||
| authorlink = | | authorlink = | ||
| coauthors = | | coauthors = | ||
| editor = | | editor = | ||
| Line 47: | Line 136: | ||
last (no wikilink) | last (no wikilink) | ||
last | last | ||
last | |||
| | ||
| | ||
| Line 65: | Line 154: | ||
| | ||
publisher | publisher | ||
| | ||
| | ||
| Line 78: | Line 166: | ||
| first = | | first = | ||
| authorlink = | | authorlink = | ||
| coauthors = | | coauthors = | ||
| year = | | year = | ||
| Line 123: | Line 210: | ||
* '''title''': Title of book. '''''This is the only required parameter.''''' Can be wikilinked '''only''' to an existing ''Battlestar Wiki'' article. Do not use italics. | * '''title''': Title of book. '''''This is the only required parameter.''''' Can be wikilinked '''only''' to an existing ''Battlestar Wiki'' article. Do not use italics. | ||
* '''url''': URL of an online book. Cannot be used if you wikilinked ''title''. | * '''url''': URL of an online book. Cannot be used if you wikilinked ''title''. | ||
** ''' | ** '''format''': Format, i.e. PDF. HTTP implied if not specified. | ||
** '''accessdate''': Full date when item was accessed, in [[Wikipedia:ISO 8601|ISO 8601]] YYYY-MM-DD format, eg. ''2006-02-17''. '''Required when ''url'' field is used.''' Must not be wikilinked. | ** '''accessdate''': Full date when item was accessed, in [[Wikipedia:ISO 8601|ISO 8601]] YYYY-MM-DD format, eg. ''2006-02-17''. '''Required when ''url'' field is used.''' Must not be wikilinked. | ||
*** OR: '''accessyear''': Year when item was accessed, and '''accessmonth''': Month when item was accessed. If you also have the day, use ''accessdate'' instead. Must not be wikilinked. | *** OR: '''accessyear''': Year when item was accessed, and '''accessmonth''': Month when item was accessed. If you also have the day, use ''accessdate'' instead. Must not be wikilinked. | ||
| Line 140: | Line 227: | ||
** '''chapterurl''': URL of an individual chapter of online book. Should be at the same site as ''url'', if any. | ** '''chapterurl''': URL of an individual chapter of online book. Should be at the same site as ''url'', if any. | ||
* '''quote''': Relevant quote from the book. | * '''quote''': Relevant quote from the book. | ||
==Citation styles== | ==Citation styles== | ||
| Line 158: | Line 239: | ||
[[Category:Citation templates|{{PAGENAME}}]] | [[Category:Citation templates|{{PAGENAME}}]] | ||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] | [[Category:Templates using ParserFunctions|{{PAGENAME}}]] | ||
</noinclude> | |||
</noinclude | |||