Template:Socialism/doc: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 1:
{{Documentation subpage}}
==Usage==
Marks a page as part of the history of far left thought on Civ.
 
==Usage==
'''TL;DR''': To use this template in an article, copy the template below, then paste the templateit into an article. Replaceand thechange "collapsed"''servername'' to "uncollapsed"the forrespective theserver serverof the page. hasSee below for beenvariable onnames.
 
 
<source lang="html" style="overflow: hidden; background: unset;">
{{Socialism
|state=uncollapsed
|servername=uncollapsed
|civcraft2=collapsed
|civcraft3=collapsed
|civclassics=collapsed
|civrealms=collapsed
|civmc=collapsed
|other=collapsed
}}
</source>
</source>
 
=== State ===
"state" refers to the whole navbox, whereas the other named parameters determine the respective server.
By default the templates state is set to <code>autocollapse</code>. A navbox with <code>autocollapse</code> will start out collapsed if there are two or more collapsible elements on the same page. Otherwise, the navbox will be expanded.
It is recommended to only collapse the navbox of the server the page is on, when multiple apply or the page already has one or two more relevant navboxes it is recommended to collapse state and leave the respective server(s) uncollapsed.
To force it to always be uncollapsed simply change state to uncollapsed. '''This is ideal for most pages.'''
 
For ease of use one may copy this and add "un" in front of the relevant server to collapse
 
<source>
{{Socialism
|state=uncollapsed
}}
</source>
{{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
 
Example of state being uncollapsed while 2 servers are collapsed:
<source lang="html" style="overflow: hidden; background: unset;">
{{Socialism
|state=collapseduncollapsed
|civcraft2=collapsed
|civcraft3=uncollapsed
Line 35 ⟶ 36:
|civrealms=uncollapsed
|civmc=collapsed
|civreign=uncollapsed
|other=collapsed
}}
</source>
 
{{Socialism
|state=collapseduncollapsed
|civcraft2=collapsed
|civcraft3=uncollapsed
Line 46 ⟶ 47:
|civrealms=uncollapsed
|civmc=collapsed
|civreign=uncollapsed
|other=collapsed
}}
 
=== 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:
 
<source lang="html" style="overflow: hidden; background: unset;">
{{Socialism
|civcraft2state=collapsed
|civrealms=collapseduncollapsed
}}
</source>
{{Socialism
|civcraft3state=collapsed
|civrealms=uncollapsed
}}
 
=== Fully Expanded Template ===
{{Socialism
|state=uncollapsed
|civcraft2=uncollapsed
|civcraft3=uncollapsed
|civclassics=collapseduncollapsed
|civrealms=uncollapsed
|civmc=uncollapsed
|civreign=uncollapsed
|other=uncollapsed
}}
411

edits