Difference between revisions of "Template:Islam in China"

From blackwiki
Jump to navigation Jump to search
imported>Pevner
imported>Manifestation
(Huh? This template is coded in such a way that you cannot preview your edit. Removed includeonly and altered 'expanded' in such a way that the box is completely unfolded if you see it on this page.)
Line 1: Line 1:
<includeonly>{{Sidebar with collapsible lists  
+
{{Sidebar with collapsible lists  
 
| name = Islam in China
 
| name = Islam in China
 
| bodyclass = collapsible {{#if:{{{collapsed|}}}|collapsed}}
 
| bodyclass = collapsible {{#if:{{{collapsed|}}}|collapsed}}
Line 7: Line 7:
 
| imagestyle = padding:0.4em 0 0.4em;
 
| imagestyle = padding:0.4em 0 0.4em;
 
| image = [[File:Islam in China.jpg|210px|alt=Top of the Great Mosque of Xi'an|link=Great Mosque of Xi'an]]
 
| image = [[File:Islam in China.jpg|210px|alt=Top of the Great Mosque of Xi'an|link=Great Mosque of Xi'an]]
| expanded = {{{expanded|{{{1|}}}}}}
+
| expanded = {{#ifeq:{{FULLPAGENAME}}|Template:Islam in China|all|{{{expanded|{{{1|}}}}}}}}
 
| listclass = hlist
 
| listclass = hlist
  
Line 106: Line 106:
 
| below = {{portal-inline|Islam in China|size=tiny}}
 
| below = {{portal-inline|Islam in China|size=tiny}}
  
}}</includeonly><noinclude>
+
}}<noinclude>
 
{{Documentation
 
{{Documentation
  | content = {{Islam in China|all}}
+
  | content =  
 
   {{Collapsible lists option
 
   {{Collapsible lists option
 
   | listnames = history, figures, culture, places, groups
 
   | listnames = history, figures, culture, places, groups
 
   | example = history
 
   | example = history
 
   }}
 
   }}
 +
 +
This sidebar is fully collapsed by default, but is fully expanded when viewed on this page.
 +
 
[[Category:"Islam in" and "Islamism in" templates|China]]
 
[[Category:"Islam in" and "Islamism in" templates|China]]
 
[[Category:Islam sidebar templates|Islam in China]]
 
[[Category:Islam sidebar templates|Islam in China]]
}}<!--(end Documentation)-->
+
}}
 
</noinclude>
 
</noinclude>

Revision as of 15:16, 18 May 2018

Template documentation

This template includes collapsible lists.

  • To set it to display all lists when it appears (i.e. all lists expanded), use:
  •  {{Islam in China |expanded=all}} or, if enabled, {{Islam in China |all}}  (i.e. omitting "expanded=").
  • To set it to display one particular list while keeping the remainder collapsed (i.e. hidden apart from their headings), use:
  •  {{Islam in China |expanded=listname}} or, if enabled, {{Islam in China |listname}}
  • …where listname is one of the following (do not include any quotemarks):
  • history, figures, culture, places, groups
  • For example, {{Islam in China |expanded=history}} or, if enabled, {{Islam in China |history}}

This sidebar is fully collapsed by default, but is fully expanded when viewed on this page.