Module:Decree/List/doc

< Module:Decree‎ | List
天津风不是天津的风讨论 | 贡献2025年7月9日 (三) 08:09的版本 (merge from official wiki)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

这是Module:Decree/List的文档页面

This module is a list of decrees for use with Module:Decree.

To add a new entry to this list, copy the template below and fill in the information. Note that single or double quotes must be used as in the template

p['<name>'] = {
 reqs = {
  tech = { '<tech>' },
  state = { '<trigger string>', '<trigger string>' },
  owner = { '<trigger string>' }
 },
 desc = "<desc string>",
 modifiers = {
  { '<color>', '<amount>', '<text>', <icon> },
  { '<color>', '<amount>', '<text>', <icon> }
 }
}
Template element Description/Use
<name> The English localized decree name in lowercase; this must match a wiki file with the prefix Decree, see Category:Decree icons
<tech> An unlocking technology; omit block if none
<desc string> Decree's flavor text/description. If omitting, leave as an empty string, i.e. ""
<trigger string> A description of the trigger in state or country scope. Multiple trigger strings can be defined in the same block, which are then prefixed with 'Any of:' in output
modifiers <color> Color effect for the <amount>: use "green", "red", or "inherit" for good, bad, or neutral effects respectively
modifiers <amount> Size of the modifier effect, include + − and % as well as the number
modifiers <text> Localized modifier effect text. Images can be included by including wikitext such as [[File:State status construction.png|link=Construction|24px]].
modifiers <icon> Image or text prefixed before modifier amount. Images can be included by including wikitext such as [[File:State status construction.png|link=Construction|24px]].

Unused reqs can be omitted. The modifier effects can also be entered as a simple string for direct output.