Difference between revisions of "Template:Maoism"

From blackwiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{Navbox
 
{{Navbox
 
| name      = Maoism
 
| name      = Maoism
| title      = [[Maoism|<span style="color:white;">Maoism</span>]]
+
| title      = [[Maoism|<span style="color:gold;">Maoism</span>]]
 
| bodyclass  = hlist
 
| bodyclass  = hlist
| titlestyle = background:#CC0000; color:white;
+
| titlestyle = background:#CC0000; color:gold;
| basestyle  = background:#CC0000; color:white;
+
| basestyle  = background:#CC0000; color:gold;
 
| image      = [[File:Mao Zedong in Red.svg|100px]]
 
| image      = [[File:Mao Zedong in Red.svg|100px]]
 
| state      = {{{state|autocollapse}}}
 
| state      = {{{state|autocollapse}}}
Line 74: Line 74:
 
* [[Nepalese Civil War]]
 
* [[Nepalese Civil War]]
 
| below      =
 
| below      =
* [[Portal:China|<span style="color:white;">China</span>]]
+
* [[Portal:China|<span style="color:gold;">China</span>]]
* [[Portal:Politics|<span style="color:white;">Politics</span>]]
+
* [[Portal:Politics|<span style="color:gold;">Politics</span>]]
 
}}
 
}}
 
<noinclude>
 
<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 08:14, 28 July 2019

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

Usage

Initial visibility: currently defaults to autocollapse

To set this template's initial visibility, the |state= parameter may be used:

  • |state=collapsed: {{Maoism|state=collapsed}} to show the template collapsed, i.e., hidden apart from its title bar
  • |state=expanded: {{Maoism|state=expanded}} to show the template expanded, i.e., fully visible
  • |state=autocollapse: {{Maoism|state=autocollapse}}
    • shows the template collapsed to the title bar if there is a {{navbar}}, a {{sidebar}}, or some other table on the page with the collapsible attribute
    • shows the template in its expanded state if there are no other collapsible items on the page

If the |state= parameter in the template on this page is not set, the template's initial visibility is taken from the |default= parameter in the Collapsible option template. For the template on this page, that currently evaluates to autocollapse.

Alternative template

{{Maoism sidebar}} exists as an alternative version of this template. Any content changes made here should be made there also.