Misplaced Pages

Template:Section: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
Browse history interactively← Previous editContent deleted Content addedVisualWikitext
Revision as of 16:37, 21 April 2013 view sourceGadget850 (talk | contribs)115,579 edits ce← Previous edit Latest revision as of 20:26, 22 August 2019 view source Trialpears (talk | contribs)Administrators33,082 editsm Bug to phab 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly><span class="error">This template is currently non-functional due to {{phab|T39256}}.</span></includeonly>
{{#if:{{{anchor|}}}|<div style="position: relative; top: -3em;" id="{{#ifeq:{{{anchor|}}}|title|{{{title|}}}|{{{anchor|}}} }}" />}}<!--
-->{{#if:{{{page|}}}|{{#lst:{{{page|}}}|{{{title|}}}{{#if:{{{title_end|}}}|{{!}}{{{title_end|}}}}}}} {{#if:{{{anchor|}}}|<div style="position: relative; top: -3em;" id="{{#ifeq:{{{anchor}}}|title|{{{title|}}}|{{{anchor}}} }}">}}<!--
|{{#if:{{{pagex|}}}|{{#lstx:{{{pagex|}}}|{{{title|}}}{{#if:{{{text|}}}|{{!}}{{{text|}}}}}}} -->{{#if:{{{page|}}}|{{#lst:{{{page|}}}|{{{title|}}}{{#if:{{{title_end|}}}|{{!}}{{{title_end|}}}}}}}<!--
|<section begin={{{title|}}} />{{{content|}}}<section end={{{title|}}} /> -->|{{#if:{{{pagex|}}}|{{#lstx:{{{pagex|}}}|{{{title|}}}{{#if:{{{text|}}}|{{!}}{{{text|}}}}}}}<!--
-->|{{#tag:section|begin={{{title|}}}}}{{{content|}}}{{#tag:section|end={{{title|}}}}}<!--
}} -->}}<!--
}}<noinclude>{{documentation}}</noinclude> -->}}{{#if:{{{anchor|}}}|</div>}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 20:26, 22 August 2019

Template documentation[view] [edit] [history] [purge] Not to be confused with Template:Section-sign or Template:Section link.
This template is currently non-functional due to T39256. It is kept for the potential of use.
Tracked in Phabricator
Task T39256

This template uses <section> tags to selectively transclude labeled sections of text from one article page into another. In this context, the term section does not refer to the standard ==Section header==. Instead, section refers to the portion of the source article that will be transcluded into the destination article.

A chosen section of text in the source article is wrapped inside {{section}} and given a label that identifies that section. In the destination article, {{section}} is placed where the source text, will go. This template includes the name of the source article and the label that identifies the selected text.

Usage

To define the section, use these parameters on the page to be transcluded from:

{{section|title=title |content=content}}
  • title: Title of the section; must be unique on the page
  • content: Content of the section

To transclude a section or range:

{{section|page=page |title=title }}
{{section|page=page |title=title |title_end=title_end}}
  • page: Name of page transcluding from
  • title: Title of the section
  • title_end: Title of the end section

To transclude the entire page except for a section with optional text replacing the skipped sections:

{{section|pagex=pagex |title=title}}
{{section|pagex=pagex |title=title |text=text}}
  • pagex: Name of page transcluding from
  • title: Title of the section to be excluded
  • text: Text replacing the skipped sections

Other options:

  • anchor: Adds an HTML anchor and moves the page down 3 em so that any section heading shows
Set |anchor=title to set the anchor to 'title'

See also

This template has not been added to any categories. Please help out by adding categories to it so that it can be listed with similar templates.
The above documentation is transcluded from Template:Section/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.