]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/shortcut_with_no_url_parameter__44___only_desc.mdwn
git: Put web committer name/openid/address in the git author field
[ikiwiki.git] / doc / todo / shortcut_with_no_url_parameter__44___only_desc.mdwn
1 Currently, [[shortcuts]] must have the `url` parameter, and can optionally
2 have the `desc` parameter.  If the `shortcut` directive instead required at
3 least one of `url` or `desc`, then shortcuts could just supply a description
4 without an URL.  Since desc can contain arbitrary wiki markup, this would
5 allow shortcuts with multiple links, such as the mmlist shortcut proposed on
6 [[simple_text_parsing_or_regex_in_template_or_shortcut]], or a comprehensive
7 Debian package shortcut which linked to the package page and parenthetically
8 to the BTS and PTS.
9
10 --[[JoshTriplett]]
11
12 It sounds like you're looking for templates, not shortcuts. --[[Joey]]
13
14 > Perhaps true (see my issues with template syntax on
15 > [[todo/shortcut_optional_parameters]]), but allowing a `shortcut` without an
16 > `url` still seems reasonable, and simple.  You could also use such shortcuts
17 > without markup at all, as an abbreviation mechanism:
18
19 >     \[[shortcut name=spi desc="Software in the Public Interest, Inc."]]].
20 >     \[[shortcut name=sosp desc="Symposium on Operating System Principles"]]].
21 >     \[[shortcut name=cacm desc="Communications of the ACM"]]].
22 >
23 > --[[JoshTriplett]]