మూస:Sidebar: కూర్పుల మధ్య తేడాలు
Dinoguy1000 (చర్చ | రచనలు) చి protection template |
Dinoguy1000 (చర్చ | రచనలు) చి {{{below}}} gets shown here, so also show {{{above}}} |
||
పంక్తి 31: | పంక్తి 31: | ||
------------------------------- above ----------------------------------- |
------------------------------- above ----------------------------------- |
||
-->{{#if:{{{above|}}} |<tr><td style="padding:0.3em 0.4em 0.3em; font-weight:bold; {{{abovestyle|}}}">{{{above}}}<!---->}}<!-- |
-->{{#if:{{{above<includeonly>|</includeonly>}}} |<tr><td style="padding:0.3em 0.4em 0.3em; font-weight:bold; {{{abovestyle|}}}">{{{above}}}<!---->}}<!-- |
||
--------------------------- sections 1 to 4 ----------------------------- |
--------------------------- sections 1 to 4 ----------------------------- |
18:21, 16 జూలై 2009 నాటి కూర్పు
This template is a metatemplate for the creation of sidebar templates, i.e. boxes that are vertically-aligned navigation templates. Sidebars, like infoboxes, are usually positioned on the right-hand side of a page. {{Sidebar with collapsible lists}} is a version of {{Sidebar}} that adds collapsibility to its sections, i.e. the means to show or hide sections by clicking links beside their headings. Usage
(parameters with infrequent use omitted) {{Sidebar | name = {{subst:PAGENAME}} | pretitle = | title = | image = | headingstyle = | contentstyle = | above = | heading1 = | content1 = | heading2 = | content2 = | heading3 = | content3 = <!-- etc, to: --> | heading35 = | content35 = | below = }} ParametersNo parameters are mandatory, but if the V · T · E {{navbar}} links along the bottom of a {{Sidebar}} are to function correctly (unless their appearance is suppressed; see the navbar parameter below), the parameter name needs to be set (to the name of the sidebar's page). (This does not apply if the Lua module that produces {{Sidebar}}, Module:Sidebar, is being used directly.) Principal parameters
Other parameters
Handling long links{{Normalwraplink}} may be used to handle links that should wrap within the sidebar or otherwise need to be made to wrap, in order to prevent the sidebar from becoming too wide. Use Use the EmbeddingOne sidebar template can be embedded into another using the
{{Sidebar | title = Top-level title | content1 = {{Sidebar |child=yes | title = First subsection | heading1 = Heading 1.1 | content1 = Content 1.1 }} | content2 = {{Sidebar |child=yes | title = Second subsection | heading1 = Heading 2.1 | content1 = Content 2.1 }} | below = "below" text }} Note in the examples above that the child sidebar is placed in a
{{Sidebar | title = Top-level title | heading1 = {{Sidebar |child=yes | title = First subsection | heading1 = Heading 1.1 | content1 = Content 1.1 }} | heading2 = {{Sidebar |child=yes | title = Second subsection | heading1 = Heading 2.1 | content1 = Content 2.1 }} | below = "below" text }} or:
{{Sidebar | title = Top-level title | heading1 = First subsection {{Sidebar |child=yes | heading1 = Heading 1.1 | content1 = Content 1.1 }} | heading2 = Second subsection {{Sidebar |child=yes | heading1 = Heading 2.1 | content1 = Content 2.1 }} | below = "below" text }} Note that omitting the Full blank syntax
(omitting heading4/content4 to penultimate heading/content parameters) {{Sidebar | name = {{subst:PAGENAME}} | class = <!-- or: | bodyclass = --> | style = <!-- or: | bodystyle = --> | width = | cellspacing = | cellpadding = | wraplinks = <!-- "true" otherwise (default:) omit --> | outertitleclass = | outertitlestyle = | outertitle = | topimageclass = | topimagestyle = | topimage = | topcaptionstyle = | topcaption = | pretitleclass = | pretitlestyle = | pretitle = | titleclass = | title = | imageclass = | imagestyle = | image = | captionstyle = | caption = | headingclass = | headingstyle = | contentclass = | contentstyle = | aboveclass = | abovestyle = | above = | heading1style = | heading1 = | content1style = | content1 = | heading2style = | heading2 = | content2style = | content2 = | heading3style = | heading3 = | content3style = | content3 = <!-- etc, to: --> | heading35style = | heading35 = | content35style = | content35 = | belowclass = | belowstyle = | below = | navbarstyle = <!-- or: | tnavbarstyle = --> | navbarfontstyle = <!-- or: | tnavbarfontstyle = --> | navbar = <!-- or: | tnavbar = --> <!-- "off", "none", etc otherwise (default:) omit --> }} Supplementary documentationSupplementary related documentation (concerning {{navbar}} use within a sidebar) is at Template:Navbar/doc. See also
|
|