summaryrefslogtreecommitdiff
path: root/doc/yelp-xsl/C/mal2html.ui.links.img.attrs.page
blob: a5515ad19b0df25430452b8043fd0f8bddb0de50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" style="xslt-template" id="mal2html.ui.links.img.attrs">
 <info>
  <link type="guide" xref="mal2html-ui" group="templates"/>
  <link type="guide" xref="templates" group="mal2html"/>
  <desc>Output the <sys>width</sys> and <sys>height</sys> attributes for a thumbnail image.</desc>
  <revision version="3.28" date="2017-08-11" status="final"/>
 </info>
 <title>mal2html.ui.links.img.attrs</title>
 <synopsis>
  <title>Parameters</title>
  <terms>
   <item>
    <title><code>$node</code></title>
    <p>A <sys>links</sys> element to link from.</p>
   </item>
   <item>
    <title><code>$thumb</code></title>
    <p>A <sys>uix:thumb</sys> element.</p>
   </item>
   <item>
    <title><code>$width</code></title>
    <p>The width to fit thumbnails into.</p>
   </item>
   <item>
    <title><code>$height</code></title>
    <p>The height to fit thumbnails into.</p>
   </item>
  </terms>
 </synopsis>
 <p>This template outputs <sys>width</sys> and <sys>height</sys> attributes for the HTML <sys>img</sys>
 element created from <code>$thumb</code>, based on the <sys>uix:overflow</sys> attribute on <code>$node</code>.
 The <code>$width</code> and <code>$height</code> parameters can be computed automatically from the
 <code>$node</code> element.</p>
 <list style="compact">
  <title>Calls Parameters</title>
  <item>
   <p><link xref="mal.cache"/></p>
  </item>
 </list>
</page>