Example usage
[edit source]The module is usually invoked via {{listing}}. Thus only the "text" and "result" are relevant, unless you are coding a template.
| Text | Code | Result |
|---|---|---|
| +1 234 567 890 | {{#invoke:LinkPhone|LinkPhone|+1 234 567 890}} | +1 234 567 890 |
| +1 234-567-890 | {{#invoke:LinkPhone|LinkPhone|+1 234-567-890}} | +1 234-567-890 |
| +1 234-567-890 ext 12 | {{#invoke:LinkPhone|LinkPhone|+1 234-567-890 ext 12}} | +1 234-567-890 ext 12 |
| +1 (234) 567 890 | {{#invoke:LinkPhone|LinkPhone|+1 (234) 567 890}} | +1 (234) 567 890 |
| +44 20 7890 1234, +44 20 7890 1235 | {{#invoke:LinkPhone|LinkPhone|+44 20 7890 1234, +44 20 7890 1235}} | +44 20 7890 1234, +44 20 7890 1235 |
| +44 20 7890 1234 | {{#invoke:LinkPhone|LinkPhone|''+44'' 20 7890 1234}} | +44 20 7890 1234 |
| +1 234 567 WIKI | {{#invoke:LinkPhone|LinkPhone|+1 234 567 WIKI}} | +1 234 567 WIKI (9454) |
| +44 20 7890 1234 (reservations), +44 20 7890 1235 (general enquiries) | {{#invoke:LinkPhone|LinkPhone|+44 20 7890 1234 (reservations), +44 20 7890 1235 (general enquiries)}} | +44 20 7890 1234 (reservations), +44 20 7890 1235 (general enquiries) |
| +1 234.567.890 | {{#invoke:LinkPhone|LinkPhone|+1 234.567.890}} | +1 234.567.890Category:Listing with phone format issuePhone with wrong format |
| 234 567 890 | {{#invoke:LinkPhone|LinkPhone|234 567 890}} | 234 567 890Category:Listing with phone missing country codeCountry code missing |
| +44 20 7890 1234 reservations, +44 20 7890 1235 general enquiries | {{#invoke:LinkPhone|LinkPhone|+44 20 7890 1234 reservations, +44 20 7890 1235 general enquiries}} | +44 20 7890 1234 reservationsCategory:Listing with phone format issuePhone with wrong format, +44 20 7890 1235 general enquiriesCategory:Listing with phone format issuePhone with wrong format |
| +44 (0)234 567 890 | {{#invoke:LinkPhone|LinkPhone|+44 (0)234 567 890}} | +44 (0)234 567 890Category:Listing with phone format issuePhone with wrong format |
| 0844 123 4567 (high cost) | {{#invoke:LinkPhone|LinkPhone|0844 123 4567 (high cost)}} | 0844 123 4567 (high cost)Category:Listing with phone missing country codeCountry code missing |
| TOLLFREE | ||
| +1 234 567 890 | {{#invoke:LinkPhone|LinkTollfree|+1 800 800 800}} | +1 800 800 800 |
| 0844 123 4567 (high cost) | {{#invoke:LinkPhone|LinkTollfree|0844 123 4567 (high cost)}} | 0844 123 4567 (high cost) |
| FAX | ||
| +1 234 567 890 | {{#invoke:LinkPhone|LinkFax|+1 234 567 890}} | +1 234 567 890 |
| +1 234 567 890 | {{#invoke:LinkPhone|LinkFax|+39 234 567 890 (remote office)}} | +39 234 567 890 (remote office) |
| [email protected] (museum and tours), [email protected] (rocket launches) | {{#invoke:LinkPhone|LinkEmail|[email protected] (museum and tours), [email protected] (rocket launches)}} | [email protected], [email protected] |
| OTHER | ||
| blank | {{#invoke:LinkPhone|LinkPhone| }} | |
Highlighting issues
[edit source]To make it easier to find phone numbers that may have issues, enable the "ErrorHighlighter" gadget from your user preferences. After enabling the gadget, phone numbers with issues will display followed by a very noticeable warning message.
Alternately, if you prefer not to use a gadget then you can add the following to your own common.css page.
.phoneinfo { color: red; background: yellow; display: inline !important; } 
French
Deutsch