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

From blackwiki
Jump to navigation Jump to search
imported>༆
imported>Frietjes
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
== Usage ==
 
== Usage ==
<nowiki>{{History of Japan|{{{{1}}}|{{{2}}}|Image explanation=}}</nowiki>
+
:<code><nowiki>{{History of Japan|image=|imagesize=|caption=}}</nowiki></code>
  
When <nowiki>{{{{1}}}</nowiki> is put in picture name, the picture is changed.<br/>
+
* When <code>image=</code> is used, the picture is changed.
When <nowiki>{{{{2}}}</nowiki> is put in picture width, the picture size is changed (initial value = 200px).<br/>
+
* When <code>imagesize=</code> is used, the picture size is changed (default is 185px).
When the argument "Image explanation" is put in the explanation, the explanation is put in.
+
* When <code>caption=</code> is used, a caption is added to the picture.
  
 
example:
 
example:
  
<nowiki>{{History of Japan}}</nowiki>
+
<code><nowiki>{{History of Japan}}</nowiki></code>
  
or (the image is usually used)
+
or  
  
<nowiki>{{History of Japan|Satsuma-samurai-during-boshin-war-period.jpg|Image explanation = [[Samurai]] of the [[Satsuma clan]].}}</nowiki>
+
<code><nowiki>{{History of Japan|image=Satsuma-samurai-during-boshin-war-period.jpg|caption= [[Samurai]] of the [[Satsuma clan]]}}</nowiki></code>
  
 
or
 
or
  
<nowiki>{{History of Japan|Satsuma-samurai-during-boshin-war-period.jpg|280px|Image explanation = [[Samurai]] of the [[Satsuma clan]].}}</nowiki>
+
<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}}
 
{{History of Asia templates}}
<includeonly><!-- Categories and interwikis go here: -->
+
<includeonly><!-- Categories go here: -->
 
[[Category:Japan templates]]
 
[[Category:Japan templates]]
 
[[Category:History by nation navigational boxes|Japan]]
 
[[Category:History by nation navigational boxes|Japan]]
 
</includeonly>
 
</includeonly>

Revision as of 17:05, 1 April 2014

Usage

{{History of Japan|image=|imagesize=|caption=}}
  • 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.

example:

{{History of Japan}}

or

{{History of Japan|image=Satsuma-samurai-during-boshin-war-period.jpg|caption= [[Samurai]] of the [[Satsuma clan]]}}

or

{{History of Japan|image=Satsuma-samurai-during-boshin-war-period.jpg|imagesize=280px|caption=[[Samurai]] of the [[Satsuma clan]]}}