Template:Inline block/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

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

Usage

Displays the page content within the template block horizontally in one line.

Notes

Copied from Wikipedia w:Template:Inline block

Syntax

{{Inline block|any content ...}}

{{Inline block|1=any content ...}} – if there is a "=" in your content

Parameters

  • 1
  • 2
  • title
  • width
  • height
  • color
  • background
  • style

TemplateData

The template {{Inline block}} creates an inline-block element. Among other uses, it can replace {{tl|nowrap}} when coding templates with complex layout.

Template parameters

ParameterDescriptionTypeStatus
Content1

The content to be wrapped in an inline-block element

Contentoptional
HTML tag2

Changes the <HTML tag> used. This may affect what elements this template should contain or be contained by.

Default
span
Example
div, abbr
Stringoptional
Titletitle

Title of the content (used as tooltip text, or expanded abbreviation when 2=abbr)

Default
Example
died (for abbr d.)
Stringoptional
Widthwidth

The width; passed directly to the "width" CSS attribute

Stringoptional
Heightheight

The height; passed directly to the "height" CSS attribute

Stringoptional
Text colorcolor

The text color; passed directly to the "color" CSS attribute

Stringoptional
Background formattingbackground bg

The background formatting; passed directly to the "background" CSS attribute

Stringoptional
Other stylesstyle

Style information as plain CSS.

Stringoptional

Examples

  • rendered :

See also