Template:Blocks/doc

From English Wikipedia @ Freddythechick

Usage

This template allows you to display multiple pages or content blocks as inline-block "columns" on a page. This can be used to present content in a more space-efficient manner. It can be used to transclude content from other pages, display custom content, or a combination of both.

Syntax

Transclude another page

<syntaxhighlight lang="wikitext"> Lua error: expandTemplate: template "Page to transclude 1" does not exist. </syntaxhighlight>

Embed content directly in the template

<syntaxhighlight lang="wikitext">

Section header 1[ edit ]

Wikitext content Section 1

</syntaxhighlight>

Parameters

  • sectionN (optional): The header text for the content block or transcluded page, where N is a number starting from 1 and incrementing for each new section.
  • pageN (optional): The name of the page to be transcluded, where N is a number starting from 1 and incrementing for each new page.
  • contentN (optional): The custom content to be displayed for the respective section, where N is a number starting from 1 and incrementing for each new content block.

Note that you must specify either a pageN or contentN for each section. If both are specified, the transcluded page will take precedence.

Example

<syntaxhighlight lang="wikitext"> Lua error: expandTemplate: template "Wikipedia:Vaccine safety/Discussions" does not exist. </syntaxhighlight>

Lua error: expandTemplate: template "Wikipedia:Vaccine safety/Discussions" does not exist.