This is a documentation subpage for Template:Alternative links. It may contain usage information, categories and other content that is not part of the original template page. |
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template will allow you to provide multiple alternative choices for a link and will display the first one that exists. This is most useful for linking to topics that tend to have annual pages where the annual page may or may not exist.
For example, if I want to link to the article about the 2010 Richmond Spiders football team that may or may not exist, I would make this call:
{{Alternative links|2010 Richmond Spiders football team|Richmond Spiders football|Richmond Spiders|University of Richmond|title=Richmond|alt=Richmond}}
This would yield: Richmond
Important - whitespace cannot be included or it will be added to the wiki link and it will not function properly.