Template:Socialism: Difference between revisions
No edit summary |
(irrelevant accusation) |
||
(28 intermediate revisions by 7 users not shown) | |||
Line 3:
</noinclude>
{{Navbox with collapsible groups
| name = Socialism
| title = Socialism in Civ
| state = {{{state<includeonly>|autocollapse</includeonly>}}}
Line 9:
|titlestyle = background:#D90700;color: #F7CF11;
|groupstyle = background:#
|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
| abbrn1 = CC2
| state1 = {{{civcraft2<includeonly>|
|list1 = {{Navbox |child |groupstyle = background:#FFE6E6
|group10 = Nations
Line 30 ⟶ 45:
*[[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
|list12 = {{Navbox |child |groupstyle = background:#FFE6E6
Line 36 ⟶ 52:
*[[File:EasternBlocFlag.jpg|20px]] [[Eastern Bloc]]
*[[File:Ancom_flag.png|20px]] [[LSIF]]
*
*[[Civcraft Socialist Coalition]]
*[[File:Ndz_socialism.png|20px]] [[New Danzilonan Civil War|New Danzilona Socialists]]
Line 47 ⟶ 63:
*[[BolleDeBoll]]
*[[Geckos017]]
*[[Lowtuff]]▼
*[[SandFalls]]
*[[ZombieLenin]]
▲*[[Lowtuff]]
}}
}}
|group2 = [[Civcraft 3.0]]
| abbrn2 = CC3
| state2 = {{{civcraft3<includeonly>|
| list2 = {{Navbox |child |groupstyle = background:#FFE6E6
|group20 = Nations
Line 67 ⟶ 83:
|list22 = {{Navbox |child |groupstyle = background:#FFE6E6
|group23 =
|list23 = *[[File:Unitas3flag.png|20px]] [[
*[[File:Bambinos_flag.PNG|16px]] [[Endeavor|Majas]]
}}
|group24 = Groups and Alliances
Line 75 ⟶ 91:
*[[File:TheWorkersParty_Logo.png|20px]] [[The Workers' Party]]
*[[Volterra#3.0 History|Volterran]] Workers' Party
*[[File:Bambinos_flag.PNG|16px]] [[Endeavor|Baltic Bambinos]]
|group25 = Notable People
Line 89 ⟶ 105:
|group3 = [[CivClassic 2.0]]
| abbrn3= CC
| state3 = {{{civclassics<includeonly>|
|list3 = {{Navbox |child |groupstyle = background:#FFE6E6
|group30 = Nations
Line 121 ⟶ 137:
*[[File:Flag.png|20px]] [[Trekestan]]
*{{flag|Vinland}}
|group34 = Groups and Alliances
|list34 = {{Navbox |child |groupstyle = background:#FFE6E6
Line 132 ⟶ 149:
|group36 = Notable People
|list36 =
*[[AmandaCC]]
*[[cat_alunya]]
*[[ChocChips]]
*[[Lanni]]
*[[Pythius_]]
*[[Lowtuff]]
*[[SandFalls]]
*[[SimpleBastard]]
*[[smal]]
}}
|group4 = [[CivRealms]]
| abbrn4= CR
| state4 = {{{civrealms<includeonly>|
|list4 = {{Navbox |child |groupstyle = background:#FFE6E6
|group41 = Nations
Line 173 ⟶ 198:
*[[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]]
| abbrn5= CM
| state5 = {{{civmc<includeonly>|
|list5 = {{Navbox |child |groupstyle = background:#FFE6E6
|group50 = Nations
|list50 =
*{{flagicon|Free Workers' Cooperative of Danzilona}} [[Free Workers' Cooperative of Danzilona|FWC Danzilona]]
▲*{{flag|Sovia (CivMC)}}
*{{flag|Krohil}}
*{{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 =
| abbrn6=
| state6 = {{{
|list6 = {{Navbox
|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
|colheaderstyle = background:#FFE6E6
Line 203 ⟶ 259:
* [[File:ACPflag.png|20px]] [[Augustan Communist Party]]
|col3header = [[CivUniverse]]
|col3 =
|col4header = [[CivRev]]
|col4 = * {{flag|Sovia|CivRev}}
▲* {{flag|Sovia (CivRev) }}
|col5header =[[Vintage Civ]]
|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.