Template:Helpbox: Difference between revisions

From Black Cat Studios
Jump to navigationJump to search
(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...")
No edit summary
Line 1: Line 1:
{{Documentation subpage}}
<includeonly>{{Sidebar
<includeonly>{{Intricate template}}</includeonly>
| name = {{#if:{{{templatename|}}} |{{{templatename}}} |{{{name|{{PAGENAME}}}}} }}
{{uses TemplateStyles|Template:Helpbox/styles.css}}
| 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}}
| child templatestyles = {{{child templatestyles|}}}
| float = {{{float|}}}
| class = help-box noprint {{{class|{{{bodyclass|}}}}}}
| style = {{{1|}}}


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.
| titlestyle = {{{titlestyle|}}}
| title = {{{title|{{{name|}}}}}}
| headingstyle = {{{headingstyle|}}}


== Usual syntax ==
| heading1  = {{{group1|}}}
| 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|}}}


<syntaxhighlight lang="wikitext" style="overflow:auto;">
| navbar = {{#if:{{{templatename|}}} |
{{Helpbox
    | {{#if:{{{title|}}} |{{#if:{{{name|}}} | |none}}
| name    =  <!-- or: | templatename = -->
        | none
| title  =  <!-- or, if templatename used: | name = -->
        }}
 
    }}
| group1  =
}}</includeonly><noinclude>
| list1  =
{{Documentation}}
 
</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:56, 19 June 2023