Module:Link if exists/doc
Appearance
| This is a documentation subpage for Module:Link if exists. It may contain usage information, categories and other content that is not part of the original module page. |
| This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing. |
| This Lua module is used on approximately 292,000 pages. To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
Implements {{Link if exists}}.
Usage
[edit]{{#invoke:Link if exists|main}}
Arguments
[edit]- 1
- title of page to link to
- 2
- text to display
- prefix
- prepend this string to title
- nsp
- namespace for title, does not display
- color
- Color of text if no link is found
- hide_display
- If page does not exist, do not display anything