Template:InfoBox stack
Documentation
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 display a "stack" of one or more right-floated infoboxes on a page.
To link to this stack use #infobox-stack
.
See the complete list of templates that can be used in an infobox stack, or the "See also" section of this article which lists most of them.
Parameters
Parameter name | Required? | Default value | Description |
---|---|---|---|
Anonymous parameter 1 |
Yes | (n/a) | First infobox template call; use that template's header parameter to show a heading at the top (see explanation below).
|
Anonymous parameter 2 |
No | (n/a) | Second infobox template call. |
Anonymous parameter 3 |
No | (n/a) | And so forth. There can be up to 10. |
Note that while this template itself understands only anonymous parameters, the various infobox templates (listed below) that are designed to be called inside of an {{InfoBox stack}} understand various named parameters (including header
), as explained in their documentation.
Typically only the first infobox template in a stack will use a header
parameter to display a heading. Occasionally there may be need for a second header midway through the stack; see the usage examples below for details.
Usage
{{InfoBox stack | {{InfoBox 1}} | {{InfoBox 2}} ... }}
See the template's testcases:
Correct
header
parameter is inside the call to {{InfoBox homepage}}
, it is not "seen" by {{InfoBox stack}} (which doesn't know anything about headers).
{{InfoBox stack | {{InfoBox homepage|http://www.samba.org|header=true}} | {{InfoBox wikipedia|Samba (software)}} | {{InfoBox todo|Write a guide|header=true}} }}
header
parameter must be of a different type than the first. The types of infobox templates and the headings they provide are listed below.
{{InfoBox stack | {{InfoBox homepage|http://www.samba.org|header=true}} | {{InfoBox wikipedia|Samba (software)}} | {{InfoBox header|Custom heading}} | {{InfoBox|info=Something new}} }}
{{InfoBox stack | {{InfoBox|info=An infobox|header=Heading text}} }}
Heading text
Heading text
header
parameter inside a call to {{InfoBox}}
is used to specify the complete code that generates the heading (i.e., plain text input will not formatted in any special way). See that template's documentation for more information.
{{InfoBox stack | {{InfoBox|info=An infobox| header={{InfoBox header|Heading text}} }} }}
header
parameter (in the {{InfoBox}} call) gets its value from the output of {{InfoBox header}}, which marks up its input in a standard way that fits in with the overall color scheme of this wiki. This is how header
should be implemented on any new special infobox that gets created.
{{InfoBox stack | {{InfoBox|info=#1}} | {{InfoBox|info=#2}} | ... | {{InfoBox|info=#10}} }}
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
{{InfoBox stack | {{InfoBox wikipedia|Gentoo|header=true}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} | {{InfoBox wikipedia|Gentoo}} }}
11
parameter.
Incorrect
{{InfoBox stack | {{InfoBox|info=#1}} | {{InfoBox|info=#2}} | ... | {{InfoBox|info=#11}} }}
11
parameter.- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
{{InfoBox stack}}
1
parameter.1
parameter.
See also[edit]
The templates below are implemented using {{InfoBox}}. They should also appear in Category:InfoBox templates, which may be more complete than this list.
These templates should be used within an {{InfoBox stack}}. Each should provide its own header
parameter, but if necessary {{InfoBox header}} can be used.
Underlined text indicates the default heading provided by header=true
for each type of template.
- For use in articles
- Resources
- {{InfoBox blog}} – Link to a blog.
- {{InfoBox codeberg}} – Link to Codeberg repository.
- {{InfoBox github}} – Link to GitHub repository.
- {{InfoBox gitlab}} – Link to GitLab repository.
- {{InfoBox gitweb}} – Link to source code repository.
- {{InfoBox guide}} – Link to a Gentoo guide (on this wiki).
- {{InfoBox homepage}} – Link to the official home page for a piece of software or hardware.
- {{InfoBox irc}} – Link to an IRC channel.
- {{InfoBox manpage}} – Link to a man page.
- {{InfoBox odoc}} – Link to official documentation, guides, how-tos, tutorials, etc. (not user-provided documentation).
- {{InfoBox ohloh}} – Link to an Ohloh project.
- {{InfoBox package}} – Link to package information at Packages.Gentoo.org.
- {{InfoBox project}} – Link to the related Gentoo project (on this wiki).
- {{InfoBox sourcehut}} - Link to Sourcehut project.
- {{InfoBox wiki}} – Link to an official project wiki.
- {{InfoBox wikipedia}} – Link to a Wikipedia article.
- Article status
- {{InfoBox dated}} – Article information is out of date.
- {{InfoBox delete}} – Article should be deleted. ({{Delete}} is more noticeable.)
- {{InfoBox todo}} – TODO list for the article.
- {{InfoBox wikify}} – Article needs additional wiki-formatting.
- For use on talk pages
- Talk status
- (Note that the simpler {{Talk}} can be used in place of both of these.)
- For use on user pages
- User info
- {{InfoBox user}} – Basic user information. (special heading: username of user page owner)
- {{InfoBox user dev}} – User is a Gentoo developer.
- {{InfoBox user since}} – When user started using Gentoo.
- Babel (spoken-language indicators)
The above documentation is transcluded from Template:InfoBox stack/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.)