Template:Infobox: Difference between revisions

From Songs of Syx Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
(Undo revision 7541 by Zippy (talk))
Tag: Undo
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable floatright" style="border: 0px solid #fff; border-right: 5px solid #34356f; margin-left: 10px; border-top-left-radius: 50px;"
{| class="wikitable" style="float: right; box-shadow: 3px 3px 3px #0009; 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: 30px; width:100px; color: #fff; font-size:10pt; background-color: #12153e;" | {{{title}}}
! colspan="2" style="background:#363477; border: 0px solid #fff; border-top-left-radius: 15px; width:100px; color: #fff; font-size:10pt; background-color: #12153e;" | {{shadow|{{{title}}}|#00000091}}
|-
|-
| colspan="2" style="text-align:center; font-size:7pt; background-color: #1b1d31;" | {{{image}}}
| colspan="2" style="text-align:center; font-size:7pt; background-color: #1b1d31;" | {{{image}}}
Line 8: Line 8:
| colspan="2" style="background:#12153e; width:90px; color: #fff; font-size:10pt; text-align:center;" | <small>'''Resource Information'''</small>
| colspan="2" style="background:#12153e; width:90px; color: #fff; font-size:10pt; text-align:center;" | <small>'''Resource Information'''</small>
|-
|-
| style="font-size:9pt; background:#1c215e;" | '''Icon''' || style="font-size:9pt; background-color: #474c8a;" | {{{icon}}}
| style="font-size:9pt; background:#1c215e;" | {{shadow|'''Icon'''|#00000091}} || style="font-size:9pt; background-color: #474c8a;" | {{{icon}}}
|-
|-
| style="font-size:9pt; background:#1c215e;" | <span class="basic-tooltip" style="text-decoration:underline; text-decoration-style:dotted" title="This refers to the general, unfixed cost in trading.">'''Cost'''</span> || style="font-size:9pt; background-color: #474c8a;" | {{{cost}}}
| style="font-size:9pt; background:#1c215e;" | {{tooltip|{{shadow|'''Cost'''|#00000091}}|This refers to the general, unfixed cost in trading.}} || style="font-size:9pt; background-color: #474c8a;" | {{{cost}}}
|-
| style="font-size:9pt; background:#1c215e;" | {{tooltip|'''Uses'''|If this building uses up any resources to function.}} || style="font-size:9pt; background-color: #474c8a;" | {{if:{{{uses}}}|no}}
|-
|-
| colspan="2" style="background:#12153e; color: #fff; text-align:center;font-size:10pt" | <small>'''Extra Information'''</small>
| colspan="2" style="background:#12153e; color: #fff; text-align:center;font-size:10pt" | <small>'''Extra Information'''</small>
|-
|-
| style="font-size:9pt; background:#1c215e; width:100px;" | '''Used in building?''' || style="font-size:9pt; background-color: #474c8a;" | {{{is_for_building}}}
| style="font-size:9pt; background:#1c215e; width:100px;" | {{shadow|'''Used for building?'''|#00000091}} || style="font-size:9pt; background-color: #474c8a;" | {{{is_for_building}}}
|-
| style="font-size:9pt; background:#1c215e;" | '''Renewable?''' || style="font-size:9pt; background-color: #474c8a;" | {{{is_renewable}}}
|-
|-
| style="font-size:9pt; background:#1c215e;" | {{tooltip|{{shadow|'''Spoil rate'''|#00000091}}|How much a resource can spoil per year, percentage wise.}} || style="font-size:9pt; background-color: #474c8a;" | {{{spoil}}}
|}
|}
[[Category:Infobox page]]
[[Category:Infobox page]]
<noinclude>{{Infobox/doc}}
<noinclude>{{clear}}{{Infobox/doc}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Latest revision as of 21:49, 23 April 2024

{{{title}}}
{{{image}}}
{{{caption}}}
Resource Information
Icon {{{icon}}}
Cost {{{cost}}}
Extra Information
Used for building? {{{is_for_building}}}
Spoil rate {{{spoil}}}
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.