add footnote templates

master
an 2020-01-01 21:21:55 -05:00
parent 94ca223d1d
commit 1b8dcdf6a0
2 changed files with 35 additions and 0 deletions

20
templates/fnend.mdwn Normal file
View File

@ -0,0 +1,20 @@
[[!templatebody <<ENDBODY
<dt class="fn-endnote" id="endnote_<TMPL_VAR t>"><TMPL_VAR t>.<a href="#ref_<TMPL_VAR t>" >^</a></dt>
<dd><TMPL_VAR content></dd>
ENDBODY]]
This template is for creating footnotes.
Parameters:
| Name | Description |
| ---- | ----------- |
| t | Required. Name of the reference. |
| content | Required. Content of the reference. |
Example usage:
<dl>
\[[!template id=fnend t=1 content="""
This is what's referenced."""]]
</dl>

15
templates/fnref.mdwn Normal file
View File

@ -0,0 +1,15 @@
[[!templatebody <<ENDBODY
<sup><a class="fn-ref" href="#endnote_<TMPL_VAR t>" id="ref_<TMPL_VAR t>">\[<TMPL_VAR t>]</a></sup>
ENDBODY]]
This template is for referencing footnotes.
Parameters:
| Name | Description |
| ---- | ----------- |
| t | Required. Name of the reference. |
Example usage:
Refer to \[[!template id=fnref t=1]]