aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-15 20:08:20 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-15 20:08:20 +0000
commit102ceb181ac8d0e23258d1e48a9c19351303f77a (patch)
tree77e0a10ad2fdeb76605f98108e2c142908b17a24
parentd9e4a3718ec84a2855aa3b585cd2d8ec0bea182e (diff)
downloadikiwiki-102ceb181ac8d0e23258d1e48a9c19351303f77a.tar
ikiwiki-102ceb181ac8d0e23258d1e48a9c19351303f77a.tar.gz
web commit by JoshTriplett: Add a note about not conflicting with existing [[PreprocessorDirective]]s. Add a note about contributing shortcuts upstream to ikiwiki.
-rw-r--r--doc/shortcuts.mdwn13
1 files changed, 11 insertions, 2 deletions
diff --git a/doc/shortcuts.mdwn b/doc/shortcuts.mdwn
index 2d31f04af..cfbe70aea 100644
--- a/doc/shortcuts.mdwn
+++ b/doc/shortcuts.mdwn
@@ -24,6 +24,15 @@ This page controls what shortcut links the wiki supports.
* [[shortcut name=perldoc url="http://perldoc.perl.org/search.html?q=%s"]]
* [[shortcut name=whois url="http://reports.internic.net/cgi/whois?whois_nic=%s&type=domain"]]
-To add a new shortcut, use the "shortcut" preprocessor directive. "%s" is
-replaced with the text passed to the named shortcut. The optional desc
+To add a new shortcut, use the `shortcut` [[PreprocessorDirective]]. "%s" is
+replaced with the text passed to the named shortcut. The optional `desc`
parameter controls the description of the link.
+
+Remember that the `name` you give the shortcut will become a new
+[[PreprocessorDirective]]. Avoid using a `name` that conflicts with an
+existing directive.
+
+If you come up with a shortcut that you think others might find useful,
+consider contributing it to the [[iki shortcuts]] page on the ikiwiki
+ikiwiki, so that future versions of ikiwiki will include your shortcut
+in the standard underlay.