Template:Further if exists/sandbox
Appearance
This is the template sandbox page for Template:Further if exists (diff). See also the companion subpage for test cases. |
This template uses Lua: |
Displays a "further information" hatnote, if and only if at least one of the linked pages exists. If some but not all linked pages exist, only the linked ones will be displayed.
This allows hatnotes to be created before the target page exists, and automatically become visible once it does. This may be especially useful for pages involving repeated events like annual sports tournaments.
Outside of its functionality to filter out nonexistent pages, it functions exactly like the related template {{further}}, including its label functionality.
Examples
[edit]{{further if exists|Nonexistent page}}
→{{further if exists|Foo|Nonexistent page|Bar}}
→
See also
[edit]- {{further}}
- {{see also if exists}}