Template:Infobox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added more entries and sections)
m (Added more entries and sections)
Line 127: Line 127:
| content15    = {{#ifeq:{{{entryid15|}}}|{{{entryinfo15|}}}||
| content15    = {{#ifeq:{{{entryid15|}}}|{{{entryinfo15|}}}||
<div style="display:grid; grid-template-columns:1fr 1fr;">
<div style="display:grid; grid-template-columns:1fr 1fr;">
   <div style="background:#232323; {{#if:{{{section10|}}}||border-top:1px solid #323232;}} color:white; padding:.3em; {{{entryid15style}}}"><b>{{{entryid15|}}}</b></div>
   <div style="background:#232323; {{#if:{{{section15|}}}||border-top:1px solid #323232;}} color:white; padding:.3em; {{{entryid15style}}}"><b>{{{entryid15|}}}</b></div>
   <div style="{{#if:{{{section15|}}}||border-top:1px solid #232323;}} padding:.3em; {{{entryinfo15style}}}">{{{entryinfo15|}}}</div>
   <div style="{{#if:{{{section15|}}}||border-top:1px solid #232323;}} padding:.3em; {{{entryinfo15style}}}">{{{entryinfo15|}}}</div>
</div>}}
</div>}}
| content15style = padding:0
| content15style = padding:0
| section16    = {{#if:{{{section16|}}}|<h4 style="font-size:14px; margin:0; padding:0;">{{{section15}}}</h4>|}}
| content16    = {{#ifeq:{{{entryid16|}}}|{{{entryinfo16|}}}||
<div style="display:grid; grid-template-columns:1fr 1fr;">
  <div style="background:#232323; {{#if:{{{section16|}}}||border-top:1px solid #323232;}} color:white; padding:.3em; {{{entryid16style}}}"><b>{{{entryid16|}}}</b></div>
  <div style="{{#if:{{{section16|}}}||border-top:1px solid #232323;}} padding:.3em; {{{entryinfo16style}}}">{{{entryinfo16|}}}</div>
</div>}}
| content16style = padding:0
| section17    = {{#if:{{{section17|}}}|<h4 style="font-size:14px; margin:0; padding:0;">{{{section17}}}</h4>|}}
| content17    = {{#ifeq:{{{entryid17|}}}|{{{entryinfo17|}}}||
<div style="display:grid; grid-template-columns:1fr 1fr;">
  <div style="background:#232323; {{#if:{{{section17|}}}||border-top:1px solid #323232;}} color:white; padding:.3em; {{{entryid17style}}}"><b>{{{entryid17|}}}</b></div>
  <div style="{{#if:{{{section17|}}}||border-top:1px solid #232323;}} padding:.3em; {{{entryinfo17style}}}">{{{entryinfo17|}}}</div>
</div>}}
| content17style = padding:0
| section18    = {{#if:{{{section18|}}}|<h4 style="font-size:14px; margin:0; padding:0;">{{{section18}}}</h4>|}}
| content18    = {{#ifeq:{{{entryid18|}}}|{{{entryinfo18|}}}||
<div style="display:grid; grid-template-columns:1fr 1fr;">
  <div style="background:#232323; {{#if:{{{section18|}}}||border-top:1px solid #323232;}} color:white; padding:.3em; {{{entryid18style}}}"><b>{{{entryid18|}}}</b></div>
  <div style="{{#if:{{{section18|}}}||border-top:1px solid #232323;}} padding:.3em; {{{entryinfo18style}}}">{{{entryinfo18|}}}</div>
</div>}}
| content18style = padding:0
| section19    = {{#if:{{{section19|}}}|<h4 style="font-size:14px; margin:0; padding:0;">{{{section19}}}</h4>|}}
| content19    = {{#ifeq:{{{entryid19|}}}|{{{entryinfo15|}}}||
<div style="display:grid; grid-template-columns:1fr 1fr;">
  <div style="background:#232323; {{#if:{{{section19|}}}||border-top:1px solid #323232;}} color:white; padding:.3em; {{{entryid19style}}}"><b>{{{entryid19|}}}</b></div>
  <div style="{{#if:{{{section19|}}}||border-top:1px solid #232323;}} padding:.3em; {{{entryinfo19style}}}">{{{entryinfo19|}}}</div>
</div>}}
| content19style = padding:0
| section20    = {{#if:{{{section20|}}}|<h4 style="font-size:14px; margin:0; padding:0;">{{{section20}}}</h4>|}}
| content20    = {{#ifeq:{{{entryid20|}}}|{{{entryinfo20|}}}||
<div style="display:grid; grid-template-columns:1fr 1fr;">
  <div style="background:#232323; {{#if:{{{section20|}}}||border-top:1px solid #323232;}} color:white; padding:.3em; {{{entryid20style}}}"><b>{{{entryid20|}}}</b></div>
  <div style="{{#if:{{{section20|}}}||border-top:1px solid #232323;}} padding:.3em; {{{entryinfo20style}}}">{{{entryinfo20|}}}</div>
</div>}}
| content20style = padding:0
}}</includeonly></onlyinclude>{{doc}}[[Category:Metatemplates]]
}}</includeonly></onlyinclude>{{doc}}[[Category:Metatemplates]]

Revision as of 23:30, 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 sub-metatemplate of {{sidebar}} that is designed to help create infobox templates.

Sub-metatemplates

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

Sandbox

The sandbox for this page can be found at the sandbox subpage.

Testcases

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

Copy and Paste

{{Infobox | header = | image = | section1 = | entryid1 = | entryinfo1 = | footer = }}

Usage & Preview

{{Infobox}}
Parameter Description Example
{{{header}}} Header content
| header = Foo bar
{{{section <1-2>}}} Main content section dividers
| section1 = Test
{{{entryid <1-2>}}} Entry idboxes
| entryid1 = Example
{{{entryinfo <1-2>}}} Entry infoboxes
| entryinfo2 = Placeholder
{{{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.jpg
{{{imagewidth}}} Sidebar image width
| imagewidth = 64px
{{{imagelink}}} Sidebar image link
| imagelink = Portal 2
Style parameters
{{{headerstyle}}} Header styling
| headerstyle = font-family:sans-serif;
{{{entryid <1-20> style}}} Entry idbox styling
| entryid1style = background:none;
{{{entryinfo <1-20> style}}} Entry infobox styling
| entryinfo1style = margin:.3em;
{{{footerstyle}}} Footer styling
| footerstyle1 = text-align:right;
{{{float}}} For specifying how or if the sidebar will float
| float = left
{{{header}}}
Software Cover - The Lab.jpg

{{{section1}}}

{{{entryid1}}}
{{{entryinfo1}}}
{{{entryid2}}}
{{{entryinfo2}}}
{{{footer}}}
Hierarchy: Sidebar / Infobox