[skip ci] Added url, original_url and archive_date to the cite_book shortcode

This commit is contained in:
2025-01-29 12:54:24 +01:00
parent 7076d2fd83
commit c1767791da
4 changed files with 20 additions and 7 deletions

View File

@ -9,11 +9,10 @@
{{ with .date }}({{ . }}).{{ end }}
{{/* Chapter */}}
{{ with .chapter }}"{{ . }}"{{ end }}
{{ with .chapter }}"{{ . }}" in{{ end }}
{{/* Title and edition */}}
{{ with .title }}in <i>{{ . }}</i>{{ end }}
{{ with .edition }}({{ . }} ed.){{ end }}.
{{/* Title, edition and URL */}}
{{ with .url }}<a href="{{ . }}">{{ end }}{{ with .title }}<i>{{ . }}</i>{{ end }}{{ with .edition }}({{ . }} ed.){{ end }}{{ if .url }}</a>{{ end }}.
{{/* Publisher */}}
{{ with .publisher }}{{ . }}.{{ end }}
@ -25,4 +24,7 @@
{{/* ISBN */}}
{{ with .isbn }}ISBN <a target="_blank" href="https://en.wikipedia.org/wiki/Special:BookSources/{{ . }}">{{ . }}</a>.{{ end }}
{{/* Archive info */}}
{{ with .original_url }}Archived from <a href="{{ . }}">the original</a>{{ end }}{{ with .archive_date }} on {{ . }}{{ end }}.
</div>