Template:WP
no shortcut name given (help)
| This template uses Lua: |
This template creates a link to a shortcut in project space, along with hover text that shows a tooltip of the page's nutshell (if it has one) when someone hovers over the link. It can be useful when linking shortcuts in talk page conversations where newcomers may see them.
Usage
A simple example:
{{WP|BOLD}} generates WP:BOLD.
For pages without a nutshell, it just displays a normal link. You can use it with help pages or pseudo-namespaces, as in {{WP|MOS:ICON}} to generate MOS:ICON, or {{WP|H:ALPH}} to generate Help:ALPH.
Please note that the template is case-sensitive — if you use {{Wp}}, you'll insert a template about water polo, which is probably not what you want. Please also note that some shortcuts link to sections of pages, so trying {{WP|DUE}} will display the nutshell for WP:NPOV, which won't be that useful.
Error messages
This template produces error messages. These messages are:
- shortcut: invalid title: <title> –
- target: invalid title: <title> –
- shortcut or target <title> is not a valid Wikipedia page name; see Wikipedia:Page name § Technical restrictions and limitations
- example:
{{WP|BOLD]}}→ shortcut: invalid title: WP:BOLD] (help)
- shortcut: page does not exist: <title> –
- target: page does not exist: <title> –
- Wikipedia does not have a page at <namespace>:<title>
- example:
{{WP|XXXX}}→ shortcut: page does not exist: WP:XXXX (help)
- shortcut: page is empty: <title> –
- target: page is empty: <title> –
- Wikipedia page <title> exists but has no content
- no shortcut name given –
- This template called without a shortcut name
- example:
{{WP| }}→ no shortcut name given (help)
- namespace '<namespace>' not recognized in shortcut: <shortcut>
- namespace portion of the shortcut is not one of those recognized by the template (see WP:NS). This template recognizes a limited subset of available namespace names:
- namespace names: Help, Wikipedia
- namespace aliases: Project, WP
- pseudo namespaces: H, MOS
- example:
{{WP|TALK:AVCHD}}→ namespace 'TALK' not recognized in shortcut: TALK:AVCHD (help)
- namespace portion of the shortcut is not one of those recognized by the template (see WP:NS). This template recognizes a limited subset of available namespace names:
TemplateData
Creates a link to a project space page with hover text displaying the page's nutshell
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Shortcut | 1 | The shortcut or page you want to link to
| Page name | required |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.