Difference between revisions of "Template:Family-card"

From War Thunder Wiki
Jump to: navigation, search
(Allow changing image width)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
!colspan="2"|<span style="color:#546e7a;font-size:18px;font-weight:normal;float:left;">{{{title}}}</span>
 
!colspan="2"|<span style="color:#546e7a;font-size:18px;font-weight:normal;float:left;">{{{title}}}</span>
 
|-
 
|-
|width="{{{imgwidth|400}}}px" style="vertical-align:top;"|[[{{{img}}}|link=|{{{imgwidth|400}}}px]]
+
{{#if:{{{img|}}}|{{!}}width="{{{imgwidth|400}}}px" style="vertical-align:top;"{{!}}[[{{{img}}}|link=|{{{imgwidth|400}}}px]]}}
 
|style="vertical-align:top;padding-left:15px;"|
 
|style="vertical-align:top;padding-left:15px;"|
 
{{{text}}}
 
{{{text}}}

Latest revision as of 17:54, 24 December 2022

Description

This template inserts a card displaying an image, a link to a vehicle page and a text description. This template is built for family pages.

Parameters

  • title - Displays a text in the top left corner of the card.
  • img - Displays a picture from an image file from the wiki, it must be entered as a link to a wiki file: File:XXX.jpg/png
  • wiki - Links to a vehicle page from the wiki
  • text - Displays a text in the right half of the card.

The manual parameters must be added by the Wiki user.

Examples of use

 
P-51
P-51-Miss-America-FP.png

The first order of Mustangs to the British were designated Mustang Mk I. The RAF received these aircraft behind schedule in October of 1941. Problems showed up immediately including the Allison power-plant and other design flaws. It is also important to note the Mustang Mk I's armament consisting of four .30 cal machine guns mounted in the wings, as well as a set of two .50 cal mounted in the wings and two .50 cal machine guns mounted in the nose. Click here to read more

{{Family-card
|title = P-51
|img = File:P-51-Miss-America-FP.png
|wiki = P-51
|text = The first order of Mustangs to the British were designated Mustang Mk I. The RAF received these aircraft behind schedule in October of 1941. Problems showed up immediately including the Allison power-plant and other design flaws. It is also important to note the Mustang Mk I's armament consisting of four .30 cal machine guns mounted in the wings, as well as a set of two .50 cal mounted in the wings and two .50 cal machine guns mounted in the nose.
[[P-51#History|Click here to read more]]
}}