Middlebury

Difference between revisions of "Template:Figure"

Line 1: Line 1:
<includeonly><figure>{{{1}}}</figure><figcaption>{{{2}}}</figcaption></includeonly><noinclude>
+
<includeonly><div class="figure">{{{1}}}</div><div class="figcaption">{{{2}}}</div></includeonly><noinclude>
 
Usage
 
Usage
 
* Add a figure with a caption:
 
* Add a figure with a caption:
** <code><nowiki>{{Figure|<middmedia dir="afranco" file="Simple%20Webform.mp4" width="500" height="310" />|My caption text.}}</nowiki> </code>
+
** <code>
 +
<nowiki>{{Figure|<middmedia dir="afranco" file="Simple%20Webform.mp4" width="500" height="310" />|My caption text.}}</nowiki> </code>
  
 
{{Figure|<middmedia dir="afranco" file="Simple%20Webform.mp4" width="500" height="310" />|My caption text.}}
 
{{Figure|<middmedia dir="afranco" file="Simple%20Webform.mp4" width="500" height="310" />|My caption text.}}
  
 
</noinclude>
 
</noinclude>

Revision as of 10:43, 5 November 2014

Usage

  • Add a figure with a caption:

{{Figure|<middmedia dir="afranco" file="Simple%20Webform.mp4" width="500" height="310" />|My caption text.}}

My caption text.