Actions

Template

Template:Choice

From Project Rebearth

Revision as of 21:06, 23 February 2026 by East6 (talk | contribs) (Created page with "<includeonly><templatestyles src="Choice/styles.css" /><templatestyles src="Main page/styles.css" /><div class="rb-infobox-choice"><div class="rb-ib-border rb-scooped-corners"><div class="rb-ib-inner rb-scooped-corners"><!-- ---- HEADER ---- --><div class="rb-ib-header">{{{name|{{PAGENAME}}}}}</div><!-- ---- IMAGE ---- -->{{#if:{{{image|}}}|<div class="rb-ib-image">[[File:{{{image}}}|270px]]</div>}}<!-- ---- CAPTION ---- -->{{#if:{{{caption|}}}|<div class="rb-ib-captio...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

[edit]
{{Choice
| name      = Taxation
| image     =
| caption   =
| category  = Choice
| cost      = {{formatnum:100000}} {{Icon|Knowledge}}
| lock      = 1 day
| default   =
| exclusive =
| duration  =
| effects   = <table class="rb-ib-subtable"><tr><th>Effect</th><th>Multiplier</th></tr><tr><td>[[Happiness]]</td><td class="rb-ib-nerf">×0.7</td></tr></table>
| flags     = Enables taxation ({{Icon|Coin}} collection from population)
| special   =
}}

Parameters

[edit]
Parameter Required Description
name No Choice name. Defaults to the page title.
image No Image filename (optional, rarely used).
caption No Caption displayed below the image.
category Yes Type badge: "Choice", "Alliance type", or "Event".
cost No Cost to enact (e.g. {{formatnum:100000}} {{Icon|Knowledge}}).
lock No Lock duration after toggling (e.g. "1 day", "14 days", "Permanent").
default No "Yes" if this is the default option in its exclusive group.
exclusive No Wikilinks to mutually exclusive choices.
duration No Effect duration for temporary choices (e.g. "4 days").
effects No HTML subtable with Effect/Multiplier columns. Use rb-ib-subtable class and rb-ib-buff (green) or rb-ib-nerf (red) for multiplier cells.
flags No Game flags enabled by this choice (prose description).
special No Additional notes or special properties.

Effect Styling

[edit]

Use rb-ib-buff for beneficial multipliers (green, e.g. ×1.2) and rb-ib-nerf for harmful multipliers (red, e.g. ×0.7):

<table class="rb-ib-subtable">
<tr><th>Effect</th><th>Multiplier</th></tr>
<tr><td>[[Production]]</td><td class="rb-ib-buff">×1.1</td></tr>
<tr><td>[[Happiness]]</td><td class="rb-ib-nerf">×0.7</td></tr>
</table>