Шаблон:Navbox: различия между версиями
Материал из Animus
Перейти к навигацииПерейти к поиску (Добавление категории) |
|||
| Строка 205: | Строка 205: | ||
{{!}} class="navbox-abovebelow" style="{{{basestyle|}}};{{{belowstyle|}}}" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}" {{!}} {{{below}}} }} | {{!}} class="navbox-abovebelow" style="{{{basestyle|}}};{{{belowstyle|}}}" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}" {{!}} {{{below}}} }} | ||
{{!}}}{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/> | {{!}}}{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/> | ||
| − | {{!}}} }}<noinclude><br style="clear:both;"/>{{documentation}}[[Category: Navbox_templates|{{PAGENAME}}]] | + | {{!}}} }}<noinclude><br style="clear:both;"/>{{documentation}}</includeonly>[[Category: Navbox_templates|{{PAGENAME}}]] |
Версия от 09:55, 20 августа 2020
|
|
Документация Шаблона
{{
{{
Navbox}} Примечание: шаблон выше иногда может быть частично или полностью невидимым.
Посетите Template: Navbox/doc, чтобы просмотреть эту документацию. (править) (Как это работает?)
Посетите Template: Navbox/doc, чтобы просмотреть эту документацию. (править) (Как это работает?)
Navbox template lazily copied off mediawiki. See http://www.mediawiki.org/wiki/Template:Navbox for more details.
Syntax
{{Navbox
|name = {{subst:PAGENAME}}
|title = text in the title bar
|image = an optional right-side image, coded as the whole image. Should be coded as [[Image:Misc_icon.png|link=]]
|above = text to appear above the group/list section (eg. a list of overall wikilinks)
|group1 = the left-side text before list-n (if group-n omitted, list-n starts at left of box)
|list1 = text listing wikilinks, often separated by middot, such as: [[A]] · [[B]]
|group2 =
|list2 =
...
|group20 =
|list20 =
|below = optional text to appear below the group/list section.
}}
Please remove the parameters that are left blank.
Samples
{{Navbox
|name = Navbox/doc
|image = {{{image}}}
|title = {{{title}}}
|above = {{{above}}}
|group1 = {{{group1}}}
|list1 = {{{list1}}}
|group2 = {{{group2}}}
|list2 = {{{list2}}}
|list3 = {{{list3}}} ''without {{{group3}}}''
|group4 = {{{group4}}}
|list4 = {{{list4}}}
|below = {{{below}}}
}}
Results in...
| ||||||||||||||||||||||||
</includeonly>