Difference between revisions of "Template:Introduction to Algorithms"

From blackwiki
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": {
"1": {},
 
 
"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}}."
 
},
 
},
"notitlelink": {},
 
"pages": {},
 
"chapter": {},
 
 
"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.

Inserts a [[Help:Citation Style 1|CS1]] reference to ''[[Introduction to Algorithms]]'' by Cormen, Leiserson, Rivest and Stein (CLR, or CLRS, depending on edition).

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Editionedition 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.

Auto value
3
Numbersuggested
Notitlelinknotitlelink

If value is non-empty, do not link the title to the Wikipedia article about the book.

Example
y
Unknownoptional
Pagespages

Passed through to {{cite book}}.

Lineoptional
Chapterchapter

Passed through to {{cite book}}.

Unknownoptional
Refref

Passed through to {{cite book}}.

Example
harv
Lineoptional
Stylestyle

Passed through to {{cite book}}; Specify style=cs2 if that is preferred.

Example
cs2
Lineoptional