X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/c2b88d902bc971125a59d605222de19e9d2d525b..b21b66cf5127cc5d6760c1a730011199f41587d6:/doc/shortcuts.mdwn?ds=sidebyside diff --git a/doc/shortcuts.mdwn b/doc/shortcuts.mdwn index bec46b03a..cfbe70aea 100644 --- a/doc/shortcuts.mdwn +++ b/doc/shortcuts.mdwn @@ -22,7 +22,17 @@ This page controls what shortcut links the wiki supports. * [[shortcut name=imdb url="http://imdb.com/find?q=%s"]] * [[shortcut name=gpg url="http://pgpkeys.mit.edu:11371/pks/lookup?op=vindex&exact=on&search=0x%s"]] * [[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.