User:Mtew/Projects/Drafts/at

Description
This template provides a way to specify alternate locations for a template.

Parameters

 * Positional parameter 1:The first place to look for the temp;ate. If the template exists, this parameter's values is generated.
 * Positional parameter 2:The first of the alternate name.
 * Positional parameter 3:The middle of the alternate name.
 * Positional parameter 4:The end of the alternate name.
 * size1:The number of pieces from positional parameter 1 to be inserted between the first and middle parts of the alternate name. If this parameter's value is 0, positional parameter 1 is not included in the alternate name. Any other value is used along with the 'part1' parameter with #titleparts to extract a portion of positional parameter 1.
 * part1:See the 'size1' parameter for specifics.
 * size2 and part2:If either or both of these parameters is specified, they are used with #titleparts to extract a portion of positional parameter 1 for insertion between the middle and end parts of the alternate name. If both parameters are omitted, nothing from positional parameter 1 will be used.

Examples
would generate 'here' if that template exists. Otherwise it would produce 'there, not here'.

would generate 'here' if that template exists. Otherwise it would produce 'here or there'.

would generate 'here' if that template exists. Otherwise it would produce 'there'.