Difference between revisions of "Template:Buzz-card/Documentation"

From War Thunder Wiki
Jump to: navigation, search
(Created doc)
 
Line 8: Line 8:
 
  | title =
 
  | title =
 
  | img =
 
  | img =
 +
| wiki =
 
  | link =
 
  | link =
 
  | text =
 
  | text =
Line 15: Line 16:
 
* <code>title</code> - Card title
 
* <code>title</code> - Card title
 
* <code>img</code> - Name of image in the format: <code>File:filename.extension</code>
 
* <code>img</code> - Name of image in the format: <code>File:filename.extension</code>
* <code>link</code> - Link to page
+
* <code>wiki</code> - Link to internal wiki article
 +
* <code>link</code> - Link to outside wiki page
 
* <code>text</code> - Text description
 
* <code>text</code> - Text description
  
Line 24: Line 26:
 
  | title = Fleet
 
  | title = Fleet
 
  | img = File:Img ship.png
 
  | img = File:Img ship.png
  | link = Fleet
+
  | wiki = Fleet
 
  | text = Fleet — Witness the release and activation of the naval tree in the War Thunder Wiki!
 
  | text = Fleet — Witness the release and activation of the naval tree in the War Thunder Wiki!
 
}}</pre>
 
}}</pre>
Line 33: Line 35:
 
  | title = Fleet
 
  | title = Fleet
 
  | img = File:Img ship.png
 
  | img = File:Img ship.png
  | link = Fleet
+
  | wiki = Fleet
 
  | text = Fleet — Witness the release and activation of the naval tree in the War Thunder Wiki!
 
  | text = Fleet — Witness the release and activation of the naval tree in the War Thunder Wiki!
 
}}
 
}}

Revision as of 20:23, 28 January 2019

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

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!