Template:ID

From ErfWiki

Revision as of 02:35, 13 January 2010 by Dan Hoey (Talk | contribs)
Jump to: navigation, search

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>
Go To:
Personal tools