Template:Socialism: Difference between revisions
FalscherRVN (talk | contribs) m (Added documentation which is unironically necessary) |
(irrelevant accusation) |
||
(41 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> |
|||
{{documentation}} |
{{documentation}} |
||
</noinclude> |
|||
{{Navbox with collapsible groups |
{{Navbox with collapsible groups |
||
| name = Socialism |
| name = Socialism |
||
| title = Socialism in Civ |
| title = Socialism in Civ |
||
| state = {{{state<includeonly>|autocollapse</includeonly>}}} |
| state = {{{state<includeonly>|autocollapse</includeonly>}}} |
||
Line 8: | Line 9: | ||
|titlestyle = background:#D90700;color: #F7CF11; |
|titlestyle = background:#D90700;color: #F7CF11; |
||
|groupstyle = background:# |
|groupstyle = background:#FF8B8B |
||
|group16 = Past Servers |
|||
| abbrn16 = PAST |
|||
| state16 = |
|||
{{#ifexpr: |
|||
{{#expr: |
|||
{{#ifeq: {{{civcraft2}}} | uncollapsed | 1 | 0}} |
|||
+ {{#ifeq: {{{civcraft3}}} | uncollapsed | 1 | 0}} |
|||
+ {{#ifeq: {{{civclassics}}} | uncollapsed | 1 | 0}} |
|||
+ {{#ifeq: {{{civrealms}}} | uncollapsed | 1 | 0}} |
|||
}}|uncollapsed|collapsed |
|||
}} |
|||
| list16 = {{Navbox with collapsible groups|child||groupstyle = background:#FFDDDD |
|||
|group1 = [[ |
|group1 = [[Civcraft 2.0]] |
||
| abbrn1 = CC2 |
| abbrn1 = CC2 |
||
| state1 = {{{civcraft2<includeonly>| |
| state1 = {{{civcraft2<includeonly>|collapsed</includeonly>}}} |
||
|list1 = {{Navbox |child |groupstyle = background:#FFE6E6 |
|list1 = {{Navbox |child |groupstyle = background:#FFE6E6 |
||
|group10 = Nations |
|group10 = Nations |
||
|list10 = {{Navbox |child |groupstyle = background:#FFE6E6 |
|list10 = {{Navbox |child |groupstyle = background:#FFE6E6 |
||
|group11 = [[Federal Socialist Republics]] |
|group11 = [[File:FSR-Flag.png|20px]] [[Federal Socialist Republics]] |
||
|list11 = |
|list11 = |
||
*[[Centauri]] |
*[[File:CentauriFlag.png|20px]] [[Centauri]] |
||
*[[Luxem]] |
*[[File:LuxemFlag.png|20px]] [[Luxem]] |
||
*[[Montarnis]] |
*[[Montarnis]] |
||
*[[New Leningrad]] |
*[[File:Flag_of_the_soviet_union.png|20px]] [[New Leningrad]] |
||
}} |
}} |
||
*[[RSSR]] |
|||
*[[Arstotzka]] |
*[[Arstotzka]] |
||
*[[Newtro]] |
*[[Newtro]] |
||
*[[Sunder]] |
*[[Sunder]] |
||
*[[Tambov]] |
*[[Tambov]] |
||
*[[File:SocialistTropicaFlag.png|24px]] [[Tropica#Griefer_Attacks_and_the_Socialist_Republic_of_Tropica|Tropica]] |
|||
*[[File:Commie_Flag.jpg|20px]] [[NPRM|Moria]] |
|||
|group12 = Groups and Alliances |
|group12 = Groups and Alliances |
||
|list12 = {{Navbox |child |groupstyle = background:#FFE6E6 |
|list12 = {{Navbox |child |groupstyle = background:#FFE6E6 |
||
|group13 = |
|group13 = |
||
|list13 = |
|list13 = |
||
*[[Eastern Bloc]] |
*[[File:EasternBlocFlag.jpg|20px]] [[Eastern Bloc]] |
||
*[[File:Ancom_flag.png|20px]] [[LSIF]] |
*[[File:Ancom_flag.png|20px]] [[LSIF]] |
||
* |
*{{flag|The Workers' Party}} |
||
*[[Civcraft Socialist Coalition]] |
|||
*[[File:Ndz_socialism.png|20px]] [[New Danzilonan Civil War|New Danzilona Socialists]] |
|||
}} |
}} |
||
|group14 = Notable People |
|group14 = Notable People |
||
|list14 = {{Navbox |child |groupstyle = background:#FFE6E6 |
|list14 = {{Navbox |child |groupstyle = background:#FFE6E6 |
||
|group15 = |
|group15 = |
||
|list15 = |
|list15 = |
||
*[[BlueSylvaer]] |
|||
*[[BolleDeBoll]] |
|||
*[[Geckos017]] |
|||
*[[Lowtuff]] |
|||
*[[SandFalls]] |
|||
*[[ZombieLenin]] |
*[[ZombieLenin]] |
||
* |
|||
}} |
}} |
||
}} |
}} |
||
|group2 = [[Civcraft 3.0]] |
|group2 = [[Civcraft 3.0]] |
||
| abbrn2 = CC3 |
| abbrn2 = CC3 |
||
| state2 = {{{civcraft3<includeonly>| |
| state2 = {{{civcraft3<includeonly>|collapsed</includeonly>}}} |
||
| list2 = {{Navbox |child |groupstyle = background:#FFE6E6 |
| list2 = {{Navbox |child |groupstyle = background:#FFE6E6 |
||
|group20 = Nations |
|group20 = Nations |
||
Line 58: | Line 83: | ||
|list22 = {{Navbox |child |groupstyle = background:#FFE6E6 |
|list22 = {{Navbox |child |groupstyle = background:#FFE6E6 |
||
|group23 = |
|group23 = |
||
|list23 = *[[File:Unitas3flag.png|20px]] [[ |
|list23 = *[[File:Unitas3flag.png|20px]] [[Unitas (Civcraft 3.0)|Unitas]] |
||
*[[File:Bambinos_flag.PNG|16px]] [[Endeavor|Majas]] |
|||
}} |
}} |
||
|group24 = Groups and Alliances |
|group24 = Groups and Alliances |
||
|list24 = |
|list24 = |
||
*[[File:IWCflag.png|20px]] [[International Workers of Civcraft]] |
*[[File:IWCflag.png|20px]] [[International Workers of Civcraft]] |
||
*[[File:Ancom_flag.png|20px]] [[LSIF]] |
|||
*[[File:TheWorkersParty_Logo.png|20px]] [[The Workers' Party]] |
*[[File:TheWorkersParty_Logo.png|20px]] [[The Workers' Party]] |
||
*[[Volterra#3.0 History|Volterran]] Workers' Party |
*[[Volterra#3.0 History|Volterran]] Workers' Party |
||
*[[File:Bambinos_flag.PNG|16px]] [[Endeavor|Baltic Bambinos]] |
|||
|group25 = Notable People |
|||
|list25 = |
|||
*[[1234fireball]] |
|||
*[[ComradeNick]] |
|||
*[[Des23]] |
|||
*[[Pythius_]] |
|||
*[[Raven]] |
|||
}} |
}} |
||
|group3 = [[ |
|group3 = [[CivClassic 2.0]] |
||
| abbrn3= CC |
| abbrn3= CC |
||
| state3 = {{{civclassics<includeonly>| |
| state3 = {{{civclassics<includeonly>|collapsed</includeonly>}}} |
||
|list3 = {{Navbox |child |groupstyle = background:#FFE6E6 |
|list3 = {{Navbox |child |groupstyle = background:#FFE6E6 |
||
|group30 = Nations |
|group30 = Nations |
||
Line 83: | Line 114: | ||
|list32 = |
|list32 = |
||
*[[Dithmarschen]] |
*[[Dithmarschen]] |
||
*[[Free Republik of Unitas]] |
*[[File:Flag_of_Unitas.png|20px]] [[Free Republik of Unitas]] |
||
*{{flag|Maltovia}} |
*{{flag|Maltovia}} |
||
* |
*{{flag|Pripyat}} |
||
*{{flag|Provincia}} |
*{{flag|Provincia}} |
||
<!-- Saigon? --> |
|||
|group33 = |
|group33 = |
||
|list33 = |
|list33 = |
||
Line 97: | Line 128: | ||
}} |
}} |
||
*{{flag|Krohil}} |
*{{flag|Krohil}} |
||
*[[Lyra]] |
*[[File:Lyra.png|20px]] [[Lyra]] |
||
*{{flag|New Sovia}} |
*{{flag|New Sovia}} |
||
*{{flag|Jevoghnya}} |
|||
*{{flag|Nyasaland}} |
*{{flag|Nyasaland}} |
||
*{{flag|Ossenkirch}} |
*{{flag|Ossenkirch}} |
||
*[[Potistan]] |
*[[File:Flag_(1).png|20px]] [[Potistan]] |
||
*[[Tierra de Conciencia]] |
*[[File:TdC_Flag_Low_Res.png|20px]] [[Tierra de Conciencia]] |
||
*[[Trekestan]] |
*[[File:Flag.png|20px]] [[Trekestan]] |
||
*{{flag|Vinland}} |
*{{flag|Vinland}} |
||
*{{flag|Carson}} |
|||
|group34 = Groups and Alliances |
|group34 = Groups and Alliances |
||
|list34 = {{Navbox |child |groupstyle = background:#FFE6E6 |
|list34 = {{Navbox |child |groupstyle = background:#FFE6E6 |
||
Line 115: | Line 148: | ||
}} |
}} |
||
|group36 = Notable People |
|group36 = Notable People |
||
|list36 = |
|list36 = |
||
*[[AmandaCC]] |
|||
*[[cat_alunya]] |
|||
*[[ChocChips]] |
|||
*[[Lanni]] |
|||
*[[Pythius_]] |
|||
*[[Lowtuff]] |
|||
*[[SandFalls]] |
|||
*[[SimpleBastard]] |
|||
*[[smal]] |
|||
}} |
}} |
||
|group4 = [[CivRealms]] |
|group4 = [[CivRealms]] |
||
| abbrn4= CR |
| abbrn4= CR |
||
| state4 = {{{civrealms<includeonly>| |
| state4 = {{{civrealms<includeonly>|collapsed</includeonly>}}} |
||
|list4 = {{Navbox |child |groupstyle = background:#FFE6E6 |
|list4 = {{Navbox |child |groupstyle = background:#FFE6E6 |
||
|group41 = Nations |
|group41 = Nations |
||
Line 128: | Line 170: | ||
|group43 = |
|group43 = |
||
|list43 = |
|list43 = |
||
*[[Borealian Socialist Republic]] |
*[[File:BSR_Flag.png|20px]] [[Borealian Socialist Republic]] |
||
*[[Bremerhaven]] |
*[[File:Bremerhaven_Flag_small.png|20px]] [[Bremerhaven]] |
||
*[[Three Cities]] |
*[[Three Cities]] |
||
}} |
}} |
||
Line 148: | Line 190: | ||
*[[File:NatSyn_Party_Varathia_Flag.png|20px]] [[Varathia#National_Syndicalist_Party_of_Varathia|National Syndicalist Party of Varathia]] |
*[[File:NatSyn_Party_Varathia_Flag.png|20px]] [[Varathia#National_Syndicalist_Party_of_Varathia|National Syndicalist Party of Varathia]] |
||
}} |
}} |
||
|group48= Notable People |
|||
|list48 = {{Navbox |child |groupstyle = background:#FFE6E6 |
|||
|group49 = |
|||
|list49 = |
|||
*[[4788888]] |
|||
*[[ADAM]] |
|||
*[[ieatazz69]] |
|||
*[[Narwhal 19]] |
|||
*[[RainOfPain125]] |
|||
*[[Raven]] |
|||
}} |
}} |
||
}} |
|||
}} <!-- past server group --> |
|||
|group17 = Live Servers |
|||
| abbrn17 = ACTIVE |
|||
| state17 = |
|||
{{#ifexpr: |
|||
{{#expr: |
|||
{{#ifeq: {{{civmc}}} | uncollapsed | 1 | 0}} |
|||
+ {{#ifeq: {{{civreign}}} | uncollapsed | 1 | 0}} |
|||
}}|uncollapsed|collapsed |
|||
}} |
|||
| list17 = {{Navbox with collapsible groups|child||groupstyle = background:#FFDDDD |
|||
|group5 = [[CivMC]] |
|group5 = [[CivMC]] |
||
| abbrn5= CM |
| abbrn5= CM |
||
| state5 = {{{civmc<includeonly>| |
| state5 = {{{civmc<includeonly>|collapsed</includeonly>}}} |
||
|list5 = {{Navbox |child |groupstyle = background:#FFE6E6 |
|list5 = {{Navbox |child |groupstyle = background:#FFE6E6 |
||
|group50 = Nations |
|group50 = Nations |
||
|list50 = |
|list50 = |
||
*{{flagicon|Free Workers' Cooperative of Danzilona}} [[Free Workers' Cooperative of Danzilona|FWC Danzilona]] |
|||
*{{flag|Krohil}} |
|||
*{{flag|Sovia|CivMC}} |
|||
*{{flag|The Collective}} |
|||
*{{flag|Djani'hweh}} |
|||
*[[Petrichor]] |
|||
|group51 = Groups and Alliances |
|group51 = Groups and Alliances |
||
|list51 = [[Socialist Internationale]] |
|list51 = * [[Socialist Internationale]] |
||
* {{flag|The Workers' Party}} |
|||
* {{flag|Socialist Party of Danzilona (Bonapartist)}} |
|||
* [[Socialist Unity Coalition]] |
|||
}} |
}} |
||
|group6 = |
|group6 = [[CivReign]] |
||
| abbrn6= |
| abbrn6= CRR |
||
| state6 = {{{ |
| state6 = {{{civreign<includeonly>|collapsed</includeonly>}}} |
||
|list6 = {{Navbox |
|list6 = {{Navbox |child |groupstyle = background:#FFE6E6 |
||
|group60 = Nations |
|||
|list60 = |
|||
* {{flag|Osna}} |
|||
* {{flag|Sovia|CivReign}} |
|||
}} |
|||
|group9 = Other servers |
|||
| abbrn9= OT |
|||
| state9 = {{{other<includeonly>|collapsed</includeonly>}}} |
|||
|list9 = {{Navbox with columns|child |groupstyle = background:#FFE6E6 |
|||
|colstyle= text-align:center |
|colstyle= text-align:center |
||
|colheaderstyle = background:#FFE6E6 |
|colheaderstyle = background:#FFE6E6 |
||
Line 169: | Line 256: | ||
|col1= *[[File:Ancom_flag.png|20px]] [[LSIF]] |
|col1= *[[File:Ancom_flag.png|20px]] [[LSIF]] |
||
|col2header = [[CivCraft 1.0]] |
|col2header = [[CivCraft 1.0]] |
||
|col2 = |
|col2 = [[File:Ancom_flag.png|20px]] [[LSIF]] |
||
* [[File:ACPflag.png|20px]] [[Augustan Communist Party]] |
|||
|col3header = [[CivUniverse]] |
|col3header = [[CivUniverse]] |
||
|col3 = |
|col3 = {{flag|Sovia|CivUniverse}} |
||
|col4header = [[ |
|col4header = [[CivRev]] |
||
|col4 = * {{flag|Sovia|CivRev}} |
|||
|col4 = [[File:Mh_flag.png|20px]] [[Mery Horde]] |
|||
* [[File:Mh_flag.png|20px]] [[Mery Horde]] |
|||
|col5header =[[Vintage Civ]] |
|col5header =[[Vintage Civ]] |
||
|col5 = [[Hwillotati]] |
|col5 = [[Hwillotati]] |
||
}} |
}} |
||
}} <!-- active server group --> |
|||
}} |
}} |
Latest revision as of 06:37, 28 November 2023
Marks a page as part of the history of far left thought on Civ.
Usaging the Template
TL;DR: To use this template in an article, copy the template below, paste it into an article and change servername to the respective server of the page. See below for variable names.
In case of issues, errors or you want to add things but find the template too annoying to navigate through simply contact Raven.
State
By default the templates state is set to autocollapse
. A navbox with autocollapse
will start out collapsed if there are two or more collapsible elements on the same page. Otherwise, the navbox will be expanded.
To force it to always be uncollapsed simply change state to uncollapsed. This is ideal for most pages.
{{Socialism
|state=uncollapsed
}}
Server
All servers are collapsed by default, it is intended that the respective server associated with the page is set as uncollapsed. However, you are capable of uncollapsing as many servers as you want, keep in mind that this might look bloated. The following example employs a mix of collapsed and uncollapsed servers
A more normal usecase would be the following, choosing only to display civrealms:
Bloated Pages
Some pages may already have multiple navboxes, if you intend, for example due to the ties to socialism being rather secondary, you can collapse the general navbox while setting the specific server as uncollapsed. This will result in the specific server being visible once the general navbox is uncollapsed. An example using CivRealms:
Maintaing the Template
Hierarchy
To make it easier to add things later on, the groups and lists are supposed to reflect their position in the hierarchy. This is not pursued in further nestings.
The highest relevant group, for example, Civcraft 2.0 is group1
. All further lists and groups lower in the hiarchy are respectively labelled group10
, list10
, group11
, list11
. For Civcraft 3.0, we have group2
and thus the groups one hierarchy lower are group20
, list20
, group21
, list21
, etc.
This may not work forever as I think there is a sort of limit to groups and would also break if one server requires more than 10 groups. So far though this has not been an issue.
The Live and Past Server group are an exception, those are group16
for past and group17
for live at the moment.
Live & Past Servers
The category live & past server are automatically collapsed and uncollapsed depending on whether an active server is collapsed or uncollapsed.
This is done through checking for each server whether uncollapsed
or the default collapsed
are given, returning 1 if uncollapsed
and adding them all together. If the result is 0, collapsed
is returned, if it is above 1 then the state will be uncollapsed
.
To change a servers status move a group from Live (group17
) to Past (group16
). The }}
marking the end of those 2 groups should be marked with a comment.
Next, go to the logic from state17
, this may look as following and a similar, but longer, expression will be found in state16
state16
. If there is only one active server then there shouldn't be any + as its role is to add up servers.
Read up on w:Help:Conditional_expressions for more information.