Template:Navbox: Difference between revisions
mNo edit summary |
(added more info to the doc & fixes to "above") |
||
Line 2: | Line 2: | ||
{{Documentation/sandbox|doc = | {{Documentation/sandbox|doc = | ||
{{Underconstruction}} | {{Underconstruction}} | ||
==Usage== | |||
<pre>{{Navbox | <pre>{{Navbox | ||
| title = Example | | title = Example | ||
Line 10: | Line 12: | ||
| id = example | | id = example | ||
}}</pre> | }}</pre> | ||
===Parameters=== | |||
;<code>title</code>{{sup|required}} | |||
:Title. | |||
;<code>content</code>{{sup|required}} | |||
:Container for the conntent. {{tll|Navbox/row}} will usually be here. | |||
;<code>id</code>{{sup|required}} | |||
:The unique ID for the navbox. | |||
;<code>image</code> | |||
:Image to be displayed beneath the title and next to the content. | |||
;<code>above</code> | |||
:Displayed beneath the title but below the content. | |||
;<code>below</code> | |||
:Displayed beneath the content. | |||
'''''The following are from {{tll|Navbox/row}}.''''' | |||
;<code>group</code> | |||
:Group name. Used from {{tll|Navbox/row}} | |||
;<code>list</code> | |||
:List of articles to be linked to. Usually separated with a bullet point <code>•</code> or {{code|•}} | |||
==Examples== | |||
{{Navbox | {{Navbox | ||
| title = Example | | title = Example | ||
| above = above | |||
| below = below | |||
| content = {{Navbox | | content = {{Navbox | ||
| title = Sub-title | | title = Sub-title | ||
| above = above | |||
| content = {{Navbox/row | | content = {{Navbox/row | ||
| group = group1 | | group = group1 | ||
Line 35: | Line 64: | ||
</noinclude><includeonly><div class="navbox"> | </noinclude><includeonly><div class="navbox"> | ||
<div class="navbox-row navbox-title">{{#if:{{{title|}}}|{{{title}}}|Title}}</div> | <div class="navbox-row navbox-title">{{#if:{{{title|}}}|{{{title}}}|Title}}</div> | ||
{{#if:{{{above|}}}|<div class="navbox-row mw-collapsible">{{{above}}}</div>}} | {{#if:{{{above|}}}|<div class="navbox-row mw-collapsible" id="mw-customcollapsible-navbox-{{{id|[[Category:Incorrect template usage]]}}}" style="background-color:#EAECF0; color:black;">{{{above}}}</div>}} | ||
<div class="navbox-section mw-collapsible" id="mw-customcollapsible-navbox-{{{id|[[Category:Incorrect template usage]]}}}"> | <div class="navbox-section mw-collapsible" id="mw-customcollapsible-navbox-{{{id|[[Category:Incorrect template usage]]}}}"> | ||
<div>{{{content|}}}</div> | <div>{{{content|}}}</div> |
Revision as of 06:50, 5 January 2024
This template is currently under construction.
It is in the process of an expansion or major restructuring. You are welcome to assist in its construction by editing it as well.
If this page has not been updated in a while, please replace this notice with
{{Improve}}
. Last edit was 05/01/2024.Usage
{{Navbox | title = Example | content = {{Navbox/row | group = group1 | list = list, list, list, list, list, list, list, list, list, list, list, list, }} | id = example }}
Parameters
title
Required- Title.
content
Required- Container for the conntent.
{{Navbox/row}}
will usually be here. id
Required- The unique ID for the navbox.
image
- Image to be displayed beneath the title and next to the content.
above
- Displayed beneath the title but below the content.
below
- Displayed beneath the content.
The following are from {{Navbox/row}}
.
group
- Group name. Used from
{{Navbox/row}}
list
- List of articles to be linked to. Usually separated with a bullet point
•
or•
Examples
Editors can experiment in this template's sandbox.