docs/layouts/shortcodes/cite_conference.html

47 lines
1.3 KiB
HTML

{{/*
A template for citing conferences inspired by the "cite conference" template of
Wikipedia.
<https://en.wikipedia.org/wiki/Template:Cite_conference>
### Example
```
{{< cite_conference
author = "Patt, Yale N."
title = "LC-3, x86, or MIPS: The First ISA for Students to Study"
url = "https://web.archive.org/web/20250129103001/https://www.csc2.ncsu.edu/faculty/efg/wcae/ISCA2007/FinalProgram.html"
conference = "Workshop on Computer Architecture Education"
date = "2007-06-09"
location = "San Diego, CA"
original_url = "https://www.csc2.ncsu.edu/faculty/efg/wcae/ISCA2007/FinalProgram.html"
archive_date = "2025-01-29"
>}}
```
*/}}
<div style="display: inline">
{{/* Authors */}}
{{ with .Get "author" }}<b>{{ . }}</b>{{ end }}{{ with .Get "author2" }}; <b>{{ . }}</b>{{ end }}
{{/* Date */}}
{{ with .Get "date" }}({{ . }}).{{ end }}
{{/* Title and URL */}}
{{ with .Get "url" }}<a href="{{ . }}">{{ end }}{{ with .Get "title" }}<i>{{ . }}</i>{{ end }}{{ if .Get "url" }}</a>{{ end }}.
{{/* Conference */}}
{{ with .Get "conference" }}{{ . }}.{{ end }}
{{/* Location */}}
{{ with .Get "location" }}{{ . }}.{{ end }}
{{/* Archive info */}}
{{ with .Get "original_url" }}Archived from <a href="{{ . }}">the original</a>{{ end }}{{ with .Get "archive_date" }} on {{ . }}{{ end }}.
</div>