Difference between revisions of "Template:Introduction to Algorithms"

From blackwiki
Jump to navigation Jump to search
(Add "style=" parameter to allow CS2 styles, and upgrade documentation of existing parameters)
(Made previous edit actually work, using {{Citation|style=cs1}} rather than {{Cite book}}. I thought {{cite book}} took a style parameter, but no...)
Line 1: Line 1:
{{cite book
+
{{Citation
 
| last1 = Cormen  
 
| last1 = Cormen  
 
| first1 = Thomas H.  
 
| first1 = Thomas H.  
Line 21: Line 21:
 
| chapter = {{{chapter|}}}
 
| chapter = {{{chapter|}}}
 
| ref = {{{ref|}}}
 
| ref = {{{ref|}}}
| style = {{{style|}}}
+
| style = {{{style|cs1}}}
 
}}<noinclude>
 
}}<noinclude>
 
{{cs1 wrapper|base=Cite book}}
 
{{cs1 wrapper|base=Cite book}}

Revision as of 15:50, 1 January 2017

Cormen, Thomas H.; Leiserson, Charles E.; Rivest, Ronald L., Introduction to Algorithms, MIT Press and McGraw-Hill Unknown parameter |style= ignored (help)

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