Difference between revisions of "Template:PdfLayout"

From Organic Design wiki
m
(REQUEST not #request)
 
Line 7: Line 7:
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>
<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>{{{2}}}</td>
 
<tr><td width=100% valign=top>{{{2}}}</td>

Latest revision as of 02:38, 19 June 2009

Info.svg This template is used to allow images to render nicely for both HTML and PDF output. The problem is that PDF doesn't account for CSS, so having at image at the right for text to flow around needs to be done with an HTML table for PDF, but is best using the "right" parameter in an image tag if not PDF.


Usage:

{{PdfLayout|foo.jpg[|caption=Foo image caption][|size=??px]
|Content that goes into the table (or not depending on action=pdfbook)
}}