Difference between revisions of "Template:History of Sri Lanka"

From blackwiki
Jump to navigation Jump to search
imported>Izno
(nix small)
Line 57: Line 57:
  
 
   |{{longitem |'''[[History of Sri Lanka (1948–present)|Sri Lanka]]'''
 
   |{{longitem |'''[[History of Sri Lanka (1948–present)|Sri Lanka]]'''
     {{ublist|class=wraplinks|style=padding-left:1.4em;text-align:left;line-height:1.25em;padding-bottom:0.2em; |[[Dominion of Ceylon|Dominion]]<br>[[History of Sri Lanka (1948–present)#Republic (1972-2009)|Republic]]<br>[[History of Sri Lanka (1948–present)#Post-conflict (2009-present)|Post-conflict]]}} }}
+
     {{ublist|class=wraplinks|style=padding-left:1.4em;text-align:left;line-height:1.25em;padding-bottom:0.2em; |[[Dominion of Ceylon|Dominion]]<br>[[History of Sri Lanka (1948–present)#Republic (1972–2009)|Republic]]<br>[[History of Sri Lanka (1948–present)#Post-conflict (2009–present)|Post-conflict]]}} }}
 
   |1948&ndash;present
 
   |1948&ndash;present
 
  }}
 
  }}

Revision as of 19:01, 3 February 2018

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

Usage

This template includes collapsible lists.

  • To set it to display all lists when it appears (i.e. all lists expanded), use:
  •  {{History of Sri Lanka |expanded=all}} or, if enabled, {{History of Sri Lanka |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:
  •  {{History of Sri Lanka |expanded=listname}} or, if enabled, {{History of Sri Lanka |listname}}
  • …where listname is one of the following (do not include any quotemarks):
  • periods, topics

Full syntax

{{History of Sri Lanka |listname |image= |imagesize= |caption=}}
  • listname specifies which of the template's lists is expanded (see above).
  • When image= is used, the picture is changed.
  • When imagesize= is used, the picture size is changed (default is 185px).
  • When caption= is used, a caption is added to the picture.

Examples

  • {{History of Sri Lanka}}
or
  • {{History of Sri Lanka |periods}}
or
  • {{History of Sri Lanka |image=British Museum Asia 45 (cropped).jpg |caption=[[Statue of Tara|gilt-bronze sculpture]] of the [[Tara (Buddhism)|Tara]] from the [[Anuradhapura period]]}}
or
  • {{History of Sri Lanka |topics |image=British Museum Asia 45 (cropped).jpg |imagesize=280px |caption=[[Statue of Tara|gilt-bronze sculpture]] of the [[Tara (Buddhism)|Tara]] from the [[Anuradhapura period]]}}
etc.

See also