Template:Helpbox: Difference between revisions
From Gerald R. Lucas
No edit summary |
m (1 revision imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Sidebar | <includeonly>{{Sidebar | ||
| name = {{#if:{{{templatename|}}} |{{{templatename}}} |{{{name|{{PAGENAME}}}}} }} | | name = {{#if:{{{templatename|}}} |{{{templatename}}} |{{{name|{{PAGENAME}}}}} }} | ||
| float = {{{float|right}}} | | float = {{{float|right}}} | ||
| class = {{{class|{{{bodyclass|}}}}}} | | class = {{{class|{{{bodyclass|}}}}}} | ||
| style = width:auto;background:#f5faff;font-size: | | style = width:auto;background:#f5faff;font-size:90%;line-height:1.6em; {{{1|}}} | ||
| basestyle = background:#cee0f2; | | basestyle = background:#cee0f2; | ||
| titlestyle = font-size: | | titlestyle = font-size:130%;padding-left:0.4em;padding-right:0.4em; <!--(gap before first heading/content:)-->display:block;margin-bottom:6px; {{{titlestyle|}}} | ||
| title = {{{title|{{{name|}}}}}} | | title = {{{title|{{{name|}}}}}} | ||
| headingstyle = padding:0.1em 0.25em 0.15em;{{{headingstyle|}}} | | headingstyle = padding:0.1em 0.25em 0.15em;{{{headingstyle|}}} | ||
| contentstyle = padding:0. | | contentstyle = padding-top:0.15em; | ||
| heading1 = {{{group1|}}} | | heading1 = {{{group1|}}} | ||
Line 56: | Line 56: | ||
}} }} | }} }} | ||
}}<noinclude>{{Documentation}}</noinclude> | }}</includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 09:58, 13 July 2020
This template allows a help-related navigation template to be set up relatively quickly by supplying it with one or more lists of links.
Usual syntax
{{Helpbox | name = <!-- or: | templatename = --> | title = <!-- or, if templatename used: | name = --> | group1 = | list1 = | group2 = | list2 = <!-- etc, to: --> | group20 = | list20 = }}
Parameters
Required
- title (or, if templatename used (see below), name)
- The template's title, centered at the top of the template.
- listn
- (i.e. list1, list2, etc.) The body of the template, usually a list of links. Format is inline, although the text can be entered on separate lines if the entire list is enclosed within
<div>...</div>
. At least one list parameter is required. Each listn may be preceded by a corresponding groupn parameter, if provided (see below). There is a limit of 20 lists/groups in a template.
- (i.e. list1, list2, etc.) The body of the template, usually a list of links. Format is inline, although the text can be entered on separate lines if the entire list is enclosed within
Optional
- groupn
- (i.e. group1, group2, etc.) If specified, text appears in a header displayed above listn.
- first unnamed parameter
- Inline CSS for the template.
- name (or, if name used as above, templatename)
- The template's pagename, activating the inclusion of the V•T•E links in its bottom righthand corner. Template:Helpbox's pagename, for example, is "Helpbox".
Example
Wikipedia policy |
---|
Article standards |
Working with others |
Global principles |
{{Helpbox |width:17.5em | name = Helpbox/doc | class = plainlist | title = [[:Category:Wikipedia policies|Wikipedia policy]] | group1 = Article standards | list1 = *[[Wikipedia:Neutral point of view|Neutral point of view]] *[[Wikipedia:Verifiability|Verifiability]] *[[Wikipedia:No original research|No original research]] *[[Wikipedia:Biographies of living persons|Biographies of living persons]] | group2 = Working with others | list2 = *[[Wikipedia:Civility|Civility]] *[[Wikipedia:Consensus|Consensus]] *[[Wikipedia:No personal attacks|No personal attacks]] *[[Wikipedia:Dispute resolution|Dispute resolution]] *[[WP:LEGAL|No legal threats]] | group3 = Global principles | list3 = *[[Wikipedia:What Wikipedia is not|What Wikipedia is not]] *[[Wikipedia:Ignore all rules|Ignore all rules]] }}
The above documentation is transcluded from Template:Helpbox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |