Template:Caption/Doc
From PCSAR
(Difference between revisions)
(New page: {{template doc|body|caption}} displays the body with an optional caption below it. Body is often an image. Unlike using mediawiki caption facilities, the body is not surrounded with a fr...) |
|||
Line 8: | Line 8: | ||
Unlike using a table, the contents continues to flow to the right. | Unlike using a table, the contents continues to flow to the right. | ||
- | {{demo|<nowiki>{{caption|[[Image:Test|100px]]|'''Nice Pic!'''}} more text<nowiki><!-- | + | {{demo|<nowiki>{{caption|[[Image:Test|100px]]|'''Nice Pic!'''}} more text</nowiki><!-- |
-->{{caption|[[Image:Test|100px]]|'''Nice Pic!'''}} more text }} | -->{{caption|[[Image:Test|100px]]|'''Nice Pic!'''}} more text }} |
Revision as of 19:58, 29 May 2012
The template {{Caption|body}}
caption
displays the body with an optional caption below it.
Body is often an image.
Unlike using mediawiki caption facilities, the body is not surrounded with a frame.
Unlike using a table, the contents continues to flow to the right.
You type... | You get... |
---|---|
{{caption|[[Image:Test|100px]]|'''Nice Pic!'''}} more text<div style="float:left; border: 2px solid white;">[[Image:Test|100px]]<br /><center>'''Nice Pic!'''</center></div> more text | {{caption|[[Image:Test|100px]]|'''Nice Pic!'''}} more text more text |