Difference between revisions of "Template:Civil navigation"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(Fix)
imported>Andrybak
m (move categorization to /doc per WP:CAT#T)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly>{{#invoke:Template wrapper|wrap|_template=navbox
 
<includeonly>{{#invoke:Template wrapper|wrap|_template=navbox
|titlestyle= {{#switch:{{{style|}}}|wide={{Infobox civil conflict/Infobox style|nav_box_wide_header}}|#default={{Infobox civil conflict/Infobox style|nav_box_header}}}}
+
|titlestyle= background-color:#CEE0F2; {{{titlestyle|}}}
|bodystyle= {{#switch:{{{style|}}}|wide={{Infobox civil conflict/Infobox style|nav_box_wide}}|#default= {{#ifeq:{{{border|}}}|child|{{Infobox civil conflict/Infobox style|nav_box_child}}|{{Infobox civil conflict/Infobox style|nav_box}}}}}}
+
|bodystyle= {{#switch:{{{style|}}}|wide=|#default= {{#ifeq:{{{border|}}}|child|margin: 0; float: right; clear: right; width: 25em; margin-bottom: 0.5em;|margin:0;float:right;clear:right;width:25.5em;margin-bottom:0.5em;margin-left:1em;}}}}
|groupstyle= {{Infobox civil conflict/Infobox style|nav_box_label}} {{{groupstyle|}}}
+
|groupstyle= background-color:#eeeeee; {{{groupstyle|}}}
|belowstyle= {{Infobox civil conflict/Infobox style|nav_box_label}} {{{belowstyle|}}}
+
|belowstyle= background-color:#eeeeee; {{{belowstyle|}}}
|abovestyle= {{Infobox civil conflict/Infobox style|nav_box_label}} {{{abovestyle|}}}
+
|abovestyle= background-color:#eeeeee; {{{abovestyle|}}}
|liststyle= {{{liststyle|}}}
 
 
|oddstyle= {{#if:{{{odd_color|}}}|background: {{{odd_color|}}};}}
 
|oddstyle= {{#if:{{{odd_color|}}}|background: {{{odd_color|}}};}}
 
|evenstyle= {{#if:{{{even_color|}}}|background: {{{even_color|}}};}}
 
|evenstyle= {{#if:{{{even_color|}}}|background: {{{even_color|}}};}}
|state={{#if:{{{state|}}}|{{{state|}}}|autocollapse}}
 
 
|name={{#if:{{{name|}}}|{{{name|}}}|{{{raw_name|}}}}}
 
|name={{#if:{{{name|}}}|{{{name|}}}|{{{raw_name|}}}}}
 
|navbar={{#if:{{{raw_name|}}}{{{name|}}}||plain}}
 
|navbar={{#if:{{{raw_name|}}}{{{name|}}}||plain}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
[[Category:Navigational box wrapper templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 09:43, 2 July 2020

Template documentation[view] [edit] [history] [purge]

Usage

{{Civil navigation
| name = 
| raw_name =
| state = 
| style = 
| title = 
| image = 
| imageleft = 
| odd_color = 
| even_color = 
| above = 
| listclass = 

| group1 = 
| list1 = 

| group2 = 
| list2 = 

| group3 = 
| list3 = 
...
| group30 = 
| list30 = 

| below = 
}}

Additional parameters

| bodyclass =
| belowclass =
| notes =

See also

Examples