Template:Sidebar: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Added more sections and content boxes)
Line 52: Line 52:
-->{{#if:{{{section15|}}}|<div style="background:#232323; padding-block:.5em; {{{section15style}}}">{{{section15}}}</div>|}}<!--
-->{{#if:{{{section15|}}}|<div style="background:#232323; padding-block:.5em; {{{section15style}}}">{{{section15}}}</div>|}}<!--
-->{{#if:{{{content15|}}}|<div style="background:#303030; max-width:{{{width|300px}}};  padding-inline:.5em; padding-block:.5em; {{{content15style}}}">{{{content15|}}}</div>|}}<!--
-->{{#if:{{{content15|}}}|<div style="background:#303030; max-width:{{{width|300px}}};  padding-inline:.5em; padding-block:.5em; {{{content15style}}}">{{{content15|}}}</div>|}}<!--
-->{{#if:{{{section16|}}}|<div style="background:#232323; padding-block:.5em; {{{section16style}}}">{{{section16}}}</div>|}}<!--
-->{{#if:{{{content16|}}}|<div style="background:#303030; max-width:{{{width|300px}}};  padding-inline:.5em; padding-block:.5em; {{{content16style}}}">{{{content16|}}}</div>|}}<!--
-->{{#if:{{{section17|}}}|<div style="background:#232323; padding-block:.5em; {{{section17style}}}">{{{section17}}}</div>|}}<!--
-->{{#if:{{{content17|}}}|<div style="background:#303030; max-width:{{{width|300px}}};  padding-inline:.5em; padding-block:.5em; {{{content17style}}}">{{{content17|}}}</div>|}}<!--
-->{{#if:{{{section18|}}}|<div style="background:#232323; padding-block:.5em; {{{section18style}}}">{{{section18}}}</div>|}}<!--
-->{{#if:{{{content18|}}}|<div style="background:#303030; max-width:{{{width|300px}}};  padding-inline:.5em; padding-block:.5em; {{{content18style}}}">{{{content18|}}}</div>|}}<!--
-->{{#if:{{{section19|}}}|<div style="background:#232323; padding-block:.5em; {{{section19style}}}">{{{section19}}}</div>|}}<!--
-->{{#if:{{{content19|}}}|<div style="background:#303030; max-width:{{{width|300px}}};  padding-inline:.5em; padding-block:.5em; {{{content19style}}}">{{{content19|}}}</div>|}}<!--
-->{{#if:{{{section20|}}}|<div style="background:#232323; padding-block:.5em; {{{section20style}}}">{{{section20}}}</div>|}}<!--
-->{{#if:{{{content20|}}}|<div style="background:#303030; max-width:{{{width|300px}}};  padding-inline:.5em; padding-block:.5em; {{{content20style}}}">{{{content20|}}}</div>|}}<!--


-->{{#if:{{{footer|}}}|<div style="background:#232323; border-bottom-left-radius:.3em; border-bottom-right-radius:.3em; padding-block:.5em; {{{footerstyle}}}">{{{footer}}}</div>|}}<!--
-->{{#if:{{{footer|}}}|<div style="background:#232323; border-bottom-left-radius:.3em; border-bottom-right-radius:.3em; padding-block:.5em; {{{footerstyle}}}">{{{footer}}}</div>|}}<!--

Revision as of 23:26, 31 May 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Gnome app science.png
This template uses a Testcases subpage
You can test how this page looks with it's different skins and parsers.

This is a metatemplate used to aid in the creation of sidebar templates.

Sub-metatemplates

This template has 1 sub-metatemplate called {{infobox}}.

Grand-metatemplates

This template has 1 grand-metatemplate called {{infobox template}}.

Testcases

Testcases for this template can be located on the testcases subpage.

Copy and Paste

{{Sidebar | image = | title = | header = | section1 = | content1 = | footer = }}

Usage & Preview

{{Sidebar}}
Parameter Description Example
{{{header}}} Header content
| header = Foo bar
{{{section <1-10>}}} Main content section dividers
| section1 = Test
{{{content <1-10>}}} Main content
| content1 = Example
{{{footer}}} Footer content
| footer = Placeholder
{{{width}}} Width of the sidebar container and sidebar image
| width = 320px
Image parameters
{{{image}}} Sidebar image
| image = Software Cover - The Lab
{{{imagewidth}}} Sidebar image width
| imagewidth = 64px
{{{imagelink}}} Sidebar image link
| imagelink = Portal 2
Style parameters
{{{headerstyle}}} Header styling
| headerstyle = font-family:sans-serif;
{{{section <1-20> style}}} Section styling
| sectionstyle1 = text-rendering:optimizeSpeed;
{{{content <1-20> style}}} Content styling
| contentstyle1 = background:gray;
{{{footerstyle}}} Footer styling
| footerstyle = text-align:right;
{{{float}}} For specifying how or if the sidebar will float
| float = left

{{{header}}}

Software Cover - The Lab.jpg
{{{section}}}
{{{content}}}
{{{footer}}}