Editing Template:Navbox with columns/doc

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
 
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
 
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
{{Navbox suite}}
+
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
A navigation box that presents its content in columns. Originally intended to provide a relatively straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.
 
A navigation box that presents its content in columns. Originally intended to provide a relatively straightforward means to align links prefixed by flag icons, e.g. in templates offering links to country articles.
  
Line 19: Line 19:
  
 
== Parameters ==
 
== Parameters ==
Required parameters in '''bold'''.  Parameters marked with a cross'''<sup>†</sup>''' are parameters in common with the sister templates {{t1|Navbox}} and {{t1|Navbox with collapsible groups}}.  A much more complete description of those parameters is available at {{t1|Navbox}}.
+
Required parameters in '''bold'''.  Parameters marked with a cross'''<sup>†</sup>''' are parameters in common with the sister template {{t1|Navbox}}.  A much more complete description of those parameters is available there.
  
 
===Setup parameters===
 
===Setup parameters===
Line 32: Line 32:
  
 
:;''border''<sup>†</sup>
 
:;''border''<sup>†</sup>
::Possible values are <code>child</code>, <code>none</code>, and the default value of blank.  Set to <code>child</code> if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox.  The parent navbox may be the list area of {{t1|Navbox}}, a columns of another {{t1|Navbox with columns}}, or a section of {{t1|Navbox with collapsible groups}}.  See {{t1|Navbox}} for more information and examples.
+
::Possible values are <code>child</code>, <code>none</code>, and the default value of blank.  Set to <code>child</code> if you wish to use the navbox inside of another navbox; with this option, the child navbox is borderless and fits snuggly inside of its parent navbox.  The parent navbox may be the list area of {{t1|Navbox}}, a columns of another {{t1|Navbox with columns}}, or a section of {{t1|Navbox with collapsible sections}}.  See {{t1|Navbox}} for more information and examples.
  
 
===Basic data parameters===
 
===Basic data parameters===
Line 70: Line 70:
 
::CSS style/s to apply to the ''imageleft'' parameter  
 
::CSS style/s to apply to the ''imageleft'' parameter  
  
:;''colstyle''
+
:;''colsstyle''
 
::CSS style/s to apply across all columns; if used, usually <code>background:''color''</code> per ''titlestyle'' above.
 
::CSS style/s to apply across all columns; if used, usually <code>background:''color''</code> per ''titlestyle'' above.
  
Line 94: Line 94:
 
:::<code>colwidth = 15em</code>
 
:::<code>colwidth = 15em</code>
 
:::<code>colwidth = 25%</code>
 
:::<code>colwidth = 25%</code>
 
:;''fullwidth''
 
::If set to anything, then the total width of the columns are scaled linearly to make the sum of the widths 100%.  A rather advanced parameter, this usually need not be used and should be left blank.  If a colheader or colfooter is used, then fullwidth is used automatically.  Example:
 
:::<code>fullwidth = true</code>
 
  
 
:;''padding''
 
:;''padding''
Line 106: Line 102:
  
 
:;'''''col<sub>n</sub>'''''
 
:;'''''col<sub>n</sub>'''''
::The content of the n<sup>th</sup> column.  If any columns are used, then <code>col1</code> is required.  There can be a maximum of 20 columns.
+
::The content of the n<sup>th</sup> column.  <code>col1</code> is required.  There can be a maximum of 20 columns.
  
 
:;''col<sub>n</sub>header''
 
:;''col<sub>n</sub>header''
Line 226: Line 222:
 
}}
 
}}
  
===Example with col<sub>n</sub>header using col<sub>n</sub>headercolspan===
 
The gray background for the columns is added for illustration only.
 
{{Navbox with columns
 
|name = Navbox with columns/doc
 
|state = uncollapsed
 
|title = col<sub>n</sub>header with col<sub>n</sub>colspan example
 
 
|colstyle = text-align:center;background:silver;
 
 
|col1header = col1header
 
|col2header = col2header (colspan=2)
 
|col4header = col4header
 
|col5header = col5header (colspan=3)
 
 
|col2headercolspan = 2
 
|col5headercolspan = 3
 
 
|col1 = col1
 
|col2 = col2
 
|col3 = col3
 
|col4 = col4
 
|col5 = col5
 
|col6 = col6
 
|col7 = col7
 
}}
 
  
 
==Using child navboxes==
 
