[skip ci] Added the cite_introduction_to_computing_systems
shortcode
This commit is contained in:
@ -3,30 +3,34 @@
|
||||
A template for citing books inspired by the "cite book" template of Wikipedia.
|
||||
<https://en.wikipedia.org/wiki/Template:Cite_book>
|
||||
|
||||
### Example
|
||||
|
||||
```md
|
||||
{{< cite_book
|
||||
chapter = "1.2 How We Will Get There"
|
||||
pages = "2-6"
|
||||
|
||||
title = "Introduction to Computing Systems – from Bits & Gates to C & Beyond"
|
||||
edition = "1"
|
||||
date = "2001"
|
||||
publisher = "McGraw-Hill Higher Education"
|
||||
isbn = "9780072376906"
|
||||
|
||||
author = "Patt, Yale N."
|
||||
author2 = "Patel, Sanjay J."
|
||||
>}}
|
||||
```
|
||||
|
||||
*/}}
|
||||
|
||||
<div style="display: inline">
|
||||
|
||||
{{/* Authors */}}
|
||||
{{ with .Get "author" }}<b>{{ . }}</b>{{ end }}{{ with .Get "author2" }}; <b>{{ . }}</b>{{ end }}
|
||||
|
||||
{{/* Date */}}
|
||||
{{ with .Get "date" }}({{ . }}).{{ end }}
|
||||
|
||||
{{/* Chapter */}}
|
||||
{{ with .Get "chapter" }}"{{ . }}"{{ end }}
|
||||
|
||||
{{/* Title and edition */}}
|
||||
{{ with .Get "title" }}in <i>{{ . }}</i>{{ end }}{{ with .Get "edition" }}({{ . }} ed.){{ end }}.
|
||||
|
||||
{{/* Publisher */}}
|
||||
{{ with .Get "publisher" }}{{ . }}.{{ end }}
|
||||
|
||||
{{/* Pages */}}
|
||||
{{ with .Get "page" }}p. {{ . }}.{{ end }}
|
||||
{{ with .Get "pages" }}pp. {{ . }}.{{ end }}
|
||||
|
||||
{{/* ISBN */}}
|
||||
{{ with .Get "isbn" }}ISBN {{ . }}.{{ end }}
|
||||
|
||||
</div>
|
||||
{{ partial "cite_book.html" (dict
|
||||
"chapter" (.Get "chapter")
|
||||
"pages" (.Get "pages")
|
||||
"title" (.Get "title")
|
||||
"edition" (.Get "edition")
|
||||
"date" (.Get "date")
|
||||
"publisher" (.Get "publisher")
|
||||
"isbn" (.Get "isbn")
|
||||
"author" (.Get "author")
|
||||
"author2" (.Get "author2")
|
||||
) }}
|
||||
|
Reference in New Issue
Block a user