Template:Socialism: Difference between revisions

From CivWiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
(irrelevant accusation)
 
(46 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<noinclude>
{{documentation}}
</noinclude>
{{Navbox with collapsible groups
{{Navbox with collapsible groups
| name = Socialism in Civ
| name = Socialism
| title = Socialism in Civ
| title = Socialism in Civ
| state = {{{state<includeonly>|autocollapse</includeonly>}}}
| state = {{{state<includeonly>|autocollapse</includeonly>}}}
Line 6: Line 9:
|titlestyle = background:#D90700;color: #F7CF11;
|titlestyle = background:#D90700;color: #F7CF11;


|groupstyle = background:#FFDDDD
|groupstyle = background:#FF8B8B


|group16 = Past Servers
|group1 = [[CivCraft 2.0]]
| 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 = [[Civcraft 2.0]]
| abbrn1 = CC2
| abbrn1 = CC2
| state1 = {{state1|autocollapse}}
| 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 =
*[[File:CentauriFlag.png|20px]] [[Centauri]]
*[[New Leningrad]]
*[[File:LuxemFlag.png|20px]] [[Luxem]]
*[[Centauri]]
*[[Luxem]]
*[[Montarnis]]
*[[Montarnis]]
*[[File:Flag_of_the_soviet_union.png|20px]] [[New Leningrad]]
}}
}}
*[[Sunder]]
*[[RSSR]]
*[[Newtro]]
*[[Arstotzka]]
*[[Arstotzka]]
*[[Newtro]]
*[[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 =
*[[File:EasternBlocFlag.jpg|20px]] [[Eastern Bloc]]
*[[File:Ancom_flag.png|20px]] [[LSIF]]
*[[File:Ancom_flag.png|20px]] [[LSIF]]
*{{flag|The Workers' Party}}
*[[Eastern Bloc]]
*[[Civcraft Socialist Coalition]]
*[[File:TheWorkersParty_Logo.png|20px]] [[The Workers' Party]]
*[[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 = {{state2|autocollapse}}
| state2 = {{{civcraft3<includeonly>|collapsed</includeonly>}}}
| list2 = {{Navbox |child |groupstyle = background:#FFE6E6
| list2 = {{Navbox |child |groupstyle = background:#FFE6E6
|group20 = Nations
|group20 = Nations
Line 49: Line 76:
|group21 =
|group21 =
|list21 =
|list21 =
*[[File:Ancom_flag.png|20px]] [[Girane]]
*[[File:CCCP-Flag.png|20px]] [[United Socialist Republic]]
*[[File:CCCP-Flag.png|20px]] [[United Socialist Republic]]
*[[File:Veria3flag.png|20px]] [[Civcraft2Import:3/nations/euthenia|Veria]]
*[[File:Veria3flag.png|20px]] [[Civcraft2Import:3/nations/euthenia|Veria]]
*[[File:Ancom_flag.png|20px]] [[Girane]]
}}
}}
|group22 = Communes
|group22 = Communes
|list22 = {{Navbox |child |groupstyle = background:#FFE6E6
|list22 = {{Navbox |child |groupstyle = background:#FFE6E6
|group23 =
|group23 =
|list23 = *[[File:Unitas3flag.png|20px]] [[Civcraft2Import:3/nations/libra/unitas|Unitas]]
|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:Ancom_flag.png|20px]] [[LSIF]]
*[[File:IWCflag.png|20px]] [[International Workers of Civcraft]]
*[[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:IWCflag.png|20px]] [[International Workers of Civcraft]]
*[[File:Bambinos_flag.PNG|16px]] [[Endeavor|Baltic Bambinos]]

|group25 = Notable People
|list25 =
*[[1234fireball]]
*[[ComradeNick]]
*[[Des23]]
*[[Pythius_]]
*[[Raven]]

}}
}}


|group3 = [[Civclassics]]
|group3 = [[CivClassic 2.0]]
| abbrn3= CC
| abbrn3= CC
| state3 = {{state3|autocollapse}}
| state3 = {{{civclassics<includeonly>|collapsed</includeonly>}}}
|list3 = {{Navbox |child |groupstyle = background:#FFE6E6
|list3 = {{Navbox |child |groupstyle = background:#FFE6E6
|group30 = Nations
|group30 = Nations
Line 79: Line 113:
|group32 = {{flag|Communist Cities Caretaker-Protectorate}}
|group32 = {{flag|Communist Cities Caretaker-Protectorate}}
|list32 =
|list32 =
*[[Pripyat]]
*[[Dithmarschen]]
*[[File:Flag_of_Unitas.png|20px]] [[Free Republik of Unitas]]
*{{flag|Maltovia}}
*{{flag|Maltovia}}
*{{flag|Pripyat}}
*{{flag|Provincia}}
*{{flag|Provincia}}
<!-- Saigon? -->
*[[Dithmarshen]]
*[[Free Republik of Unitas]]
|group33 =
|group33 =
|list33 =
|list33 =
*{{flag|Confederation of Socialist Augusta}}
*{{flag|Lumière}}
*{{flag|Western Agricultural Union}}
*{{flag|Western Agricultural Union}}
*{{flag|Lumière}}
*{{flag|Confederation of Socialist Augusta}}


}}
}}
}}
}}
*{{flag|Vinland}}
*{{flag|Krohil}}
*[[File:Lyra.png|20px]] [[Lyra]]
*{{flag|New Sovia}}
*{{flag|Jevoghnya}}
*{{flag|Nyasaland}}
*{{flag|Nyasaland}}
*{{flag|Ossenkirch}}
*{{flag|Ossenkirch}}
*[[File:Flag_(1).png|20px]] [[Potistan]]
*{{flag|Krohil}}
*[[File:TdC_Flag_Low_Res.png|20px]] [[Tierra de Conciencia]]
*[[Lyra]]
*[[Trekestan]]
*[[File:Flag.png|20px]] [[Trekestan]]
*{{flag|Vinland}}
*[[Tierra de Conciencia]]
*{{flag|Carson}}
*[[Potistan]]
*{{flag|Krohil}}

|group34 = Groups and Alliances
|group34 = Groups and Alliances
|list34 = {{Navbox |child |groupstyle = background:#FFE6E6
|list34 = {{Navbox |child |groupstyle = background:#FFE6E6
Line 107: Line 143:
|list35 =
|list35 =
*[[File:Ancom_flag.png|20px]] [[LSIF]]
*[[File:Ancom_flag.png|20px]] [[LSIF]]
*[[File:SESU-flag.png|20px]] [[South Eastern Socialist Union]]
*[[File:TheWorkersParty_Logo.png|20px]] [[The Workers' Party]]
*[[File:TheWorkersParty_Logo.png|20px]] [[The Workers' Party]]

*[[File:SESU-flag.png|20px]] [[ South Eastern Socialist Union]]
}}
}}
|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 = {{state4|autocollapse}}
| state4 = {{{civrealms<includeonly>|collapsed</includeonly>}}}
|list4 = {{Navbox |child |groupstyle = background:#FFE6E6
|list4 = {{Navbox |child |groupstyle = background:#FFE6E6
|group41 = Nations
|group41 = Nations
Line 124: Line 170:
|group43 =
|group43 =
|list43 =
|list43 =
*[[File:BSR_Flag.png|20px]] [[Borealian Socialist Republic]]
*[[Bremerhaven]]
*[[File:Bremerhaven_Flag_small.png|20px]] [[Bremerhaven]]
*[[Borealian Socialist Republic]]
*[[Three Cities]]
*[[Three Cities]]
}}
}}
Line 131: Line 177:
*{{flag|United Republic}}
*{{flag|United Republic}}
*[[File:Accelerada_Flag.png|20px]] [[Accelerada|Free Economic Zone of Accelerada]]
*[[File:Accelerada_Flag.png|20px]] [[Accelerada|Free Economic Zone of Accelerada]]
* [[Reunion of Soviet Socialist Republics]]
*[[Reunion of Soviet Socialist Republics]]
|group44 = Cities and Communes
|group44 = Cities and Communes
|list44 = {{Navbox |child |groupstyle = background:#FFE6E6
|list44 = {{Navbox |child |groupstyle = background:#FFE6E6
Line 144: 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 = {{state5|autocollapse}}
| state5 = {{{civmc<includeonly>|collapsed</includeonly>}}}
|list5 = {{Navbox |child |groupstyle = background:#FFE6E6
|list5 = {{Navbox |child |groupstyle = background:#FFE6E6
|group50 = Nations
|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
|list51 = * [[Socialist Internationale]]
* {{flag|The Workers' Party}}
* {{flag|Socialist Party of Danzilona (Bonapartist)}}
* [[Socialist Unity Coalition]]
}}
}}

|group6 = Other servers
|group6 = [[CivReign]]
| abbrn6= OT
| abbrn6= CRR
| state6 = {{state6|autocollapse}}
| state6 = {{{civreign<includeonly>|collapsed</includeonly>}}}
|list6 = {{Navbox with columns|child |groupstyle = background:#FFE6E6
|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 159: 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 = *[[File:Ancom_flag.png|20px]] [[LSIF]]
|col2 = [[File:Ancom_flag.png|20px]] [[LSIF]]
* [[File:ACPflag.png|20px]] [[Augustan Communist Party]]
|col3header = [[CivUniverse]]
|col3header = [[CivUniverse]]
|col3 = [[Sovia (CivUniverse)]]
|col3 = {{flag|Sovia|CivUniverse}}
|col4header = [[CivReign]]
|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

Template documentation[view] [edit] [history] [purge]

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.

{{Socialism
|state=uncollapsed
|servername=uncollapsed
}}

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

{{Socialism
|state=uncollapsed
|civcraft2=collapsed
|civcraft3=uncollapsed
|civclassics=collapsed
|civrealms=uncollapsed
|civmc=collapsed
|civreign=uncollapsed
|other=collapsed
}}


A more normal usecase would be the following, choosing only to display civrealms:

{{Socialism
|state=uncollapsed
|civrealms=uncollapsed
}}

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:

{{Socialism
|state=collapsed
|civrealms=uncollapsed
}}



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

{{#ifexpr:
  {{#expr:
    {{#ifeq: {{{civmc}}} | uncollapsed | 1 | 0}}
  + {{#ifeq: {{{civreign}}} | uncollapsed | 1 | 0}}
  }}|uncollapsed|collapsed
}}
Copy the line containing the server, like
 + {{#ifeq: {{{civreign}}} | uncollapsed | 1 | 0}}
and paste it appropiately into 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.