Module:Ideology/List
Module:Ideology/Movement
Ideology can be used to create info tooltips or table rows for each Ideology.
Parameters
| Parameter | Description | Required | Default |
|---|---|---|---|
| 1 | Any of:
|
Required | none |
| char/character | Set to anything if using the localized name of a character ideology | Optional | none |
| move/movement | Set to anything if using the localized name of a movement ideology | Optional | none |
| index | Tooltip index, for tooltip use; use 2 or 3 for tooltip-in-tooltip
|
Optional | none |
| table | Formats output as a table row instead of tooltip, if set to anything | Optional | none |
Parameter 1 must be one of the following styles: localized English name of the ideology, script name of the ideology with underscores, "short" script name, dropping "ideology", with or without underscores.
- Character ideologies can be indicated with the localized English name and the
charparameter, the script name or short script name or the localized English name followed by "leader" with no underscores. - Movement ideologies can be indicated with the localized English name and the
moveparameter, the script name or short script name or the localized English name followed by "movement" with no underscores.
The capitalization does not matter and the output text is pre-determined.
Certain ideologies have a parenthetical to distinguish them from other identically localized ideologies. These parentheticals are included in the localized name, unlike in-game. See the list below:
| Script name | Wiki localized name |
|---|---|
ideology_liberal_modern |
Liberal (modern) |
ideology_egalitarian_modern |
Egalitarian (modern) |
ideology_hindu_moralist_british_india |
Hindu Moralist (British) |
ideology_pluralist_movement_1 |
Pluralist (National Supremacy) |
ideology_pluralist_movement_2 |
Pluralist (Racial Segregation) |
ideology_pluralist_movement_3 |
Pluralist (Cultural Exclusion) |
ideology_pluralist_movement_4 |
Pluralist (Multiculturalism) |
Tooltip usage
When using index set to 1, 2, or 3; this template can be used in paragraphs by wrapping the paragraph in a <div></div> or <span></span> tag, otherwise it breaks the paragraph layout. It can be used in wiki lists or table cells without issue otherwise.
Table usage
This template outputs into the following table format. The template should be put in the first column and it generates the remaining columns for its row.
| Ideology | Law group | |||||
|---|---|---|---|---|---|---|
Template goes here
|
Each ideology in the table requires its own use of the template in a new row.
Examples
{{Ideology|Anti-Slavery|index=1}} results in Note the line break; wrapping the paragraph in <div></div> results in:
{{Ideology|ideology_moderate|index=1}} results in If index is not set, the result is just a basic icon display:
{{Ideology|democrat|char=1}} results in
Democrat
Table usage appears as follows
| Ideology | Law group | |||||
|---|---|---|---|---|---|---|
{{ideology|Agrarian|table=1}} results in
| ||||||
| Land Reform |
|
|
||||
| Economic System | ||||||
| Caste Hegemony | ||||||
| Taxation | ||||||