templates/*: cleaned up indents + folder restructure
Some checks are pending
/ render (push) Waiting to run

This commit is contained in:
IkiWiki 2024-09-11 14:34:45 -04:00
parent cc3ca0b1f7
commit 0f34ef13cb
Signed by untrusted user who does not match committer: forge
GPG key ID: D62A472A4AA7D541
44 changed files with 245 additions and 263 deletions

12
base/templates/note.mdwn Normal file
View file

@ -0,0 +1,12 @@
[[!templatebody <<ENDBODY
<div class="notebox">
<TMPL_VAR text>
</div>
ENDBODY]]
Use this template to insert a note into a page. The note will be styled to
float to the right of other text on the page. This template has one
parameter:
<ul>
<li>`text` - the text to display in the note
</ul>

17
base/templates/popup.mdwn Normal file
View file

@ -0,0 +1,17 @@
Use this template to create a popup window that is displayed when the mouse
is over part of the page. This template has two parameters:
<ul>
<li>`mouseover` - This is the text or other content that triggers the
popup.
<li>`popup` - This should be the content of the popup window. It can be
anything, even images or a whole little wiki page, but should not be too
large for good usability.
</ul>
Note that browsers that do not support the CSS will display the popup
inline in the page, inside square brackets.
[[!templatebody <<ENDBODY
<span class="popup"><TMPL_VAR mouseover>
<span class="paren">[</span><span class="balloon"><TMPL_VAR popup></span><span class="paren">]</span>
</span>
ENDBODY]]