Template:InfoBox header
From Gentoo Wiki
[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.
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.
Use this template to add a header to an infobox.
Parameters
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Text to display in the heading | String | required |
Anchor | anchor | An anchor for linking to the header (see the test cases for an example) | String | optional |
Usage
See the template's testcases:
Correct
One anonymous parameter
Wiki code
{{InfoBox stack| {{InfoBox header|Some text}} }}
Main version
Some text
Sandbox version
Some text
One anonymous parameter + anchor (#foo should work)
Wiki code
{{InfoBox stack| {{InfoBox header|Some text|anchor=foo}} }}
Main version
Some text
Sandbox version
Some text
Incorrect
No parameter (exposed wikicode)
Wiki code
{{InfoBox stack| {{InfoBox header}} }}
Main version
{{{1}}}
Sandbox version
{{{1}}}
Note
The above documentation is transcluded from Template:InfoBox header/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:InfoBox header/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.)