Difference between revisions of "Template:Introduction to Algorithms"
Jump to navigation
Jump to search
imported>Pigsonthewing (ce) |
(Add "style=" parameter to allow CS2 styles, and upgrade documentation of existing parameters) |
||
| Line 21: | Line 21: | ||
| chapter = {{{chapter|}}} | | chapter = {{{chapter|}}} | ||
| ref = {{{ref|}}} | | ref = {{{ref|}}} | ||
| + | | style = {{{style|}}} | ||
}}<noinclude> | }}<noinclude> | ||
{{cs1 wrapper|base=Cite book}} | {{cs1 wrapper|base=Cite book}} | ||
| Line 26: | Line 27: | ||
{ | { | ||
"params": { | "params": { | ||
| − | |||
"edition": { | "edition": { | ||
| − | "description": "Edition number: 1, 2, or 3." | + | "description": "Edition number: 1, 2, or 3. Controls display of edition number, ISBN, and fourth author. May also be passed as the first unnamed parameter.", |
| + | "suggested": true, | ||
| + | "type": "number", | ||
| + | "autovalue": "3", | ||
| + | "aliases": [ "1" ] | ||
| + | }, | ||
| + | "notitlelink": { | ||
| + | "description": "If value is non-empty, do not link the title to the Wikipedia article about the book.", | ||
| + | "example": "y" | ||
| + | }, | ||
| + | "pages": { | ||
| + | "description": "Passed through to {{cite book}}.", | ||
| + | "type": "line" | ||
| + | }, | ||
| + | "chapter": { | ||
| + | "description": "Passed through to {{cite book}}." | ||
}, | }, | ||
| − | |||
| − | |||
| − | |||
"ref": { | "ref": { | ||
| + | "description": "Passed through to {{cite book}}.", | ||
| + | "type": "line", | ||
"example": "harv" | "example": "harv" | ||
| + | }, | ||
| + | "style": { | ||
| + | "description": "Passed through to {{cite book}}; Specify style=cs2 if that is preferred.", | ||
| + | "example": "cs1", | ||
| + | "type": "line", | ||
| + | "example": "cs2" | ||
} | } | ||
}, | }, | ||
Revision as of 15:44, 1 January 2017
Cormen, Thomas H.; Leiserson, Charles E.; Rivest, Ronald L. Introduction to Algorithms. MIT Press and McGraw-Hill.
| This template is a Citation Style 1 wrapper template based on {{Cite book}}. For centralised Citation Style 1 discussions, see Help talk:Citation Style 1. |
Inserts a [[Help:Citation Style 1|CS1]] reference to ''[[Introduction to Algorithms]]'' by Cormen, Leiserson, Rivest and Stein (CLR, or CLRS, depending on edition).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Edition | edition 1 | Edition number: 1, 2, or 3. Controls display of edition number, ISBN, and fourth author. May also be passed as the first unnamed parameter.
| Number | suggested |
| Notitlelink | notitlelink | If value is non-empty, do not link the title to the Wikipedia article about the book.
| Unknown | optional |
| Pages | pages | Passed through to {{cite book}}. | Line | optional |
| Chapter | chapter | Passed through to {{cite book}}. | Unknown | optional |
| Ref | ref | Passed through to {{cite book}}.
| Line | optional |
| Style | style | Passed through to {{cite book}}; Specify style=cs2 if that is preferred.
| Line | optional |