Template:OnWikipedia/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

This is a documentation subpage for Template:OnWikipedia.
It contains usage information, categories and other content or metadata that is not part of the original template.

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

This is the TemplateData for this template used by VisualEditor.
TemplateData for OnWikipedia

Display a box with a link to a page on English Wikipedia

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Wikipedia page1

Full name of Wikipedia page to link to, including namespace (if not in Main)

Default
{{PAGENAMEE}}
Lineoptional
Link text2

Custom link text to be shown in lieu of the Wikipedia page name

Stringoptional
Alignmentposition

When set to 'left', the alignment of the link box is with the left page margin instead of the (default) right

Suggested values
left
Lineoptional
Postscriptbelow

Additional text to appear within the link box below the page link

Stringoptional
Right-side imageimageright

An image to display opposite the Wikipedia logo, on the right side of the link box; must be a well-formed File: link.

Contentoptional

See also