Difference between revisions of "Template:Buzz-card"

From War Thunder Wiki
Jump to: navigation, search
m (U28580205 moved page Template:Buzz card to Template:Buzz-card without leaving a redirect)
(Undo revision 143150 by U124881022 (talk))
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{| width="100%"
+
<div class="buzz">{{#if:{{{wiki|}}}|[[{{{wiki}}}|&nbsp;]]}}{{#if:{{{link|}}}|[{{{link}}} &nbsp;]}}
!colspan="2"|<span style="color:#546e7a;font-size:20px;font-weight:normal;float:left;">{{{title}}}</span>
+
{|
 +
!colspan="2"|<span style="color:#546e7a;font-size:18px;font-weight:normal;float:left;">{{{title}}}</span>
 
|-
 
|-
|width="200px" style="vertical-align:top;"|[[{{{img}}}|link={{{link}}}|200px]]
+
|width="200px" style="vertical-align:top;"|[[{{{img}}}|link=|200px]]
 
|style="vertical-align:top;padding-left:15px;"|{{{text}}}
 
|style="vertical-align:top;padding-left:15px;"|{{{text}}}
|-
+
|}
|colspan="2"|<span style="float:right;">[[{{{link}}}|Read the article]]</span>
+
</div></includeonly><noinclude>
|}</includeonly><noinclude>
 
 
{{doc}}
 
{{doc}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:33, 24 October 2022

Description

The template Buzz-card are used to set up individual blocks of information in the main page's Buzz section. It was introduced to make the page code neater, as well as to facilitate the design change: it is enough to change the template itself once and all the cards change, so it is not needed to edit each card separately.

Code

{{Buzz-card
 | title =
 | img =
 | wiki =
 | link =
 | text =
}}

Option

  • title - Card title
  • img - Name of image in the format: File:filename.extension
  • wiki - Link to internal wiki article
  • link - Link to outside wiki page
  • text - Text description

There should only be either a wiki or link in the box, not both.

Examples

Code:

{{Buzz-card
 | title = Fleet
 | img = File:Img ship.png
 | wiki = Fleet
 | text = Fleet — Witness the release and activation of the naval tree in the War Thunder Wiki!
}}

Generated card:


 
Fleet
Img ship.png Fleet — Witness the release and activation of the naval tree in the War Thunder Wiki!