Difference between revisions of "Template:PdfLayout"
From Organic Design wiki
m |
(use size and caption args) |
||
| Line 2: | Line 2: | ||
<br>'''Usage:''' | <br>'''Usage:''' | ||
<pre> | <pre> | ||
| − | {{PdfLayout|foo.jpg|Foo image caption| | + | {{PdfLayout|foo.jpg |
| − | Content that goes into the table | + | [|caption=Foo image caption] |
| + | [|size=??px] | ||
| + | |Content that goes into the table (or not depending on action=pdfbook) | ||
}} | }} | ||
</pre> | </pre> | ||
| Line 9: | Line 11: | ||
<includeonly>{{#ifeq:{{#request:action}}|pdfbook| | <includeonly>{{#ifeq:{{#request:action}}|pdfbook| | ||
<table cellpadding=0 cellspacing=0> | <table cellpadding=0 cellspacing=0> | ||
| − | <tr><td width=100% valign=top>{{{ | + | <tr><td width=100% valign=top>{{{2}}}</td> |
| + | <td valign=top align=center>[[Image:{{{1}}}|{{{size|}}}]]{{#if:{{{caption|}}}|<br>''{{{caption}}}''}}</td> | ||
| + | </tr> | ||
</table> | </table> | ||
| | | | ||
| − | [[Image:{{{1}}}|right|caption | + | [[Image:{{{1}}}|right|{{#if:{{{caption|}}}|<br>''{{{caption}}}''}}|{{{size|}}}]] |
| − | {{{ | + | {{{2}}} |
}}</includeonly> | }}</includeonly> | ||
Revision as of 23:59, 11 November 2008
Usage:
{{PdfLayout|foo.jpg
[|caption=Foo image caption]
[|size=??px]
|Content that goes into the table (or not depending on action=pdfbook)
}}