==Using child navboxes==
All three types of navbox templates, namely {{t1|Navbox}}, {{t1|Navbox with columns}}, and {{t1|Navbox with collapsible groups}}, can be nested inside of one another using the <code>border</code> parameter (which is common to all three).  For complex templates, it may be necessary to use nesting to achieve a desired look.
+
All three types of navbox templates, namely {{t1|Navbox}}, {{t1|Navbox with columns}}, and {{t1|Navbox with collapsible sections}}, can be nested inside of one another using the <code>border</code> parameter (which is common to all three).  For complex templates, it may be necessary to use nesting to achieve a desired look.
  
 
===Nesting Navbox with columns in itself===
 
===Nesting Navbox with columns in itself===
Line 303: Line 274:
  
 
===Nesting other Navbox forms===
 
===Nesting other Navbox forms===
This example shows {{t1|Navbox}}, {{t1|Navbox with collapsible groups}} and {{t1|Navbox with columns}} all working together.  Press the edit button for the section to view the code.  Note that each of the child navboxes has the first parameter set to <code>child</code>
+
This example shows {{t1|Navbox}}, {{t1|Navbox with collapsible sections}} and {{t1|Navbox with columns}} all working together.  Press the edit button for the section to view the code.  Note that each of the child navboxes has the first parameter set to <code>child</code>
{{Navbox with collapsible groups
+
{{User:CapitalR/Navbox with collapsible sections
|name = Navbox with collapsible groups
+
|name = Navbox with collapsible sections
|title = Navbox, Navbox with columns, and Navbox with collapsible groups together
+
|title = Navbox, Navbox with columns, and Navbox with collapsible sections together
 
|selected = {{{1|}}}
 
|selected = {{{1|}}}
  
|group1 = [[:Category:Scouting|The Scouting Movement]]
+
|section1header = [[:Category:Scouting|The Scouting Movement]]
|abbr1  = movement
+
|section1abbr = movement
|list1  = [[Scouting]]{{·}}''[[Scouting for Boys]]''{{·}}[[Scout method]]{{·}}[[Scout Law]]{{·}}[[Scout Promise]]{{·}}[[Scout Motto]]{{·}}[[Wood Badge]]{{·}}[[Age groups in Scouting and Guiding]]{{·}}[[Cub Scout]]{{·}}[[Boy Scout]]{{·}}[[Rover Scout]]{{·}}[[Brownie (Girl Guides)|Brownie]]{{·}}[[Girl Guiding and Girl Scouting]]{{·}}[[Ranger (Girl Guide)]]{{·}}[[Jamboree (Scouting)|Jamboree]]{{·}}[[Scout Leader]]{{·}}[[World Organization of the Scout Movement|WOSM]]{{·}}[[World Association of Girl Guides and Girl Scouts|WAGGGS]]{{·}}[[Non-aligned Scouting and Scout-like organisations|Non-aligned organisations]]{{·}}[[Scouting controversy and conflict]]{{·}}[[Scouting in popular culture]]{{·}}[[List of Scouts]]{{·}}[[List of highest awards in Scouting]]
+
|section1content = [[Scouting]]{{·}}''[[Scouting for Boys]]''{{·}}[[Scout method]]{{·}}[[Scout Law]]{{·}}[[Scout Promise]]{{·}}[[Scout Motto]]{{·}}[[Wood Badge]]{{·}}[[Age groups in Scouting and Guiding]]{{·}}[[Cub Scout]]{{·}}[[Boy Scout]]{{·}}[[Rover Scout]]{{·}}[[Brownie (Girl Guides)|Brownie]]{{·}}[[Girl Guiding and Girl Scouting]]{{·}}[[Ranger (Girl Guide)]]{{·}}[[Jamboree (Scouting)|Jamboree]]{{·}}[[Scout Leader]]{{·}}[[World Organization of the Scout Movement|WOSM]]{{·}}[[World Association of Girl Guides and Girl Scouts|WAGGGS]]{{·}}[[Non-aligned Scouting and Scout-like organisations|Non-aligned organisations]]{{·}}[[Scouting controversy and conflict]]{{·}}[[Scouting in popular culture]]{{·}}[[List of Scouts]]{{·}}[[List of highest awards in Scouting]]
  
|list2  = {{Navbox|child
+
|section2content = {{Navbox|child
 
|title      = [[French colonial empires|Former French colonies]] in [[Africa]] and the [[Indian Ocean]]
 
|title      = [[French colonial empires|Former French colonies]] in [[Africa]] and the [[Indian Ocean]]
 
|titlestyle = background#
 
|titlestyle = background#
Line 338: Line 309:
 
}}
 
}}
  
|group3 = [[:Category:Scouting in the United Kingdom|Scouting in the United Kingdom]]
+
|section3header = [[:Category:Scouting in the United Kingdom|Scouting in the United Kingdom]]
|abbr3  = Scouting
+
|section3abbr = Scouting
|list3  = [[The Scout Association]]{{·}}[[Girlguiding UK]]{{·}}[[Beaver Scouts]]{{·}}[[Cub Section (UK)]]{{·}}[[Venture Scout]]{{·}}[[Explorer Scouts]]{{·}}[[Brownie (Girl Guides)]]{{·}}[[Ranger (Girl Guide)]]{{·}}[[Rainbow (Girl Guides)]]{{·}}[[Scout Network]]{{·}}[[Chief Scout (United Kingdom)]]{{·}}[[Scout Counties]]{{·}}[[Scout District]]{{·}}[[Scout Section (UK)]]{{·}}[[Scout Activity Centre]]{{·}}[[Young Leaders (The Scout Association)|Young Leaders]]
+
|section3content = [[The Scout Association]]{{·}}[[Girlguiding UK]]{{·}}[[Beaver Scouts]]{{·}}[[Cub Section (UK)]]{{·}}[[Venture Scout]]{{·}}[[Explorer Scouts]]{{·}}[[Brownie (Girl Guides)]]{{·}}[[Ranger (Girl Guide)]]{{·}}[[Rainbow (Girl Guides)]]{{·}}[[Scout Network]]{{·}}[[Chief Scout (United Kingdom)]]{{·}}[[Scout Counties]]{{·}}[[Scout District]]{{·}}[[Scout Section (UK)]]{{·}}[[Scout Activity Centre]]{{·}}[[Young Leaders (The Scout Association)|Young Leaders]]
  
|list4  = {{Navbox with columns|child
+
|section4content = {{Navbox with columns|child
 
|title = Navbox with columns nested in itself
 
|title = Navbox with columns nested in itself
 
|colstyle = text-align:center;
 
|colstyle = text-align:center;
Line 389: Line 360:
 
== See also ==
 
== See also ==
 
* {{t1|Navbox}} &ndash; Allows groups/lists instead of columns
 
* {{t1|Navbox}} &ndash; Allows groups/lists instead of columns
* {{t1|Navbox with collapsible groups}} &ndash; Another variation.
+
* {{t1|Navbox with collapsible sections}} &ndash; Another variation.
  
 
{{Navigational templates}}
 
{{Navigational templates}}
Line 399: Line 370:
  
 
<!--Other languages-->
 
<!--Other languages-->
[[fr:Modèle:Méta palette de navigation avec colonnes]]
 
 
[[ja:Template:Navbox with columns]]
 
[[ja:Template:Navbox with columns]]
 
[[mk:Шаблон:Navbox with columns]]
 
[[mk:Шаблон:Navbox with columns]]
[[pl:Szablon:Navbox z kolumnami]]
 
 
[[sl:Predloga:Navigacija s stolpci]]
 
[[sl:Predloga:Navigacija s stolpci]]
[[uk:Шаблон:Navbox with columns]]
 
 
</includeonly>
 
</includeonly>

Please note that all contributions to Ava Zinn Wiki are considered to be released under the a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License (see Ava Zinn Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)
Preview page with this template

Copy and paste: – — ° ′ ″ ≈ ≠ ≤ ≥ ± − × ÷ ← → · §   Sign your posts on talk pages: ~~~~   Cite your sources: <ref></ref>


{{}}   {{{}}}   |   []   [[]]   [[Category:]]   #REDIRECT [[]]   &nbsp;   <s></s>   <sup></sup>   <sub></sub>   <code></code>   <pre></pre>   <blockquote></blockquote>   <ref></ref> <ref name="" />   {{Reflist}}   <references />   <includeonly></includeonly>   <noinclude></noinclude>   {{DEFAULTSORT:}}   <nowiki></nowiki>   <!-- -->   <span class="plainlinks"></span>


Symbols: ~ | ¡ ¿ † ‡ ↔ ↑ ↓ • ¶   # ∞   ‘ ’ “ ” ‹› «»   ¤ ₳ ฿ ₵ ¢ ₡ ₢ $ ₫ ₯ € ₠ ₣ ƒ ₴ ₭ ₤ ℳ ₥ ₦ № ₧ ₰ £ ៛ ₨ ₪ ৳ ₮ ₩ ¥   ♠ ♣ ♥ ♦   ♭ ♯ ♮   © ® ™
Latin: A a Á á À à  â Ä ä Ǎ ǎ Ă ă Ā ā à ã Å å Ą ą Æ æ Ǣ ǣ   B b   C c Ć ć Ċ ċ Ĉ ĉ Č č Ç ç   D d Ď ď Đ đ Ḍ ḍ Ð ð   E e É é È è Ė ė Ê ê Ë ë Ě ě Ĕ ĕ Ē ē Ẽ ẽ Ę ę Ẹ ẹ Ɛ ɛ Ǝ ǝ Ə ə   F f   G g Ġ ġ Ĝ ĝ Ğ ğ Ģ ģ   H h Ĥ ĥ Ħ ħ Ḥ ḥ   I i İ ı Í í Ì ì Î î Ï ï Ǐ ǐ Ĭ ĭ Ī ī Ĩ ĩ Į į Ị ị   J j Ĵ ĵ   K k Ķ ķ   L l Ĺ ĺ Ŀ ŀ Ľ ľ Ļ ļ Ł ł Ḷ ḷ Ḹ ḹ   M m Ṃ ṃ   N n Ń ń Ň ň Ñ ñ Ņ ņ Ṇ ṇ Ŋ ŋ   O o Ó ó Ò ò Ô ô Ö ö Ǒ ǒ Ŏ ŏ Ō ō Õ õ Ǫ ǫ Ọ ọ Ő ő Ø ø Œ œ   Ɔ ɔ   P p   Q q   R r Ŕ ŕ Ř ř Ŗ ŗ Ṛ ṛ Ṝ ṝ   S s Ś ś Ŝ ŝ Š š Ş ş Ș ș Ṣ ṣ ß   T t Ť ť Ţ ţ Ț ț Ṭ ṭ Þ þ   U u Ú ú Ù ù Û û Ü ü Ǔ ǔ Ŭ ŭ Ū ū Ũ ũ Ů ů Ų ų Ụ ụ Ű ű Ǘ ǘ Ǜ ǜ Ǚ ǚ Ǖ ǖ   V v   W w Ŵ ŵ   X x   Y y Ý ý Ŷ ŷ Ÿ ÿ Ỹ ỹ Ȳ ȳ   Z z Ź ź Ż ż Ž ž   ß Ð ð Þ þ Ŋ ŋ Ə ə
Greek: Ά ά Έ έ Ή ή Ί ί Ό ό Ύ ύ Ώ ώ   Α α Β β Γ γ Δ δ   Ε ε Ζ ζ Η η Θ θ   Ι ι Κ κ Λ λ Μ μ   Ν ν Ξ ξ Ο ο Π π   Ρ ρ Σ σ ς Τ τ Υ υ   Φ φ Χ χ Ψ ψ Ω ω   {{Polytonic|}}
Cyrillic: А а Б б В в Г г   Ґ ґ Ѓ ѓ Д д Ђ ђ   Е е Ё ё Є є Ж ж   З з Ѕ ѕ И и І і   Ї ї Й й Ј ј К к   Ќ ќ Л л Љ љ М м   Н н Њ њ О о П п   Р р С с Т т Ћ ћ   У у Ў ў Ф ф Х х   Ц ц Ч ч Џ џ Ш ш   Щ щ Ъ ъ Ы ы Ь ь   Э э Ю ю Я я   ́
IPA: t̪ d̪ ʈ ɖ ɟ ɡ ɢ ʡ ʔ   ɸ β θ ð ʃ ʒ ɕ ʑ ʂ ʐ ç ʝ ɣ χ ʁ ħ ʕ ʜ ʢ ɦ   ɱ ɳ ɲ ŋ ɴ   ʋ ɹ ɻ ɰ   ʙ ⱱ ʀ ɾ ɽ   ɫ ɬ ɮ ɺ ɭ ʎ ʟ   ɥ ʍ ɧ   ʼ   ɓ ɗ ʄ ɠ ʛ   ʘ ǀ ǃ ǂ ǁ   ɨ ʉ ɯ   ɪ ʏ ʊ   ø ɘ ɵ ɤ   ə ɚ   ɛ œ ɜ ɝ ɞ ʌ ɔ   æ   ɐ ɶ ɑ ɒ   ʰ ʱ ʷ ʲ ˠ ˤ ⁿ ˡ   ˈ ˌ ː ˑ ̪   {{IPA|}}