Template:ID
From ErfWiki
(Difference between revisions)
(Not ready for prime time) |
|||
| Line 4: | Line 4: | ||
: | : | ||
| - | [[ | + | <nowiki>[[subst:ID|Stanley]]</nowiki> => [[Stanley the Tool|Stanley]] --straightforward substitution |
: | : | ||
| - | [[ | + | <nowiki>[[subst:ID|Stanley the Plaid]]</nowiki> => [[Stanley the Tool|Stanley the Plaid]] -- another straightforward substitution |
| - | + | ||
| - | + | ||
| - | + | ||
| - | [[Stanley|him]]=>[[Stanley the Tool|him]] to work, | + | <nowiki>[[subst:ID|Caster]]</nowiki> => [[Caster]] --Substitution when there is no canonical name is a no-op |
| - | + | ||
| + | <nowiki>[[subst:ID|Stanley|him]]</nowiki>=>[[Stanley the Tool|him]] --Occasionally the plaintext cannot key the appropriate substitution. | ||
| + | |||
| + | : The idea is to be able to wikify a bunch of text with minimal work, just by wrapping | ||
| + | |||
| + | :: <nowiki>[[subst:ID|...]]</nowicki> or occasionally | ||
| + | |||
| + | :: <nowiki>[[subst:ID|Name|...]]</nowicki> around the terms to be wikified, and having the system do the appropriate linkage. This is reliant on a large collection of aliases. but I'm experimenting with two. | ||
| + | |||
| + | : unfortunately, I'm floundering about how to make this work. | ||
| + | |||
| + | [[subst:ID|Stanley]] | ||
</noinclude> | </noinclude> | ||
<includeonly>[[#switch: {{{1}}}|Stanley=Stanley the Tool|Stanley the Plaid=Stanley the tool}}|{{{2|{{{1}}}}}}]]</includeonly> | <includeonly>[[#switch: {{{1}}}|Stanley=Stanley the Tool|Stanley the Plaid=Stanley the tool}}|{{{2|{{{1}}}}}}]]</includeonly> | ||
Revision as of 02:35, 13 January 2010
Usage
Converts a name to a wikified name:
[[subst:ID|Stanley]] => Stanley --straightforward substitution
[[subst:ID|Stanley the Plaid]] => Stanley the Plaid -- another straightforward substitution
[[subst:ID|Caster]] => Caster --Substitution when there is no canonical name is a no-op
[[subst:ID|Stanley|him]]=>him --Occasionally the plaintext cannot key the appropriate substitution.
- The idea is to be able to wikify a bunch of text with minimal work, just by wrapping
- [[subst:ID|...]]</nowicki> or occasionally :: <nowiki>[[subst:ID|Name|...]]</nowicki> around the terms to be wikified, and having the system do the appropriate linkage. This is reliant on a large collection of aliases. but I'm experimenting with two. : unfortunately, I'm floundering about how to make this work. [[subst:ID|Stanley]] </noinclude> <includeonly>[[#switch: {{{1}}}|Stanley=Stanley the Tool|Stanley the Plaid=Stanley the tool}}|{{{2|{{{1}}}}}}]]</includeonly>