Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Sidebar/doc: Difference between revisions

Template page
{{Documentation subpage}} {{Lua|Module:Sidebar}} {{High-risk|136,000+}} <!-----Edit template documentation below this line-----> {{for|horizontally-aligned navigation|Template:Navbox}} This template is a metatemplate for the creatio
 
Remove nonexistent templates (Generic template demo, semisub, \\) from doc
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{Lua|Module:Sidebar}}
{{Lua|Module:Sidebar}}
{{High-risk|136,000+}}
<!-----Edit template documentation below this line----->
<!-----Edit template documentation below this line----->
{{for|horizontally-aligned navigation|Template:Navbox}}
{{for|horizontally-aligned navigation|Template:Navbox}}
Line 10: Line 9:


== Usage ==
== Usage ==
{{Generic template demo |name={{PAGENAME}} |pretitle |title |image |above |heading1 |content1 |heading2 |content2 |heading3 |content3 |content4=''…… etc ……'' |heading35 |content35 |below}}
|pretitle |title |image |above |heading1 |content1 |heading2 |content2 |heading3 |content3 |content4=''…… etc ……'' |heading35 |content35 |below}}
(parameters with infrequent use omitted)
(parameters with infrequent use omitted)
<pre style="overflow:auto;">
<pre style="overflow:auto;">
Line 70: Line 69:
|-
|-
| {{para|headingstyle}}
| {{para|headingstyle}}
|style="padding-left:0.5em;"| Use to alter the default [[Help:Cascading Style Sheets|CSS]] styling set for section headings. <br />To alter the CSS styling for a specific section's heading, use {{para|heading{{semisub|n}}style}}, where ''n'' is the number of the section.
|style="padding-left:0.5em;"| Use to alter the default [[Help:Cascading Style Sheets|CSS]] styling set for section headings. <br />To alter the CSS styling for a specific section's heading, use {{para|headingnstyle}}, where ''n'' is the number of the section.
|-
|-
| {{para|contentstyle}}
| {{para|contentstyle}}
|style="padding-left:0.5em;"| Use to alter the default CSS styling set for section content. <br />To alter the CSS styling for a particular section's content, use {{para|content{{semisub|n}}style}}, where ''n'' is the number of the section.
|style="padding-left:0.5em;"| Use to alter the default CSS styling set for section content. <br />To alter the CSS styling for a particular section's content, use {{para|contentnstyle}}, where ''n'' is the number of the section.
|-
|-
| {{para|heading1}}<br/>{{para|content1}}
| {{para|heading1}}<br/>{{para|content1}}
|style="padding-left:0.5em;"| First section's heading{{\}}content. ''content1'' is required if ''heading1'' is also to appear.
|style="padding-left:0.5em;"| First section's heading|content. ''content1'' is required if ''heading1'' is also to appear.
|-
|-
| {{para|heading2}}<br/>{{para|content2}}
| {{para|heading2}}<br/>{{para|content2}}
|style="padding-left:0.5em;"| Second section's heading{{\}}content. (''content2'' required if ''heading2'' also to appear; etc.)
|style="padding-left:0.5em;"| Second section's heading|content. (''content2'' required if ''heading2'' also to appear; etc.)
|-
|-
| {{para|heading3}}<br/>{{para|content3}}
| {{para|heading3}}<br/>{{para|content3}}
|style="padding-left:0.5em;"| Third section's heading{{\}}content.
|style="padding-left:0.5em;"| Third section's heading|content.
|-
|-
|colspan="2" style="padding-left:0.5em;"| ...... etc ......
|colspan="2" style="padding-left:0.5em;"| ...... etc ......
Line 127: Line 126:
*{{para|abovestyle}}
*{{para|abovestyle}}
*{{para|headingstyle}}
*{{para|headingstyle}}
*{{para|heading{{semisub|n}}style}}
*{{para|headingnstyle}}
*{{para|contentstyle}}
*{{para|contentstyle}}
*{{para|content{{semisub|n}}style}}
*{{para|contentnstyle}}
*{{para|belowstyle}}
*{{para|belowstyle}}
*{{longitem|{{para|navbarstyle}}<br/>{{nbsp|2}}{{smaller|(or {{para|tnavbarstyle}})}}}}
*{{longitem|{{para|navbarstyle}}<br/>{{nbsp|2}}{{smaller|(or {{para|tnavbarstyle}})}}}}
Line 136: Line 135:
|-
|-
| {{para|cellspacing}}<br/>{{para|cellpadding}}
| {{para|cellspacing}}<br/>{{para|cellpadding}}
|style="padding-left:0.5em;"| Use to amend the default cellspacing{{\}}cellpadding set for the infobox-class table with which the sidebar is built.
|style="padding-left:0.5em;"| Use to amend the default cellspacing|cellpadding set for the infobox-class table with which the sidebar is built.
|-
|-
| {{longitem|{{para|navbar}}{{nowrap|{{nbsp|2}}{{smaller|(or {{para|tnavbar}})}}}}}}
| {{longitem|{{para|navbar}}{{nowrap|{{nbsp|2}}{{smaller|(or {{para|tnavbar}})}}}}}}
Line 263: Line 262:


== Full blank syntax ==
== Full blank syntax ==
{{Generic template demo |name= |outertitle |topimage |pretitle |title |image |caption |above |heading1 |content1 |heading2 |content2 |heading3 |content3 |content4=''…… etc ……'' |heading35 |content35 |below}}
(omitting heading4/content4 to penultimate heading/content parameters)
(omitting heading4/content4 to penultimate heading/content parameters)


Line 354: Line 351:
<includeonly>
<includeonly>
{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}} |
{{#ifeq:{{PAGENAME}}|{{BASEPAGENAME}} |
[[Category:Sidebar templates| ]]
[[Category:Sidebar_templates| ]]
[[Category:Wikipedia metatemplates]]
[[Category:Commons_metatemplates]]
[[Category:Navigational boxes| ]]
[[Category:Navigational_boxes| ]]
[[Category:Exclude in print]]
[[Category:Exclude_in_print]]
}}
}}
</includeonly>
</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.