Template:Navbox (BZ)/doc: Difference between revisions

From Subnautica Wiki
m (Zone of Endless moved page Template:Navbox/doc (BZ) to Template:Navbox (BZ)/doc without leaving a redirect: Fixing subpage name to match parent page rename)
mNo edit summary
Line 2: Line 2:
: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".
: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
;Navbox Creation
<inputbox>
<createbox>
type=create
prefix=Template:
prefix=Template:
preload=Template:Navbox
preload=Template:Navbox (BZ)
editintro=Template:Navbox/doc
editintro=Template:Navbox (BZ)/doc
buttonlabel=Make your navbox!
buttonlabel=Make your navbox!
default = Navbox Foo
default = Navbox Foo
</createbox>
</inputbox>
#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.
#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.
#Edit the resulting page in source mode.
Line 23: Line 24:
;Syntax
;Syntax


<pre>{{navbox
<pre>{{navbox (BZ)
|header=Land of Bob
|header=Land of Bob
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>.
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>.
Line 30: Line 31:
:Results in...
:Results in...


{{navbox
{{navbox (BZ)
|header=Land of Bob
|header=Land of Bob
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>.
|body=This <nowiki>[[place]]</nowiki> and that <nowiki>[[place]]</nowiki>.

Revision as of 06:17, 5 August 2021

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

  1. 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.
  2. Edit the resulting page in source mode.
  3. Replace {{{header}}} with the text you would like to appear in the header.
  4. Replace {{{body}}} with the text you would like to appear in the body.
  5. 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 (BZ)
|header=Land of Bob
|body=This [[place]] and that [[place]].
}}
Results in...

Lua error in package.lua at line 80: module 'Dev:Navbox' not found.