Template:Infobox test: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{| class="wikitable floatright" style="border: 0px solid #fff; margin-left: 10px; border-top-left-radius: 50px;"
{| class="wikitable floatright" style="border: 0px solid #fff; border-right: 5px solid #34356f; margin-left: 10px; border-top-left-radius: 50px;"
! colspan="2" style="background:#363477; border: 0px solid #fff; border-top-left-radius: 50px; width:100px; color: #fff; font-size:10pt; background-color: #12153e;" | {{{title}}}
! colspan="2" style="background:#363477; border: 0px solid #fff; border-top-left-radius: 30px; width:100px; color: #fff; font-size:10pt; background-color: #12153e;" | {{{title}}}
|-
|-
| colspan="2" style="text-align:center; font-size:7pt; background-color: #474c8a;" | {{{image}}}<br />{{{caption}}}
| colspan="2" style="text-align:center; font-size:7pt; background-color: #474c8a;" | {{{image}}}<br />{{{caption}}}

Revision as of 07:46, 17 May 2021

{{{title}}}
{{{image}}}
{{{caption}}}
Resource Information
Icon {{{icon}}}
Cost {{{cost}}}
Extra Information
Used in building? {{{is_for_building}}}
Renewable? {{{is_renewable}}}
Template Documentation

Description

This template is essentially a table that contains information about an element of the game. More specifically, it's about the template on the page Template:Infobox. This infobox is commonly used for resources and some elements found in the game's word, such as trees.

Syntax

To use this template, it must be placed before the main text of a page. It must start with {{Infobox and end with two curly brackets, }}. The infobox, by default, will be aligned to the right of the page, with the page's text tightly wrapping around it. This is because the infobox is a wikitable using the float: left CSS property. The infobox must be entered in the page with the proper format, which is shown here:

{{Infobox
|title = Resource
|caption = Caption
|image = [[File:image.jpg]]
|icon = [[File:image.jpg]]
|cost = Low/Medium/High/etc.
|is_for_building = Yes/No
|spoil = #%
}}
Examples

No example required, as the template's output is already seen.