User:Mtew/Projects/Drafts/al

Description
This template provides a way to specify an alternate location for a page.

Parameters

 * Positional parameter 1:The first place to look for the page. If the page 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 are used 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 there.

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

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

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

would generate 'User:x/y/junk' if that page exists. Otherwise it would produce 'User:z/junk'.

would generate 'User:x/y/junk' if that page exists. Otherwise it would produce 'User:z/y/junk'.