Шаблон:RouteBox /doc

Материал из wikixw
Перейти к навигации Перейти к поиску

This template is similar to {{Color box}}, but provides for both wikilinks and text color and omits the contrasting border.

Usage[править]

{{RouteBox|text|link|box color|text color|border=|bold=}}

  • RouteBox
can be abbreviated to {{rbox|…}}
  • text
text (bold) to be displayed in the box
  • link
any valid wikilink; [[ and ]] are not required; can be omitted if no link is wanted
  • box color
background color of the box; default is black; can be omitted if text color is not specified
  • text color 
optional; default is white
  • border=
optional; default is box color
  • bold=
optional; default is yes

Examples[править]

{{RouteBox|Line|Line}} Line 

{{rbox|Circle line|Circle line (London Underground)|#{{rcr|London Underground|Circle}}|#{{rcr|London Underground|Piccadilly}}}} Circle line 

{{RouteBox|Text||bold=no}} Text 

Variants[править]

 

TemplateData[править]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:RouteBox in articles based on its TemplateData.

TemplateData for RouteBox

Adds a colored box with no border.

Параметры шаблона

Шаблон использует строчное форматирование параметров.

ПараметрОписаниеТипСтатус
text1

text (bold by default) to be displayed in the box

Пример
Circle line
Строковый (без форматирования)предложенный
link2

The name of the page to link towards; can be omitted if no link is wanted

Пример
Circle line (London Underground)
Имя страницынеобязательный
box color3

background color of the box; can be omitted if text color is not specified

По умолчанию
black
Пример
yellow
Строковый (без форматирования)предложенный
text color4

color of the text

По умолчанию
white
Пример
blue
Строковый (без форматирования)необязательный
borderborder

color of the border; enabled by default

По умолчанию
{{{3}}}
Пример
black
Строковый (без форматирования)необязательный
boldbold

bolds the text; enabled by default

По умолчанию
yes
Пример
no
Строковый (без форматирования)необязательный