Шаблон:NavBox/doc

Материал из Энциклопедия StarCraft
Перейти к: навигация, поиск

Usage[править]

Template:NavBox, Template:NavBox/row, Template:NavBox/head and Template:NavBox/empty are used in unison to construct navigation boxes.

Template:NavBox is the box's base. Any value in show expands the box automatically upon page load. Replace {{{1}}} with any number and combination of Template:NavBox/row, Template:NavBox/head and Template:NavBox/empty. Add additional CSS properties to the box using style.

{{NavBox
|bgcolor=
|fgcolor=
|style=
|name=
|show=
|{{{1}}}
}}

Template:NavBox/head creates area with a background colour inside Template:NavBox or Template:NavBox. Enter the text to be displayed in {{{1}}}.

{{NavBox/head
|bgcolor=
|fgcolor=
|{{{1}}}
}}

Template:NavBox/empty creates area with a black background colour inside Template:NavBox or Template:NavBox. Enter the text to be displayed in its single field.

{{NavBox/empty
|bgcolor=
|fgcolor=
|{{{1}}}
}}

Template:NavBox/row generates a two-column row. Replace field {{{1}}} with the row's title, which is displayed in the left column. Replace field {{{2}}} with any number and combination of Template:NavBox/row, Template:NavBox/head and Template:NavBox/empty.

{{NavBox/row
|{{{1}}}
|{{{2}}}
}}

To avoid extraneous newlines, observe the arrangement of the closing braces on the last line in the example below.

When web links, it may be necessary to escape = characters with &#61;.

Optional Fields[править]

The following are some notes on optional fields.

  • bgcolor
    • Manually sets the background color of the header text.
    • If using hex triplet (ex. #000000) the # must be replaced with &#35;.
  • fgcolor
    • Manually sets the foreground color of the header text.
    • If using hex triplet (ex. #000000) the # must be replaced with &#35;.

Example[править]

{{NavBox
|name=Test
|{{NavBox/empty
|Argh!
}}
{{NavBox/head
|Polka Dots
}}
{{NavBox/row
|Dressup
|{{NavBox/head
|Polka Dots 2
}}
{{NavBox/empty
|Argh 2!
}}
{{NavBox/row
|Dressup 2
|{{NavBox/head
|Polka Dots 3
}}
{{NavBox/empty
|Argh 3!
}}
{{NavBox/row
|Dressup 3
|{{NavBox/head
|Polka Dots 4
}}
{{NavBox/empty
|Argh 4!
}} }} }} }} }}
http://starcraft-wiki.ru/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:NavBox/doc
starcraft-wiki.ru
crawl=CC-MAIN-2017-43
22374
application/http; msgtype=response
sha1:TBC7VFRJMMK47YOJ33OCBRMPYFZSL6CS
<urn:uuid:d4a8f6e4-79e0-4f75-94b5-e3cc8645dcdd>
2017-10-18T09:15:47Z
107.20.151.144
text/html
sha1:IMCAD4CNZPBQO36M3FEKL7E4TVOIBVF7
<urn:uuid:3be29a91-1292-40f0-b791-79ac01cc0e27>
http://starcraft-wiki.ru/wiki/%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:NavBox/doc
response
<urn:uuid:aeef21d5-4add-4fb1-8171-369e3af24806>
robots: classic
hostname: ip-10-178-236-198.ec2.internal
software: Nutch 1.6 (CC)
isPartOf: CC-MAIN-2017-43
operator: Common Crawl Admin
description: Wide crawl of the web for October 2017
publisher: Common Crawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf