v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Navbox/doc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
This template can be used for creating navboxes.
+
This template is used for creating [[:Category:Navigation templates|navigational templates]] (also known as navboxes).
==Examples==
+
 
<pre>
+
==Usage==
{{navbox|headerbg=#ffccbb|sidebg=#ccffbb|
+
Please remove the parameters that are left blank.
>> Header
+
 
> Section 1
+
<pre style="overflow: auto;">{{Navbox
Text
+
| name  = {{subst:PAGENAME}}{{subst:void|Don't change anything on this line. It will change itself when you save.}}
> Section 2
+
| title =
Text
+
 
 +
| above =
 +
| below =
 +
 
 +
| group1 =
 +
| list1  =
 +
 
 +
| group2 =
 +
| list2  =
 +
 
 +
| group3 =
 +
| list3  =
 +
 
 +
<!-- ... (up to group20 & list20) -->
 
}}
 
}}
 
</pre>
 
</pre>
{{navbox|headerbg=#ffccbb|sidebg=#ccffbb|
+
 
>> Header
+
==Parameters==
> Section 1
+
''WIP''
Text
+
===Setup parameters===
> Section 2
+
===Cells===
Text
+
===Style parameters===
 +
====Default styles====
 +
 
 +
==Layout==
 +
===Without above and below===
 +
{{Navbox
 +
| name = Navbox/doc
 +
| state = uncollapsed
 +
| liststyle = background: silver; <!-- background color added for illustration only. -->
 +
| title  = {{{title}}}
 +
| group1 = {{{group1}}}
 +
| list1  = {{{list1}}}
 +
| group2 = {{{group2}}}
 +
| list2  = {{{list2}}}
 +
| list3  = {{{list3}}} ''without {{{group3}}}''
 +
| group4 = {{{group4}}}
 +
| list4  = {{{list4}}}
 
}}
 
}}
 +
 +
===With above and below===
 +
{{Navbox
 +
| name = Navbox/doc
 +
| state = uncollapsed
 +
| liststyle = background: silver;
 +
| title  = {{{title}}}
 +
| above  = {{{above}}}
 +
| group1 = {{{group1}}}
 +
| list1  = {{{list1}}}
 +
| group2 = {{{group2}}}
 +
| list2  = {{{list2}}}
 +
| list3  = {{{list3}}} ''without {{{group3}}}''
 +
| group4 = {{{group4}}}
 +
| list4  = {{{list4}}}
 +
| below  = {{{below}}}
 +
}}
 +
 +
===Without groups, above and below===
 +
{{Navbox
 +
| name = Navbox/doc
 +
| state = uncollapsed
 +
| liststyle = background: silver;
 +
| title = {{{title}}}
 +
| list1 = {{{list1}}}
 +
| list2 = {{{list2}}}
 +
| list3 = {{{list3}}}
 +
| list4 = {{{list4}}}
 +
}}
 +
 +
==Example==
 +
<pre style="overflow: auto;">{{Navbox
 +
| name  = Navbox/doc
 +
| title = [[Soil]]
 +
| titlestyle = background-color: #c0e1d1;
 +
| groupstyle = background-color: #b0cabd;
 +
 +
| below = See also: [[Template:DF2014 stones|Stones]]
 +
 +
| group1 = Topsoil
 +
| list1  = [[Loam]] • [[Loamy sand]] • [[Peat]] • [[Sandy clay loam]] • [[Sandy loam]] • [[Silt]] • [[Silt loam]] • [[Silty clay loam]]
 +
 +
| group2 = Ocean floor
 +
| list2  = [[Calcareous ooze]] • [[Pelagic clay]] • [[Siliceous ooze]]
 +
 +
| group3 = [[Sand]]
 +
| list3  = [[Sand (tan)]] • [[Black sand]] • [[Red sand]] • [[White sand]] • [[Yellow sand]]
 +
 +
| group4 = Clay
 +
| list4  = [[Clay]] • [[Clay loam]] • [[Fire clay]] • [[Sandy clay]] • [[Silty clay]]
 +
}}
 +
</pre>
 +
 +
{{Navbox
 +
| name  = Navbox/doc
 +
| title = [[Soil]]
 +
| titlestyle = background-color: #c0e1d1;
 +
| groupstyle = background-color: #b0cabd;
 +
 +
| below = See also: [[Template:DF2014 stones|Stones]]
 +
 +
| group1 = Topsoil
 +
| list1  = [[Loam]] • [[Loamy sand]] • [[Peat]] • [[Sandy clay loam]] • [[Sandy loam]] • [[Silt]] • [[Silt loam]] • [[Silty clay loam]]
 +
 +
| group2 = Ocean floor
 +
| list2  = [[Calcareous ooze]] • [[Pelagic clay]] • [[Siliceous ooze]]
 +
 +
| group3 = [[Sand]]
 +
| list3  = [[Sand (tan)]] • [[Black sand]] • [[Red sand]] • [[White sand]] • [[Yellow sand]]
 +
 +
| group4 = Clay
 +
| list4  = [[Clay]] • [[Clay loam]] • [[Fire clay]] • [[Sandy clay]] • [[Silty clay]]
 +
}}
 +
 +
==Child navboxes==
 +
''TBD''
  
 
<includeonly>[[Category:Navigation templates|*]]</includeonly>
 
<includeonly>[[Category:Navigation templates|*]]</includeonly>
 
<noinclude>[[Category:Template Documentation]]</noinclude>
 
<noinclude>[[Category:Template Documentation]]</noinclude>

Revision as of 00:21, 10 January 2022

This template is used for creating navigational templates (also known as navboxes).

Usage

Please remove the parameters that are left blank.

{{Navbox
| name  = {{subst:PAGENAME}}{{subst:void|Don't change anything on this line. It will change itself when you save.}}
| title =

| above =
| below =

| group1 =
| list1  =

| group2 =
| list2  =

| group3 =
| list3  =

<!-- ... (up to group20 & list20) -->
}}

Parameters

WIP

Setup parameters

Cells

Style parameters

Default styles

Layout

Without above and below

{{{title}}}
{{{group1}}}
{{{list1}}}
{{{group2}}}
{{{list2}}}
{{{list3}}} without {{{group3}}}
{{{group4}}}
{{{list4}}}

With above and below

{{{title}}}
{{{above}}}
{{{group1}}}
{{{list1}}}
{{{group2}}}
{{{list2}}}
{{{list3}}} without {{{group3}}}
{{{group4}}}
{{{list4}}}
{{{below}}}

Without groups, above and below

{{{title}}}
{{{list1}}}
{{{list2}}}
{{{list3}}}
{{{list4}}}

Example

{{Navbox
| name  = Navbox/doc
| title = [[Soil]]
| titlestyle = background-color: #c0e1d1;
| groupstyle = background-color: #b0cabd;

| below = See also: [[Template:DF2014 stones|Stones]]

| group1 = Topsoil
| list1  = [[Loam]] • [[Loamy sand]] • [[Peat]] • [[Sandy clay loam]] • [[Sandy loam]] • [[Silt]] • [[Silt loam]] • [[Silty clay loam]]

| group2 = Ocean floor
| list2  = [[Calcareous ooze]] • [[Pelagic clay]] • [[Siliceous ooze]]

| group3 = [[Sand]]
| list3  = [[Sand (tan)]] • [[Black sand]] • [[Red sand]] • [[White sand]] • [[Yellow sand]]

| group4 = Clay
| list4  = [[Clay]] • [[Clay loam]] • [[Fire clay]] • [[Sandy clay]] • [[Silty clay]]
}}
Topsoil
Ocean floor
Sand
Clay
See also: Stones

Child navboxes

TBD