Template:Wikilink inline
This template lets you easily cite Wikipedia pages (usually policy or guideline shortcuts) without shouting. By default, the template will display your argument in italics and without the prefix (WP:, MOS:, etc.), and link to the all-caps version of the argument, with spaces removed. If no prefix is specified, the template assumes a WP: prefix (unless a third argument is present; see below).
The presence of a second argument will cause the template to not italicize your argument (for using shortcut phrases as words rather than shortcuts). The presence of a third argument will turn off all pre-processing of the link (removing spaces, inferring WP: prefix, making all-caps), and can be used to directly link to article pages or pages without prefixes.
Before:
- Wikipedia is WP:NOTAVOTE, and additionally you should probably read WP:CANVASSING, WP:MEATPUPPETRY, and WP:NOTTRUTH. Thank you, ShoutingEditor (talk) 20:41, 3 April 2021 (UTC)
After:
- Wikipedia is not a vote, and additionally you should probably read Canvassing, Meatpuppetry, and Not Truth. Thank you, PoliteEditor (talk) 20:41, 3 April 2021 (UTC)
Usage
Code | Result | Linked page | Notes |
---|---|---|---|
{{wli|Not A Vote}}
|
Not A Vote | WP:NOTAVOTE | Standard usage, produces italicized link |
{{wli|MOS:No Section Links}}
|
No Section Links | MOS:NOSECTIONLINKS | Works with any prefix (WP, MOS, WT, etc.) |
{{wli|not a vote|n}}
|
not a vote | WP:NOTAVOTE | Does not italicize, for usage in a sentence |
{{wli|WP:Manual of Style|y}}
|
Manual of Style | WP:Manual of Style | Does not remove spaces in link, assume prefix or convert to all-caps, for non-shortcut links |
{{wli|WP:Manual of Style|n|y}}
|
Manual of Style | WP:Manual of Style | Does not remove spaces in link, convert to all-caps, or add italics, for using non-shortcut links in sentences |
Lets you easily create an italicized, lowercase link to a policy or guideline shortcut page.
Parameter | Description | Type | Status | |
---|---|---|---|---|
page | 1 | The location of the page you want to link. Case and space insensitive, unless argument 3 is present.
| Page name | required |
noitalics | 2 | If this parameter is specified, the template will not italicize the link. Useful for using a link in a sentence. | String | optional |
nocaps | 3 | If this parameter is specified, the template will not strip spaces from your link or convert it to all-caps. Useful for linking to non-shortcut pages. | String | optional |