Template:Navbox/doc: Difference between revisions

m
10 revisions imported: Import from https://sims.wikia.com
sims>Kirkburn
(New page: ;Description :This template is used to do something. ;Syntax :Type <code>{{t|templatename}}</code> somewhere. ;Sample output :<code><nowiki>{{templatename|foo}}</nowiki></code> gives... :{...)
 
m (10 revisions imported: Import from https://sims.wikia.com)
 
(9 intermediate revisions by 2 users not shown)
Line 1:
;Description
:This template is used to docreate somethinga basic [[Help:Navbox|navbox]].
;Syntax
:Type <code>{{t|templatenamenavbox|...}}</code> somewhere.
 
<pre>{{Navbox
|bodyclass =
|name = {{subst:PAGENAME}}
|title =
|titleclass =
|image =
|above =
|state =
 
|group1 =
|list1 =
 
|group2 =
|list2 =
...
|group20 =
|list20 =
 
|below =
}}</pre>
 
;Parameters
;title*
:The title of the navigation box.
;name*
:The article name of the template, can use <code><nowiki>{{subst:PAGENAMEE}}</nowiki></code>.
;state
:The collapse state for the header. Default is autocollapse. A navbox with autocollapse will start out collapsed if there are two or more tables on the same page that use other collapsible tables.
;above, below
:Displayed ''above'' or ''below'' the body of the template.
;group<sub>n</sub>
:The title of a group.
;list<sub>n</sub>
:A list of links for group<sub>n</sub>.
;abovestyle, belowstyle, bodystyle, group<sub>n</sub>style, list<sub>n</sub>style
:CSS styles to applied to specific section.
<nowiki>*</nowiki> required parameters.
 
;Sample output
:<code><nowiki>{{templatename|foo}}</nowiki></code> gives...
:{{templatename|foo}}
 
<pre>{{navbox
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
|title=Land of Bob
|name = Template:Navbox/doc
|list1=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>.
}}</pre>
 
Results in...
 
{{navbox
|title=Land of Bob
|name = Template:Navbox/doc
|list1=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>.
}}
 
;See also
:[[Wikipedia:Template:Navbox]] for complete documentation
:[[Template:Navbox subgroup]]
:[[Template:Navbox with collapsible groups]]
:[[Template:Navbox with columns]]
 
<includeonly>[[Category:General wikiNavigation templates|{{PAGENAME}} ]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>