Difference between revisions of "Template:History of Japan"

From blackwiki
Jump to navigation Jump to search
(background rather than border lines make list titles more distinct when list(s) expanded, added years to Shōwa events)
(reduced template's height (and amount of code) by reformatting sub-Infoboxes)
Line 12: Line 12:
 
| list1title = {{resize|110%|Periods}}<!--resized here (rather than via styling) so accompanying [show/hide] link not resized as well-->
 
| list1title = {{resize|110%|Periods}}<!--resized here (rather than via styling) so accompanying [show/hide] link not resized as well-->
 
| list1 =  
 
| list1 =  
  {{Infobox |bodystyle={{infobox subbox bodystyle}}
+
  {{Infobox
   |datastyle=text-align:right;white-space:nowrap;
+
  | bodystyle = {{infobox subbox bodystyle}};<!--line-height:1.4em;-->
   |label1=[[Japanese Paleolithic|Paleolithic]] |data1={{small|pre-14,000 [[Before Christ|BC]]}}
+
   | datastyle = text-align:right;white-space:nowrap;
 +
   |label1=[[Japanese Paleolithic|Paleolithic]] |data1={{small|before 14,000 [[Before Christ|BC]]}}
 
   |label2=[[Jōmon period|Jōmon]] |data2={{small|14,000&ndash;300 BC}}
 
   |label2=[[Jōmon period|Jōmon]] |data2={{small|14,000&ndash;300 BC}}
 
   |label3=[[Yayoi period|Yayoi]] |data3={{small|300 BC &ndash; 250 [[Anno Domini|AD]]}}
 
   |label3=[[Yayoi period|Yayoi]] |data3={{small|300 BC &ndash; 250 [[Anno Domini|AD]]}}
Line 28: Line 29:
 
     |labelstyle=font-weight:normal;padding-left:2.0em;
 
     |labelstyle=font-weight:normal;padding-left:2.0em;
 
     |datastyle=text-align:right;white-space:nowrap;
 
     |datastyle=text-align:right;white-space:nowrap;
     |label1=[[Kofun period|Kofun]] |data1=250&ndash;538
+
     |label1=[[Kofun period|Kofun]] |data1=''250&ndash;538''
     |label2=[[Asuka period|Asuka]] |data2=538&ndash;710
+
     |label2=[[Asuka period|Asuka]] |data2=''538&ndash;710''
 
   }}
 
   }}
 
  --------->
 
  --------->
Line 40: Line 41:
 
   |label8=[[Kamakura period|Kamakura]] |data8=1185&ndash;1333
 
   |label8=[[Kamakura period|Kamakura]] |data8=1185&ndash;1333
 
   |label9={{nobold|[[Kenmu restoration]]}} |data9=''1333&ndash;1336''
 
   |label9={{nobold|[[Kenmu restoration]]}} |data9=''1333&ndash;1336''
   |label10=[[Muromachi period|Muromachi {{nobold|{{small|(Ashikaga)}}}}]] |data10=1336&ndash;1573
+
 
  |data11=
+
   |label10=
  {{Infobox |bodystyle={{infobox subbox bodystyle}}
+
  {{longitem |[[Muromachi period|Muromachi {{nobold|{{small|(Ashikaga)}}}}]]
    |labelstyle=font-weight:normal;padding-left:2.0em;
+
    {{ublist|style=padding-left:1.4em;line-height:1.4em;font-weight:normal;
    |datastyle=text-align:right;white-space:nowrap;
+
      |[[Nanboku-chō period|Nanboku-chō]] |[[Sengoku period|Sengoku]]}}
    |label1=[[Nanboku-chō period|Nanboku-chō]] |data1=''1336&ndash;1392''
 
    |label2=[[Sengoku period|Sengoku]] |data2=''1467&ndash;1573''
 
 
   }}
 
   }}
   |label12=[[Azuchi–Momoyama period|Azuchi–Momoyama]] |data12=1568&ndash;1603
+
   |data10=1336&ndash;1573
   |data13=
+
 
   {{Infobox |bodystyle={{infobox subbox bodystyle}}
+
   |label11=
    |labelstyle=font-weight:normal;padding-left:2.0em;
+
   {{longitem |[[Azuchi–Momoyama period|Azuchi–Momoyama]]
    |datastyle=text-align:right;white-space:nowrap;
+
    {{ublist|style=padding-left:1.4em;line-height:1.4em;font-weight:normal;
    |label1=[[Nanban trade]] |data1=<nowiki />
+
      |[[Nanban trade]]}}
 
   }}
 
   }}
   |label14=[[Edo period|Edo {{nobold|{{small|(Tokugawa)}}}}]] |data14=1603&ndash;1868
+
   |data11=1568&ndash;1603
  |data15=
+
 
  {{Infobox |bodystyle={{infobox subbox bodystyle}}
+
  |label12=
    |labelstyle=font-weight:normalpadding-left:2.0em;
+
  {{longitem |[[Edo period|Edo {{nobold|{{small|(Tokugawa)}}}}]]
    |datastyle=text-align:right;white-space:nowrap;
+
    {{ublist|style=padding-left:1.4em;line-height:1.4em;font-weight:normal;
    |label1=[[Bakumatsu]] |data1=<nowiki />
+
      |[[Bakumatsu]]}}
 
   }}
 
   }}
   |label16=[[Meiji period|Meiji]] |data16=1868&ndash;1912
+
   |data12=1603&ndash;1868
   |data17=
+
 
   {{Infobox |bodystyle={{infobox subbox bodystyle}}
+
   |label13=
    |labelstyle=font-weight:normal;padding-left:2.0em;
+
   {{longitem |[[Meiji period|Meiji]]
    |datastyle=text-align:right;white-space:nowrap;
+
    {{ublist|style=padding-left:1.4em;line-height:1.4em;font-weight:normal;
    |label1=[[Meiji Restoration|Restoration]] |data1=<nowiki />
+
      |[[Meiji Restoration|Restoration]]}}
 
   }}
 
   }}
   |label18=[[Taishō period|Taishō]] |data18=1912&ndash;1926
+
   |data13=1868&ndash;1912
   |data19=
+
 
   {{Infobox |bodystyle={{infobox subbox bodystyle}}
+
   |label14=
    |labelstyle=font-weight:normal;padding-left:2.0em;
+
   {{longitem |[[Taishō period|Taishō]]
    |datastyle=text-align:right;white-space:nowrap;
+
    {{ublist|style=padding-left:1.4em;line-height:1.4em;font-weight:normal;
    |label1=[[Japan during World War I|World War I]] |data1=<nowiki />
+
      |[[Japan during World War I|World War I]]}}
 
   }}
 
   }}
   |label20=[[Shōwa period|Shōwa]] |data20=1926&ndash;1989
+
   |data14=1912&ndash;1926
   |data21=
+
 
  {{Infobox |bodystyle={{infobox subbox bodystyle}}
+
  |label15=<div style="line-height:1.3em;">[[Shōwa period|Shōwa]]</div> |data15=<div style="line-height:1.3em;">1926&ndash;1989</div>
    |labelstyle=font-weight:normal;padding-left:2.0em;
+
   |data16={{hlist |class=wraplinks |style=padding-left:1.4em;text-align:left;line-height:1.2em;padding-bottom:0.2em; |[[Shōwa financial crisis|Financial crisis]] |[[Japanese militarism|Militarism]] |[[Pacific War]] |[[Occupation of Japan|Occupation]] |[[Post-occupation Japan|Post-occupation]]}}
    |datastyle=text-align:right;white-space:nowrap;
+
 
    |label1=[[Shōwa financial crisis|Financial crisis]] |data1=''1927''
+
   |label17=
    |label2=[[Japanese militarism|Militarism]] |data2=''1880s&ndash;1945''
+
  {{longitem |[[Heisei period|Heisei]]
    |label3=[[Pacific War]]                   |data3=''1941&ndash;1945''
+
    {{ublist|style=padding-left:1.4em;line-height:1.4em;font-weight:normal;
    |label4=[[Occupation of Japan|Occupation]] |data4=''1945&ndash;1952''
+
      |[[Lost Decade (Japan)|Lost Decade]]}}
    |label5=[[Post-occupation Japan|Post-occupation]] |data5=<nowiki />
 
  }}
 
   |label22=[[Heisei period|Heisei]] |data22=1989&ndash;{{small|present}}
 
  |data23=
 
  {{Infobox |bodystyle={{infobox subbox bodystyle}}
 
    |labelstyle=font-weight:normal;padding-left:2.0em;
 
    |datastyle=text-align:right;white-space:nowrap;
 
    |label1=[[Lost Decade (Japan)|Lost Decade]] |data1=<nowiki />
 
 
   }}
 
   }}
 +
  |data17=1989&ndash;{{small|present}}
 
  }}
 
  }}
  

Revision as of 17:40, 30 March 2014

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 Japan |expanded=all}} or, if enabled, {{History of Japan |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 Japan |expanded=listname}} or, if enabled, {{History of Japan |listname}}
  • …where listname is one of the following (do not include any quotemarks):
  • periods, topics

Full syntax

{{History of Japan |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 Japan}}
or
  • {{History of Japan |periods}}
or
  • {{History of Japan |image=Satsuma-samurai-during-boshin-war-period.jpg |caption=[[Samurai]] of the [[Satsuma clan]]}}
or
  • {{History of Japan |topics |image=Satsuma-samurai-during-boshin-war-period.jpg |imagesize=280px |caption=[[Samurai]] of the [[Satsuma clan]]}}
etc.

See also