Template:Caption/Doc
From PCSAR
(Difference between revisions)
| (3 intermediate revisions not shown.) | |||
| Line 1: | Line 1: | ||
| - | {{template | + | {{template Doc|<nowiki>body|caption</nowiki>}} |
displays the body with an optional caption below it. | displays the body with an optional caption below it. | ||
| Line 9: | Line 9: | ||
{{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 }} | |
Current revision
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
| more text |

