Alliance: Difference between revisions
From Project Rebearth
No edit summary |
No edit summary |
||
| Line 31: | Line 31: | ||
| bonuses = <div class="rb-ia-effect rb-ia-bonus"><div class="rb-ia-effect-name">Export cost</div><div class="rb-ia-effect-value">×0.9</div></div> | | bonuses = <div class="rb-ia-effect rb-ia-bonus"><div class="rb-ia-effect-name">Export cost</div><div class="rb-ia-effect-value">×0.9</div></div> | ||
| drawbacks = <div class="rb-ia-effect rb-ia-drawback"><div class="rb-ia-effect-name">Raid risk</div><div class="rb-ia-effect-value">×1.2</div></div> | | drawbacks = <div class="rb-ia-effect rb-ia-drawback"><div class="rb-ia-effect-name">Raid risk</div><div class="rb-ia-effect-value">×1.2</div></div> | ||
| largest = Northern Commerce Guild | | largest = Northern Commerce Guild | ||
}} | }} | ||
| Line 59: | Line 58: | ||
| <code>drawbacks</code> || Yes || One or more effect rows with class <code>rb-ia-drawback</code>. Values display in red. | | <code>drawbacks</code> || Yes || One or more effect rows with class <code>rb-ia-drawback</code>. Values display in red. | ||
|- | |- | ||
| <code>count</code> || No || | | <code>count</code> || No || Exists but not used right now since we figure out if Sam can provide the number info | ||
|- | |- | ||
| <code>largest</code> || No || Name of the largest alliance of this type. | | <code>largest</code> || No || Name of the largest alliance of this type. | ||
Latest revision as of 23:37, 20 February 2026
Alliance
[edit]A styled infobox for alliance type pages on the Project Rebearth Wiki. Matches the visual style of {{Building}} with warm browns, golds, and scooped corners.
Usage
[edit]{{Alliance
| name = Trade Alliance
| focus = Commerce & Trade
| bonuses = <div class="rb-ia-effect rb-ia-bonus"><div class="rb-ia-effect-name">Export cost</div><div class="rb-ia-effect-value">×0.9</div></div>
| drawbacks = <div class="rb-ia-effect rb-ia-drawback"><div class="rb-ia-effect-name">Raid risk</div><div class="rb-ia-effect-value">×1.2</div></div>
| largest = Northern Commerce Guild
}}
Effect row format
[edit]Each bonus or drawback is a div with the effect name and multiplier value:
<div class="rb-ia-effect rb-ia-bonus"> <div class="rb-ia-effect-name">Effect name</div> <div class="rb-ia-effect-value">×1.2</div> </div>
Replace rb-ia-bonus with rb-ia-drawback for negative effects. Multiple effects can be placed one after another within the bonuses or drawbacks parameter.
Parameters
[edit]| Parameter | Required | Description |
|---|---|---|
name |
No | Alliance name. Defaults to {{PAGENAME}}.
|
focus |
Yes | The alliance's thematic focus (e.g. "Commerce & Trade"). Displayed as a badge. |
bonuses |
Yes | One or more effect rows with class rb-ia-bonus. Values display in green.
|
drawbacks |
Yes | One or more effect rows with class rb-ia-drawback. Values display in red.
|
count |
No | Exists but not used right now since we figure out if Sam can provide the number info |
largest |
No | Name of the largest alliance of this type. |
Examples
[edit]Trade Alliance
[edit]Trade Alliance
General
Focus
Commerce & Trade
Bonuses
Export cost
×0.9
Import cost
×0.9
Taxation
×1.1
Drawbacks
Raid risk
×1.2
Statistics
Count
42 in the world
Largest
Northern Commerce Guild