blob: 7b9e51f625df0ecb1503204c2021e009e3c388e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{{- $id := default "Knowledge" (.Get "id" | default (.Get 0)) -}}
{{- $title := default "Wikipedia Article" (.Get "title" | default (.Get 1)) -}}
{{-
$caption := default
(print $title ": [Link](" "https://en.m.wikipedia.org/wiki/" $id ")")
(.Get "caption" | default (.Get 2))
-}}
<wikipedia-container title="{{ $title }}">
<iframe loading="lazy"
src="https://en.m.wikipedia.org/wiki/{{ $id }}"
title="{{ $title }}"
height="300"
></iframe>
<figcaption>{{ $caption | markdownify }}</figcaption>
</wikipedia-container>
|