Difference between revisions of "Template:Cite EWD"

From blackwiki
Jump to navigation Jump to search
imported>Rp
(insert PDF link (not all transcriptions exist))
imported>Rp
Line 7: Line 7:
 
   | publisher = Center for American History, The [[University of Texas at Austin]]
 
   | publisher = Center for American History, The [[University of Texas at Austin]]
 
   | series = E.W. Dijkstra Archive
 
   | series = E.W. Dijkstra Archive
   | url = http://www.cs.utexas.edu/users/EWD/ewd{{padleft:{{#expr:{{{1}}}/100 round 0}}|2}}xx/EWD{{{1}}}.PDF
+
   | url = http://www.cs.utexas.edu/users/EWD/ewd{{padleft:{{#expr:{{Str repc|{{{1}}}|a|}}/100 round 0}}|2}}xx/EWD{{{1}}}.PDF
}} ([http://www.cs.utexas.edu/users/EWD/transcriptions/EWD{{padleft:{{#expr:{{{1}}}/100 round 0}}|2}}xx/EWD{{{1}}}.html transcription])
+
}} ([http://www.cs.utexas.edu/users/EWD/transcriptions/EWD{{padleft:{{#expr:{{Str repc|{{{1}}}|a|}}/100 round 0}}|2}}xx/EWD{{{1}}}.html transcription])
  
 
</includeonly>
 
</includeonly>

Revision as of 18:50, 12 August 2011


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.

There is one required parameter: the EWD number.

The second, optional parameter specifies the title.

Example usage:

  • {{Cite EWD|1000}}[1]
  • {{Cite EWD|1000| Twenty-eight years }}[2]

This template is implemented as an invocation of {{Cite book}}.

  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, The University of Texas at Austin. (Expression error: Unrecognized punctuation character "[".xx/EWD1000.html transcription)
  2. Dijkstra, Edsger W. Expression error: Unrecognized punctuation character "%5b".xx/EWD1000.PDF Twenty-eight years (EWD-1000) Check |url= value (help) (PDF). E.W. Dijkstra Archive. Center for American History, The University of Texas at Austin. (Expression error: Unrecognized punctuation character "[".xx/EWD1000.html transcription)