Difference between revisions of "Template:Introduction to Algorithms/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>David Eppstein
(sandbox invoke version)
 
imported>Trappist the monk
m (generic wrapper module;)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#invoke:Citation/CS1/Wrapper|cs1_wrapper
+
{{#invoke:Template wrapper|wrap
|template=cite book  
+
|_template=cite book  
 
| last1 = Cormen  
 
| last1 = Cormen  
 
| first1 = Thomas H.  
 
| first1 = Thomas H.  
Line 10: Line 10:
 
| first3= Ronald L.
 
| first3= Ronald L.
 
| author3-link=Ron Rivest
 
| author3-link=Ron Rivest
| last4= {{ #ifexpr: {{{edition|{{{1|0}}}}}}>1 | Stein }}  
+
| last4= {{ #ifexpr: {{{_edition|{{{1|0}}}}}}>1 | Stein }}  
| first4= {{ #ifexpr: {{{edition|{{{1|0}}}}}}>1 | Clifford }}  
+
| first4= {{ #ifexpr: {{{_edition|{{{1|0}}}}}}>1 | Clifford }}  
| author4-link= {{ #ifexpr: {{{edition|{{{1|0}}}}}}>1 | Clifford Stein }}  
+
| author4-link= {{ #ifexpr: {{{_edition|{{{1|0}}}}}}>1 | Clifford Stein }}  
| title = {{ #ifeq: {{{notitlelink}}}| 1 | Introduction to Algorithms | [[Introduction to Algorithms]] }}
+
| title = Introduction to Algorithms
| origyear = {{ #ifexpr: {{{edition|{{{1|0}}}}}}>1 | 1990 }}  
+
|title-link=Introduction to Algorithms
| year = {{ #switch: {{{edition|{{{1}}}}}} | 1=1990 | 2=2001 | 3=2009}}  
+
| origyear = {{ #ifexpr: {{{_edition|{{{1|0}}}}}}>1 | 1990 }}  
| edition = {{ #switch: {{{edition|{{{1}}}}}} | 1=1st | 2=2nd | 3=3rd}}  
+
| year = {{ #switch: {{{_edition|{{{1}}}}}} | 1=1990 | 2=2001 | 3=2009}}  
 +
| edition = {{ #switch: {{{_edition|{{{1}}}}}} | 1=1st | 2=2nd | 3=3rd}}  
 
| publisher = MIT Press and McGraw-Hill  
 
| 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}}  
 
}}<noinclude>
 
}}<noinclude>
{{cs1 wrapper|base=Cite book}}
+
{{documentation}}</noinclude>
 
 
== TemplateData ==
 
{{TemplateData header}}
 
<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"
 
}
 
},
 
"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>
 

Latest revision as of 11:26, 13 February 2018

Cormen, Thomas H.; Leiserson, Charles E.; Rivest, Ronald L. Introduction to Algorithms. MIT Press and McGraw-Hill.

50px Template documentation[view] [edit] [history] [purge]

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Introduction to Algorithms

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