Difference between revisions of "Template:Cite EWD"
Jump to navigation
Jump to search
imported>Jimw338 m (added link to EWD archive itself) |
(Add optional "quote" parameter. And move URL into main citation; the parser error appears to have gone away.) |
||
Line 1: | Line 1: | ||
<includeonly>{{cite book | <includeonly>{{cite book | ||
| last = Dijkstra | | last = Dijkstra | ||
− | | first = Edsger W | + | | first = Edsger W. |
| authorlink = Edsger W. Dijkstra | | authorlink = Edsger W. Dijkstra | ||
| title = {{#if:{{{2|}}}| {{{ 2 }}} (EWD-{{{ 1 }}}) | EWD-{{{ 1 }}} }} | | title = {{#if:{{{2|}}}| {{{ 2 }}} (EWD-{{{ 1 }}}) | EWD-{{{ 1 }}} }} | ||
+ | | url = http://www.cs.utexas.edu/users/EWD/ewd{{Cite EWD/forxx | {{{1}}} }}xx/EWD{{{1}}}.PDF | ||
| publisher = Center for American History, [[University of Texas at Austin]] | | publisher = Center for American History, [[University of Texas at Austin]] | ||
| series = E.W. Dijkstra Archive | | series = E.W. Dijkstra Archive | ||
− | + | | quote = {{{quote|}}} | |
+ | }} ([http://www.cs.utexas.edu/users/EWD/transcriptions/EWD{{Cite EWD/forxx | {{{1}}} }}xx/EWD{{{1}}}.html transcription])</includeonly><noinclude> | ||
<!-- The includeonly element is used because without it, an expression parsing error is reported; but the template works as designed. --> | <!-- The includeonly element is used because without it, an expression parsing error is reported; but the template works as designed. --> | ||
− | |||
− | |||
This template is used, for instance, in the [[dining philosophers problem]] article, to refer to [[Edsger W. Dijkstra]]'s collected notes (the "EWDs"), published by the University of Texas at Austin (here [http://www.cs.utexas.edu/users/EWD/]). | This template is used, for instance, in the [[dining philosophers problem]] article, to refer to [[Edsger W. Dijkstra]]'s collected notes (the "EWDs"), published by the University of Texas at Austin (here [http://www.cs.utexas.edu/users/EWD/]). | ||
Line 16: | Line 16: | ||
The second, optional parameter specifies the title. | The second, optional parameter specifies the title. | ||
+ | |||
+ | A {{para|quote}} parameter may be specified; it is passed to the underlying citation template. | ||
Example usage: | Example usage: | ||
− | * | + | * {{tlc|Cite EWD|1000}}<ref>{{Cite EWD|1000}}</ref> |
* {{Cite EWD|1000}}, i.e. the same without <nowiki><ref/></nowiki> (put here to expose potential spurious newlines bugs) | * {{Cite EWD|1000}}, i.e. the same without <nowiki><ref/></nowiki> (put here to expose potential spurious newlines bugs) | ||
− | * | + | * {{tlc|Cite EWD|796a| Smoothsort – an alternative to sorting in situ }}<ref>{{Cite EWD|796a| Smoothsort – an alternative to sorting in situ }}</ref> |
<references/> | <references/> |
Latest revision as of 03:03, 24 December 2016
This template is used, for instance, in the dining philosophers problem article, to refer to Edsger W. Dijkstra's collected notes (the "EWDs"), published by the University of Texas at Austin (here [1]).
There is one required parameter: the EWD number.
The second, optional parameter specifies the title.
A |quote=
parameter may be specified; it is passed to the underlying citation template.
Example usage:
{{Cite EWD|1000}}
[1]- Dijkstra, Edsger W. Expression error: Unrecognized punctuation character "%5b".xx/EWD1000.PDF EWD-1000 Check
|url=
value (help) (PDF). E.W. Dijkstra Archive. Center for American History, University of Texas at Austin. (Expression error: Unrecognized punctuation character "[".xx/EWD1000.html transcription), i.e. the same without <ref/> (put here to expose potential spurious newlines bugs) {{Cite EWD|796a| Smoothsort – an alternative to sorting in situ}}
[2]
- ↑ Dijkstra, Edsger W. Expression error: Unrecognized punctuation character "%5b".xx/EWD1000.PDF EWD-1000 Check
|url=
value (help) (PDF). E.W. Dijkstra Archive. Center for American History, University of Texas at Austin. (Expression error: Unrecognized punctuation character "[".xx/EWD1000.html transcription) - ↑ Dijkstra, Edsger W. Expression error: Unrecognized punctuation character "%5b".xx/EWD796a.PDF Smoothsort – an alternative to sorting in situ (EWD-796a) Check
|url=
value (help) (PDF). E.W. Dijkstra Archive. Center for American History, University of Texas at Austin. (Expression error: Unrecognized punctuation character "[".xx/EWD796a.html transcription)
Implementation
This template is implemented as an invocation of {{Cite book}}.
Issues
This template should probably switch to named parameters and add a few more, such as year, month, day, and selwritings-pages.