پرش به محتوا

الگو:بخش

از ویکی‌پدیا، دانشنامهٔ آزاد
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

This template uses <بخش> 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 {{بخش}} and given a label that identifies that section. In the destination article, {{بخش}} 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.

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

{{بخش|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:

{{بخش|page=page |title=title }}
{{بخش|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:

{{بخش|pagex=pagex |title=title}}
{{بخش|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

[ویرایش]
  • {{Excerpt}}
  • {{R}} (A reference/citation template optionally taking advantage of sections to define its scope/context, i.e. which article contents are supported by the reference)
  • Help:Labeled section transclusion