Template:Helpbox: Difference between revisions

From Black Cat Studios
Jump to navigationJump to search
en>Xaosflux
m (Changed protection settings for "Template:Helpbox": HR, used in FP interfacetype pages such as Wikipedia:Text of Creative Commons Attribution-ShareAlike 3.0 Unported License ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
(Created page with "{{Documentation subpage}} <includeonly>{{Intricate template}}</includeonly> {{uses TemplateStyles|Template:Helpbox/styles.css}} {{Generic template demo |title |group1 |list1 |group2 |list2 |list3={{longitem|{{{list3}}}<br/>''without {{{group3}}}''}} |list4=''ditto'' {{{list4}}} |group5<!--={{longitem|{{{group5}}}<br/>{{nobold|''without {{{list5}}}''}}}}--> |group6 |list6={{{list6}}}<br/>''...... etc ......'' |group20 |list20}} This template allows a help-related Wikip...")
Line 1: Line 1:
<includeonly>{{Sidebar
{{Documentation subpage}}
| name = {{#if:{{{templatename|}}} |{{{templatename}}} |{{{name|{{PAGENAME}}}}} }}
<includeonly>{{Intricate template}}</includeonly>
| templatestyles = Template:Helpbox/styles.css
{{uses TemplateStyles|Template:Helpbox/styles.css}}
| child templatestyles = {{{child templatestyles|}}}
{{Generic template demo |title |group1 |list1 |group2 |list2 |list3={{longitem|{{{list3}}}<br/>''without {{{group3}}}''}} |list4=''ditto'' {{{list4}}} |group5<!--={{longitem|{{{group5}}}<br/>{{nobold|''without {{{list5}}}''}}}}--> |group6 |list6={{{list6}}}<br/>''...... etc ......'' |group20 |list20}}
| float = {{{float|}}}
| class = help-box noprint {{{class|{{{bodyclass|}}}}}}
| style = {{{1|}}}


| titlestyle = {{{titlestyle|}}}
This template allows a help-related [[Wikipedia:Navigation template|navigation template]] to be set up relatively quickly by supplying it with one or more lists of links.
| title = {{{title|{{{name|}}}}}}
| headingstyle = {{{headingstyle|}}}


| heading1  = {{{group1|}}}
== Usual syntax ==
| content1  = {{{list1|}}}
| heading2  = {{{group2|}}}
| content2  = {{{list2|}}}
| heading3  = {{{group3|}}}
| content3  = {{{list3|}}}
| heading4  = {{{group4|}}}
| content4  = {{{list4|}}}
| heading5  = {{{group5|}}}
| content5  = {{{list5|}}}
| heading6  = {{{group6|}}}
| content6  = {{{list6|}}}
| heading7  = {{{group7|}}}
| content7  = {{{list7|}}}
| heading8  = {{{group8|}}}
| content8  = {{{list8|}}}
| heading9  = {{{group9|}}}
| content9  = {{{list9|}}}
| heading10 = {{{group10|}}}
| content10 = {{{list10|}}}
| heading11 = {{{group11|}}}
| content11 = {{{list11|}}}
| heading12 = {{{group12|}}}
| content12 = {{{list12|}}}
| heading13 = {{{group13|}}}
| content13 = {{{list13|}}}
| heading14 = {{{group14|}}}
| content14 = {{{list14|}}}
| heading15 = {{{group15|}}}
| content15 = {{{list15|}}}
| heading16 = {{{group16|}}}
| content16 = {{{list16|}}}
| heading17 = {{{group17|}}}
| content17 = {{{list17|}}}
| heading18 = {{{group18|}}}
| content18 = {{{list18|}}}
| heading19 = {{{group19|}}}
| content19 = {{{list19|}}}
| heading20 = {{{group20|}}}
| content20 = {{{list20|}}}


| navbar = {{#if:{{{templatename|}}} |
<syntaxhighlight lang="wikitext" style="overflow:auto;">
    | {{#if:{{{title|}}} |{{#if:{{{name|}}} | |none}}
{{Helpbox
        | none
| name    =  <!-- or: | templatename = -->
        }}
| title  =  <!-- or, if templatename used: | name = -->
    }}
 
}}</includeonly><noinclude>
| group1  =
{{Documentation}}
| list1  =
</noinclude>
 
| group2  =
| list2  =
 
<!-- etc, to: -->
 
| group20 =
| list20  =
 
}}
</syntaxhighlight>
 
== Parameters ==
 
===Required===
; ''title'' &nbsp;{{nobold|(or, if ''templatename'' used (see below),}} ''name''{{nobold|)}}
: The template's title, centered at the top of the template.
; ''list<sub>n</sub>''
: (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 {{tag|div}}.  At least one ''list'' parameter is required. Each ''list<sub>n</sub>'' may be preceded by a corresponding ''group<sub>n</sub>'' parameter, if provided (see below). There is a limit of 20 lists/groups in a template.
 
===Optional===
; ''group<sub>n</sub>''
: (i.e. ''group1'', ''group2'', etc.) If specified, text appears in a header displayed above ''list<sub>n</sub>''.
; first unnamed parameter
: Inline [[CSS]] for the template.
; ''name'' &nbsp;{{nobold|(or, if ''name'' used as above,}} ''templatename''{{nobold|)}}
: The template's pagename, activating the inclusion of the {{smaller|V•T•E}} links in its bottom righthand corner. [[Template:Helpbox]]'s pagename, for example, is "Helpbox".
 
== Example ==
 
{{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]]
}}
 
<syntaxhighlight lang="wikitext" style="overflow:auto;">
{{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]]
}}
</syntaxhighlight>
 
<includeonly>{{Sandbox other||
 
[[Category:Sidebar meta-templates]]
}}</includeonly>

Revision as of 03:30, 19 June 2023


Template loop detected: Template:Generic template demo

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

<syntaxhighlight lang="wikitext" style="overflow:auto;"> Template loop detected: Template:Helpbox </syntaxhighlight>

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.

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

Template loop detected: Template:Helpbox

<syntaxhighlight lang="wikitext" style="overflow:auto;"> Template loop detected: Template:Helpbox </syntaxhighlight>

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

<syntaxhighlight lang="wikitext" style="overflow:auto;">


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

<syntaxhighlight lang="wikitext" style="overflow:auto;"> Template loop detected: Template:Helpbox </syntaxhighlight>

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.

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

Template loop detected: Template:Helpbox

<syntaxhighlight lang="wikitext" style="overflow:auto;"> Template loop detected: Template:Helpbox </syntaxhighlight> </syntaxhighlight>

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.

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


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

<syntaxhighlight lang="wikitext" style="overflow:auto;"> Template loop detected: Template:Helpbox </syntaxhighlight>

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.

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

Template loop detected: Template:Helpbox

<syntaxhighlight lang="wikitext" style="overflow:auto;"> Template loop detected: Template:Helpbox </syntaxhighlight>

<syntaxhighlight lang="wikitext" style="overflow:auto;">


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

<syntaxhighlight lang="wikitext" style="overflow:auto;"> Template loop detected: Template:Helpbox </syntaxhighlight>

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.

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

Template loop detected: Template:Helpbox

<syntaxhighlight lang="wikitext" style="overflow:auto;"> Template loop detected: Template:Helpbox </syntaxhighlight> </syntaxhighlight>