User:Mtew/Projects/Drafts/at
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 alternate locations for a template.
Parameters[edit]
- 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[edit]
{{ at | here | there, not }}
would generate 'here' if that template exists. Otherwise it would produce 'there, not here'.
{{ at | here | | or there }}
would generate 'here' if that template exists. Otherwise it would produce 'here or there'.
{{ at | here | there | size1=0}}
would generate 'here' if that template exists. Otherwise it would produce 'there'.
See also[edit]