Editing
Template:Navbox/doc
Jump to navigation
Jump to 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.
Anti-spam check. Do
not
fill this in!
This template is used for creating [[:Category:Navigation templates|navigational templates]] (also known as navboxes). This code was borrowed from https://dwarffortresswiki.org/index.php/Template:Navbox/doc ==Usage== Please remove the parameters that are left blank. <pre style="overflow: auto;">{{Navbox | name = {{subst:PAGENAME}}{{subst:null|Don't change anything on this line. It will change itself when you save.}} | title = | state = {{{state|}}} | above = | group1 = | list1 = | group2 = | list2 = | group3 = | list3 = <!-- ... (up to group30 & list30) --> | below = }} </pre> ==Parameters== ''WIP'' ===Setup parameters=== : <code>name</code> : <code>state</code> : <code>navbar</code> : <code>border</code> or <code>{{{1}}}</code> ===Cells=== : <code>title</code> : <code>above</code> : <code>group<sub>n</sub></code> : <code>list<sub>n</sub></code> : <code>below</code> ===Style parameters=== : <code>bodystyle</code> : <code>titlestyle</code> : <code>basestyle</code> : <code>abovestyle</code> : <code>belowstyle</code> : <code>groupstyle</code> : <code>group<sub>n</sub>style</code> : <code>liststyle</code> : <code>list<sub>n</sub>style</code> : <code>listpadding</code> ====Default styles==== <syntaxhighlight lang="css"> bodystyle = background: #fdfdfd; border: 1px solid #aaa; font-size: 88%; margin: 0 auto -1px; vertical-align: middle; width: 60%; titlestyle = background: #ccccff; border: 1px solid #aaa; padding: 0.25em 1em; text-align: center; abovestyle = background: #ddddff; padding: 0.25em 1em; text-align: center; belowstyle = background: #ddddff; padding: 0.25em 1em; text-align: center; groupstyle = background: #ddddff; padding: 0.25em 1em; text-align: right; white-space: nowrap; width: 1%; liststyle = background: transparent; padding: 0; text-align: left/center; </syntaxhighlight> A list defaults to <code>text-align: left;</code> if it has a group, if not it defaults to <code>text-align: center;</code>. Although lists have their padding set to 0, as shown here, the actual value is <code>0 0.25em;</code>, which is defined in each list's <nowiki><div></nowiki> instead. ==Layout== ===Without above and below=== {{Navbox | name = Navbox/doc | state = uncollapsed | 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 | 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 | title = {{{title}}} | list1 = {{{list1}}} | list2 = {{{list2}}} | list3 = {{{list3}}} | list4 = {{{list4}}} }} ==Example== <pre style="overflow: auto;">{{Navbox | name = Navbox/doc | title = [[Soil]] | state = {{{state|expanded}}} | titlestyle = background-color: #c0e1d1; | basestyle = background-color: #b0cabd; | 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]] | below = See also: [[Template:DF2014 stones|Stones]] }} </pre> {{Navbox | name = Navbox/doc | title = [[Soil]] | state = {{{state|expanded}}} | titlestyle = background-color: #c0e1d1; | basestyle = background-color: #b0cabd; | 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]] | below = See also: [[Template:DF2014 stones|Stones]] }} ==Child navboxes== ===Usage=== <pre style="overflow: auto;">{{Navbox | name = {{subst:PAGENAME}} | title = Title | group1 = [optional] | list1 = {{Navbox|child ...child navbox parameters... }} ... }} </pre> ===Multiple subgroups example=== <pre style="overflow: auto;">{{Navbox | name = Navbox/doc | title = Multiple subgroups example | state = {{{state|expanded}}} | above = Above | group1 = Group 1 | list1 = List 1 | group2 = Group 2 | list2 = {{Navbox|child | group1 = Group 2.1 | list1 = List 2.1 | list2 = List 2.2 ''without Group 2.2'' | group3 = Group 2.3 | list3 = List 2.3 }} | group3 = Group 3 | list3 = List 3 | group4 = Group 4 | list4 = {{Navbox|child | group1 = Group 4.1 | list1 = List 4.1 | group2 = Group 4.2 | list2 = {{Navbox|child | group1 = Group 4.2.1 | list1 = List 4.2.1 | group2 = Group 4.2.2 | list2 = {{Navbox|child | group1 = Group 4.2.2.1 | list1 = List 4.2.2.1 }} | group3 = Group 4.2.3 | list3 = List 4.2.3 }} | group3 = Group 4.3 | list3 = List 4.3 }} | below = Below }} </pre> {{Navbox | name = Navbox/doc | title = Multiple subgroups example | state = {{{state|expanded}}} | above = Above | group1 = Group 1 | list1 = List 1 | group2 = Group 2 | list2 = {{Navbox|child | group1 = Group 2.1 | list1 = List 2.1 | list2 = List 2.2 ''without Group 2.2'' | group3 = Group 2.3 | list3 = List 2.3 }} | group3 = Group 3 | list3 = List 3 | group4 = Group 4 | list4 = {{Navbox|child | group1 = Group 4.1 | list1 = List 4.1 | group2 = Group 4.2 | list2 = {{Navbox|child | group1 = Group 4.2.1 | list1 = List 4.2.1 | group2 = Group 4.2.2 | list2 = {{Navbox|child | group1 = Group 4.2.2.1 | list1 = List 4.2.2.1 }} | group3 = Group 4.2.3 | list3 = List 4.2.3 }} | group3 = Group 4.3 | list3 = List 4.3 }} | below = Below }} ===Collapsible subgroups example=== <pre style="overflow: auto;">{{Navbox | name = Navbox/doc | title = Collapsible subgroups example | state = {{{state|expanded}}} | list1 = {{Navbox|child | title = Collapsible subgroup 1 | group1 = Group 1.1 | list1 = List 1.1 | group2 = Group 1.2 | list2 = List 1.2 }} | list2 = {{Navbox|child | title = Collapsible subgroup 2 | above = Above | group1 = Group 2.1 | list1 = List 2.1 | group2 = Group 2.2 | list2 = List 2.2 | below = Below }} | group3 = Group 3 | list3 = {{Navbox|child | title = Collapsible subgroup 3 | group1 = Group 3.1 | list1 = List 3.1 | group2 = Group 3.2 | list2 = List 3.2 }} }} </pre> {{Navbox | name = Navbox/doc | title = Collapsible subgroups example | state = {{{state|expanded}}} | list1 = {{Navbox|child | title = Collapsible subgroup 1 | group1 = Group 1.1 | list1 = List 1.1 | group2 = Group 1.2 | list2 = List 1.2 }} | list2 = {{Navbox|child | title = Collapsible subgroup 2 | above = Above | group1 = Group 2.1 | list1 = List 2.1 | group2 = Group 2.2 | list2 = List 2.2 | below = Below }} | group3 = Group 3 | list3 = {{Navbox|child | title = Collapsible subgroup 3 | group1 = Group 3.1 | list1 = List 3.1 | group2 = Group 3.2 | list2 = List 3.2 }} }}<includeonly>[[Category:Navigation templates|*]]</includeonly> <noinclude>[[Category:Template Documentation]]</noinclude>
Summary:
This is a minor edit
Please note that all contributions to Warren's Fast Fur Shader may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, 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 (see
Warren's Fast Fur Shader:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Nav header
(
edit
)
Template:Navbox
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Move
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Important Links
Gumroad Page
Discord Server
Youtube
Tools
What links here
Related changes
Upload file
Special pages
Page information