Template:Pub: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>[http://www.cs.brown.edu/research/vis/results/pubs.html#{{{1}}} {{{2}}}]</includeonly><noinclude>'''Template:Pub''' is used to generate a link to a publication in the VRL citation database that is listed on the [http://www.cs.brown.edu/research/vis/results/pubs.html publications page]. Use it with the following code: | <includeonly>[http://www.cs.brown.edu/research/vis/results/pubs.html#{{{1}}} {{{2|{{{1}}}‌}}}] {{#ifeq:{{{pdf|no}}}|yes|([http://www.cs.brown.edu/research/vis/docs/pdf/{{{1}}}.pdf PDF])}}</includeonly><noinclude>'''Template:Pub''' is used to generate a link to a publication in the VRL citation database that is listed on the [http://www.cs.brown.edu/research/vis/results/pubs.html publications page]. Use it with the following code: | ||
<pre><nowiki>{{pub|<key>|<description>}}</nowiki></pre> | <pre><nowiki>{{pub|<key>|<description>|pdf=<yes|no>}}</nowiki></pre> | ||
* <tt><key></tt> is the three-part key that we use in VRL to refer to just about everything: <tt><Author>-<Year>-<TLA></tt>, for example <tt>Laidlaw-2004-VMS</tt>. | * <tt><key></tt> is the three-part key that we use in VRL to refer to just about everything: <tt><Author>-<Year>-<TLA></tt>, for example <tt>Laidlaw-2004-VMS</tt>. | ||
* <tt><description></tt> is the text that you want for the link. | * <tt><description></tt> is the text that you want for the link; leave it blank to just use the key as the text. | ||
* <tt>pdf=yes</tt> will put an additional link directly to the PDF. Leave the argument out entirely or use <tt>pdf=no</tt> to not create a PDF link. | |||
=== Examples === | |||
{| {{Prettytable|width=0}} | |||
|- | |||
! {{Hl2}} | Code | |||
! {{Hl2}} | Result | |||
|- | |||
| <pre><nowiki>{{pub|Laidlaw-2004-VMS|Laidlaw NSF Poster}}</nowiki></pre> || {{pub|Laidlaw-2004-VMS|Laidlaw NSF Poster}} | |||
|- | |||
| <pre><nowiki>{{pub|Laidlaw-2004-VMS}}</nowiki></pre> || {{pub|Laidlaw-2004-VMS}} | |||
|- | |||
| <pre><nowiki>{{pub|Laidlaw-2004-VMS|pdf=yes}}</nowiki></pre> || {{pub|Laidlaw-2004-VMS|pdf=yes}} | |||
|} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 06:23, 11 February 2009
Template:Pub is used to generate a link to a publication in the VRL citation database that is listed on the publications page. Use it with the following code:
{{pub|<key>|<description>|pdf=<yes|no>}}
- <key> is the three-part key that we use in VRL to refer to just about everything: <Author>-<Year>-<TLA>, for example Laidlaw-2004-VMS.
- <description> is the text that you want for the link; leave it blank to just use the key as the text.
- pdf=yes will put an additional link directly to the PDF. Leave the argument out entirely or use pdf=no to not create a PDF link.
Examples
| Code | Result |
|---|---|
{{pub|Laidlaw-2004-VMS|Laidlaw NSF Poster}} |
Laidlaw NSF Poster |
{{pub|Laidlaw-2004-VMS}} |
Laidlaw-2004-VMS |
{{pub|Laidlaw-2004-VMS|pdf=yes}} |
Laidlaw-2004-VMS (PDF) |