Template:KernelBox: Difference between revisions

From HPC Wiki
Jump to:navigation Jump to:search
(Created page with "<includeonly>{{PreBox|{{{1}}}|title=<strong>{{{title|}}}</strong>|label={{#msg:template-kernel|{{SUBPAGENAME}}}}|labelcolor=#4E9A06|lang=text}}</includeonly><noinclude>{{Docum...")
 
No edit summary
Line 1: Line 1:
<includeonly>{{PreBox|{{{1}}}|title=<strong>{{{title|}}}</strong>|label={{#msg:template-kernel|{{SUBPAGENAME}}}}|labelcolor=#4E9A06|lang=text}}</includeonly><noinclude>{{Documentation}}</noinclude>
<includeonly>{{PreBox|{{{1}}}|title=<strong>{{{title|}}}</strong>|label=<font color=white size=0.9>KERNEL</font>|labelcolor=#4E9A06|lang=text}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 16:02, 15 December 2016

[edit

Documentation

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.

Displays a block element with for required kernel options

Important
The contents may contain special characters (| or =) that break the MediaWiki templating system. You have these options to put the contents if you need to escape these characters:
  1. {{KernelBox|1=contents}}
  2. {{KernelBox|<nowiki>contents</nowiki>}}
  3. {{KernelBox|<pre>contents</pre>}}

Parameters

Parameter name Required? Default value Description
Anonymous parameter 1 Yes (n/a) Kernel configuration
title No (n/a) Title to display in the box header

Usage

See the template's testcases:

No parameter
Wiki code {{KernelBox}}

Main version Template:XYZ
Sandbox version Template:XYZ/sandbox
Parameters: 1=Some kernel options.
Wiki code {{KernelBox|1=Some kernel options.}}

Main version
KERNEL
Some kernel options.
Sandbox version
KERNEL
Some kernel options.
Parameters: title=KernelBox example, 1=Some kernel options.
Wiki code {{KernelBox|title=KernelBox with title example|1=Some kernel options.}}

Main version
KERNEL KernelBox with title example
Some kernel options.
Sandbox version
KERNEL KernelBox with title example
Some kernel options.

See also

Note
The above documentation is transcluded from Template:KernelBox/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.