Template:OnWikipedia
| Wikipedia has an article on: OnWikipedia |
This template is a wrapper for Template:Side box to make linking to English Wikipedia more convenient and uniform in appearance.
Usage
Linking to the title of the transcluding page: {{OnWikipedia}}
With custom link text: {{OnWikipedia|Wikipedia_page_name|Link_text}}
Examples
| {{OnWikipedia}} | ⇒ |
| ||
| {{OnWikipedia|OpenStreetMap|OpenStreetMap}} | ⇒ |
| ||
| {{OnWikipedia|OpenStreetMap|OSM}} | ⇒ |
|
Alternate approaches
Instead, you could also just use a direct wiki link: [[wikipedia:xx:Page_name|Link text]] (with xx being the language code, and the link text following the vertical bar character being optional).
TemplateData
Display a box with a link to a page on English Wikipedia
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Wikipedia page | 1 | Full name of Wikipedia page to link to, including namespace (if not in Main)
| Line | optional |
| Link text | 2 | Custom link text to be shown in lieu of the Wikipedia page name | String | optional |
| Alignment | position | When set to 'left', the alignment of the link box is with the left page margin instead of the (default) right
| Line | optional |
| Postscript | below | Additional text to appear within the link box below the page link | String | optional |
| Right-side image | imageright | An image to display opposite the Wikipedia logo, on the right side of the link box; must be a well-formed File: link. | Content | optional |
See also
- Template:WikiIcon draws an icon.
- Template:Wikipedia adds extra text ("on Wikipedia").
- Template:Wiki