Difference between revisions of "Template:History of Japan/doc"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Andrybak
 
(11 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{History of Japan <!--default image/caption:-->|image=KaiIchiranzu1806.jpg |caption=}}
 
== Usage ==
 
== Usage ==
:<code><nowiki>{{History of Japan|image=|imagesize=|caption=}}</nowiki></code>
+
{{Collapsible lists option |listnames=periods, topics}}
  
 +
===Full syntax===
 +
:<code><nowiki>{{History of Japan |</nowiki>''listname''<nowiki> |image= |imagesize= |caption=}}</nowiki></code>
 +
* ''listname'' specifies which of the template's lists is expanded (see above).
 
* When <code>image=</code> is used, the picture is changed.
 
* When <code>image=</code> is used, the picture is changed.
 
* When <code>imagesize=</code> is used, the picture size is changed (default is 185px).
 
* When <code>imagesize=</code> is used, the picture size is changed (default is 185px).
 
* When <code>caption=</code> is used, a caption is added to the picture.
 
* When <code>caption=</code> is used, a caption is added to the picture.
  
example:
+
===Examples===
 +
*<code><nowiki>{{History of Japan}}</nowiki></code>
 +
:or
 +
*<code><nowiki>{{History of Japan |periods}}</nowiki></code>
 +
:or
 +
*<code><nowiki>{{History of Japan |image=Satsuma-samurai-during-boshin-war-period.jpg |caption=[[Samurai]] of the [[Satsuma clan]]}}</nowiki></code>
 +
:or
 +
*<code><nowiki>{{History of Japan |topics |image=Satsuma-samurai-during-boshin-war-period.jpg |imagesize=280px |caption=[[Samurai]] of the [[Satsuma clan]]}}</nowiki></code>
 +
:etc.
  
<code><nowiki>{{History of Japan}}</nowiki></code>
+
== See also ==
 +
{{History of Asia templates |collapsed}}
  
or
+
<includeonly>{{Sandbox other||
 
+
<!--Categories below here, please:-->
<code><nowiki>{{History of Japan|image=Satsuma-samurai-during-boshin-war-period.jpg|caption= [[Samurai]] of the [[Satsuma clan]]}}</nowiki></code>
+
[[Category:Japan history sidebar templates| ]]
 
+
}}</includeonly>
or
 
 
 
<code><nowiki>{{History of Japan|image=Satsuma-samurai-during-boshin-war-period.jpg|imagesize=280px|caption=[[Samurai]] of the [[Satsuma clan]]}}</nowiki>
 
 
 
{{History of Asia templates}}
 
<includeonly><!-- Categories go here: -->
 
[[Category:Japan templates]]
 
[[Category:History by nation navigational boxes|Japan]]
 
</includeonly>
 

Latest revision as of 18:57, 24 October 2020

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