aboutsummaryrefslogtreecommitdiffstats
path: root/english/template/debian/toc.wml
diff options
context:
space:
mode:
authorJosip Rodin <joy>2002-01-18 20:05:29 +0000
committerJosip Rodin <joy>2002-01-18 20:05:29 +0000
commit2ac564bf81c2561316c01841d13db6781879854c (patch)
tree10a79a47474b0e713d81c61ced1035c6ac9217a9 /english/template/debian/toc.wml
parent4aaedb146a70ec6000c84fb85bda955ebff325fa (diff)
added a nifty little table of contents template, written by Denis Barbier
CVS version numbers english/template/debian/toc.wml: INITIAL -> 1.1
Diffstat (limited to 'english/template/debian/toc.wml')
-rw-r--r--english/template/debian/toc.wml24
1 files changed, 24 insertions, 0 deletions
diff --git a/english/template/debian/toc.wml b/english/template/debian/toc.wml
new file mode 100644
index 00000000000..6161f8adea7
--- /dev/null
+++ b/english/template/debian/toc.wml
@@ -0,0 +1,24 @@
+
+<set-var toc:_cnt=0 />
+<define-tag toc-add-entry endtag="required">
+<preserve name />
+<set-var %attributes />
+<ifeq <get-var name /> "" "<increment toc:_cnt />
+ <set-var name="l<get-var toc:_cnt />" />" />
+<p><strong><a name="<get-var name/>">\
+ <toc-title-question>%body</toc-title-question></a></strong></p>
+{#ToC_questions#: <li><a href="#<get-var name/>">%body</a></li>
+:##}
+<restore name />
+</define-tag>
+
+# May be locally redefined
+<define-tag toc-title-question endtag="required" whitespace="delete">
+ %body
+</define-tag>
+
+<define-tag toc-display endtag="required">
+<ul>
+{#ToC_questions#}
+</ul>
+</define-tag>

© 2014-2024 Faster IT GmbH | imprint | privacy policy