Template:Navbox: Difference between revisions
Jump to navigation
Jump to search
w>Trialpears (Remove TfD notice as it wouldn't involve any changes to this template.) |
m (1 revision imported) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
< | <div style="border:4px solid #79b;border-radius:16px;padding:10px;background:#ace;margin:4px"><b style="font-size:18px;">{{{header}}}</b><br> | ||
{{ | {{{body}}}</div> | ||
</noinclude> | <noinclude>{{documentation}} | ||
<templatedata> | |||
{ | |||
"params": { | |||
"header": { | |||
"description": "Header of the navbox, displayed in 16px bold font.", | |||
"type": "string", | |||
"default": "(Page writer's father 404 not found)", | |||
"autovalue": "This page is ", | |||
"required": true | |||
}, | |||
"body": { | |||
"description": "Displayed below the header in 11px normal font.", | |||
"type": "string", | |||
"default": "Why would the page writer go into the source editor just to see this text in the preview?", | |||
"autovalue": "Please do not the write.", | |||
"required": true | |||
} | |||
} | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 00:45, 19 January 2023
{{{header}}}
{{{body}}}
{{{body}}}
- Description
- This template is used to create a basic navigation box. You can do so by calling the template, via the steps under "Syntax", but it is recommended to copy the code verbatim via the steps under "Navbox Creation".
- Navbox Creation
<createbox> prefix=Template: preload=Template:Navbox editintro=Template:Navbox/doc buttonlabel=Make your navbox! default = Navbox Foo </createbox>
- Think of a name for your navbox, like "Navbox Foo". Type it in the above field, press the button, and save the page immediately. Be ready to return to this page to see the rest of the instructions.
- Edit the resulting page in source mode.
- Replace
{{{header}}}
with the text you would like to appear in the header. - Replace
{{{body}}}
with the text you would like to appear in the body. - To add another section, copy these four lines of code immediately below the lines in the existing code that they resemble:
|- ! style="padding:0.2em 0.5em;" nowrap="nowrap" class="color1" | {{{header}}} |- | style="padding:0.2em 0.5em;" | {{{body}}}
Save the page once you have added as many sections as you needed, and filled them with content. You may also want to create a /doc subpage explaining that to call the resulting template, one must only type {{Navbox Foo}}
, or rather, whatever we decided to name the template in step 1.
- Syntax
{{navbox |header=Land of Bob |body=This [[place]] and that [[place]]. }}
- Results in...
Land of Bob
This [[place]] and that [[place]].
This [[place]] and that [[place]].
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
header | header | Header of the navbox, displayed in 16px bold font.
| String | required |
body | body | Displayed below the header in 11px normal font.
| String | required |