Template:Socialism/doc: Difference between revisions
no edit summary
FalscherRVN (talk | contribs) mNo edit summary |
FalscherRVN (talk | contribs) 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,
<source lang="html" style="overflow: hidden; background: unset;">
{{Socialism
|state=uncollapsed
|servername=uncollapsed
|civcraft2=collapsed▼
|civcraft3=collapsed▼
|civclassics=collapsed▼
|civrealms=collapsed▼
}}
</source>▼
</source>
=== State ===
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.
To force it to always be uncollapsed simply change state to uncollapsed. '''This is ideal for most pages.'''
<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
<source lang="html" style="overflow: hidden; background: unset;">
{{Socialism
|state=
|civcraft2=collapsed
|civcraft3=uncollapsed
Line 35 ⟶ 36:
|civrealms=uncollapsed
|civmc=collapsed
|civreign=uncollapsed
|other=collapsed
}}
</source>
{{Socialism
|state=
|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
}}
</source>
{{Socialism
|civrealms=uncollapsed
}}
=== Fully Expanded Template ===
{{Socialism
|state=uncollapsed
|civcraft2=uncollapsed
|civcraft3=uncollapsed
|civrealms=uncollapsed
|civmc=uncollapsed
|civreign=uncollapsed
|other=uncollapsed
}}
|