Template:KernelBox
From Gentoo Wiki
[edit]
Documentation
Not to be confused with Template:KconfigBox.
Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
Displays a block element for kernel options.
Important
File contents may contain the special characters
File contents may contain the special characters
|
or =
which are incompatible with MediaWiki's templating system. Substitute |
with {{!}}
and =
with {{=}}
for arguments to the 1=
parameter for correct template usage. If substitution is ignored, then formatting will not work correctly with this template.Parameters
Displays a block element for kernel options
Parameter | Description | Type | Status | |
---|---|---|---|---|
Kernel configuration | 1 | no description | Content | required |
Title | title | Additional title to display in the box header | String | suggested |
Usage
See the template's testcases:
Correct
Empty unnamed parameter with {{KEntry}} inside preformatted text (note the single space at the start of each line)
Wiki code
{{KernelBox|1=}} Device Drivers ---> Input device support ---> <*> {{KEntry|Event interface|INPUT_EVDEV}}
Main version
Device Drivers --->
Input device support --->
<*> Event interface Search for <code>CONFIG_INPUT_EVDEV</code> to find this item.
Sandbox version
Device Drivers --->
Input device support --->
<*> Event interface Search for <code>CONFIG_INPUT_EVDEV</code> to find this item.
Parameters: 1=Some kernel options. | |
---|---|
Wiki code | {{KernelBox|1=Some kernel options.}}
|
Main version | Some kernel options.
|
Sandbox version |
|
Parameters: title=KernelBox example, 1=Some kernel options. | |
---|---|
Wiki code | {{KernelBox|title=KernelBox with title example|1=Some kernel options.}}
|
Main version | Some kernel options.
|
Sandbox version |
|
Incorrect
No parameter | |
---|---|
Wiki code | {{KernelBox}}
|
Main version | {{{1}}}
|
Sandbox version |
|
{{KEntry}} inside parameter
1
Wiki code
{{KernelBox|1= Device Drivers ---> Input device support ---> <*> {{KEntry|Event interface|INPUT_EVDEV}} }}
Main version
Device Drivers --->
Input device support --->
<*> Event interface <span class="smw-highlighter" data-type="8" data-state="inline" data-title="Note" title="Search for CONFIG_INPUT_EVDEV to find this item."><span class="smwtticon note"></span><span class="smwttcontent">[[:Kernel/Configuration#Search_modules|Search]] for <code>CONFIG_INPUT_EVDEV</code> to find this item.</span></span>
Sandbox version
See also
- {{CodeBox}}
- {{FileBox}}
- {{KconfigBox}}
- {{PreBox}} - Parent template of *Box templates.
Note
The above documentation is transcluded from Template:KernelBox/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)
The above documentation is transcluded from Template:KernelBox/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)