User:Mtew/Projects/Drafts/al

From Guild Wars Wiki
Jump to navigationJump to search
  General Talk Characters Diaries   Projects   My templates Special Pages  


    Drafts   Region Summaries Glossary By Region Reports By Number Reports Item Summary Formal projects Usage reports  


Quest infobox   al   at  

Code[edit]

Description[edit]

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

Parameters[edit]

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[edit]

{{ al | here | there, not }}

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

{{ al | here | | or there }}

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

{{ al | here | there | size1=0}}

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

{{ al | User:x/y/junk | User:z/ | size1=-1 }}

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

{{ al | User:x/y/junk | User:z/ | part1=2 }}

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

See also[edit]

Template:at