add footnote templates
This commit is contained in:
parent
94ca223d1d
commit
1b8dcdf6a0
20
templates/fnend.mdwn
Normal file
20
templates/fnend.mdwn
Normal 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
15
templates/fnref.mdwn
Normal 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]]
|
Loading…
Reference in New Issue
Block a user