Template:Introduction to Algorithms: Difference between revisions

Content deleted Content added
Made previous edit actually work, using {{Citation|style=cs1}} rather than {{Cite book}}. I thought {{cite book}} took a style parameter, but no...
add 4th edition, https://mitpress.mit.edu/books/introduction-algorithms-fourth-edition
 
(11 intermediate revisions by 7 users not shown)
Line 1:
{{Cite book
{{Citation
| last1 = Cormen
| first1 = Thomas H.
| author1-link=Thomas H. Cormen
| last2= Leiserson
| first2= Charles E.
| author2-link=Charles E. Leiserson
| last3= Rivest
| first3= Ronald L.
| author3-link=Ron Rivest
| last4= {{ #ifexpr: {{{edition|{{{1|0}}}}}}>1 | Stein }}
| first4= {{ #ifexpr: {{{edition|{{{1|0}}}}}}>1 | Clifford }}
| author4-link= {{ #ifexpr: {{{edition|{{{1|0}}}}}}>1 | Clifford Stein }}
| title = {{ #ifeq: {{{notitlelink}}}| 1 | Introduction to Algorithms | [[Introduction to Algorithms]] }}
| origyear title-link= {{ #ifexprifeq: {{{edition|{{{1|0notitlelink}}}}}}>| 1 | 1990| Introduction to Algorithms }}
| orig-year = {{ #switchifexpr: {{{edition|{{{1|0}}}}}}>1 | 1=1990 | 2=2001 | 3=2009}}
| edition year= {{ #switch: {{{edition|{{{1}}}}}} | 1=1st1990 | 2=2nd2001 | 3=3rd2009 | 4=2022}}
| isbn edition= {{ #switch: {{{edition|{{{1}}}}}} | 1=0-262-03141-81st | 2=0-262-03293-72nd | 3=0-262-03384-3rd | 4=4th}}
| publisher = MIT Press and McGraw-Hill
| isbn = {{ #switch: {{{edition|{{{1}}}}}} | 1=0-262-03141-8 | 2=0-262-03293-7 | 3=0-262-03384-4}}
|isbn={{ #switch: {{{edition|{{{1}}}}}} | 1=0-262-03141-8 | 2=0-262-03293-7 | 3=0-262-03384-4 | 4=0-262-04630-X}}
| pages = {{{pages|}}}
| chapter pages= {{{chapterpages|}}}
| ref chapter= {{{refchapter|}}}
| style mode= {{{stylemode|cs1}}}
|ref={{{ref|}}}
}}<noinclude>
{{Documentation}}</noinclude>
{{cs1 wrapper|base=Cite book}}
<templatedata>
{
"params": {
"edition": {
"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": {
"description": "Passed through to {{cite book}}.",
"type": "line",
"example": "harv"
},
"style": {
"description": "Passed through to {{cite book}}; Specify style=cs2 if that is preferred.",
"example": "cs1",
"type": "line",
"example": "cs2"
}
},
"description": "Inserts a [[Help:Citation Style 1|CS1]] reference to ''[[Introduction to Algorithms]]'' by Cormen, Leiserson, Rivest and Stein (CLR, or CLRS, depending on edition).",
"format": "inline"
}
</templatedata>
 
[[Category:Mathematics source templates|{{PAGENAME}}]]
</noinclude>