Template:Infobox: Difference between revisions

From Agropelter Archives
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{| class="infobox" style="width:300px;border:1px solid #aaa;background:#f9f9f9;font-size:90%;line-height:1.4em;"
{| class="infobox" style="width: 400px; border: 1px solid #aaa; background: #f9f9f9; font-size: 90%; line-height: 1.4em;"
|-
|-
! colspan="2" style="text-align:center;background:#ddd;font-size:110%;" | {{{title|<span style="color:#888;">Infobox</span>}}}
! colspan="2" style="text-align:center; background:#ddd; font-size:120%;" | {{{title|<span style="color:#888;">Infobox</span>}}}
{{#if:{{{image|}}}|
{{{rows|}}}
|-
|}
| colspan="2" style="text-align:center;" | [[File:{{{image}}}|300px]]
</includeonly>
}}
<noinclude>
{{#if:{{{type|}}}|
This is the base infobox used by other templates.
|-
 
! Type
== Example ==
| {{{type}}}
<pre>
}}
{{Infobox
{{#if:{{{crew|}}}|
| title = Example
|-
| rows  =
! Crew
| {{{crew}}}
}}
{{#if:{{{length|}}}|
|-
|-
! Length
! Label
| {{{length}}}
| Value
}}
{{#if:{{{wingspan|}}}|
|-
|-
! Wingspan
! Another
| {{{wingspan}}}
| Something
}}
}}
{{#if:{{{speed|}}}|
</pre>
|-
! Speed
| {{{speed}}}
}}
{{#if:{{{range|}}}|
|-
! Range
| {{{range}}}
}}
{{#if:{{{armament|}}}|
|-
! Armament
| {{{armament}}}
}}
{{#if:{{{manufacturer|}}}|
|-
! Manufacturer
| {{{manufacturer}}}
}}
{{#if:{{{introduced|}}}|
|-
! Introduced
| {{{introduced}}}
}}
|}
</includeonly>
<noinclude>
Base infobox template.
Parameters:
* title = heading
* image = filename (e.g. "Myplane.jpg") — file must be uploaded to the wiki
* type, crew, length, wingspan, speed, range, armament, manufacturer, introduced
</noinclude>
</noinclude>

Latest revision as of 22:31, 27 September 2025


This is the base infobox used by other templates.

Example

{{Infobox
| title = Example
| rows  =
|-
! Label
| Value
|-
! Another
| Something
}}