Get our free book (in Spanish or English) on rainwater now - To Catch the Rain.

Difference between revisions of "Welcome to Appropedia/Intro/Image/Layout"

From Appropedia
Jump to navigation Jump to search
(float parameter)
(margin-right)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float:{{#if:{{{float}}}|{{{float|left}}}|left}};margin-right:1em">[[File:{{{file}}}|{{#if:{{{size}}}|{{{size|150x120px}}}|150x120px}}|link={{{link}}}|{{{caption}}}]]</div>
+
<div style="float:{{#if:{{{float}}}|{{{float|left}}}|left}};margin-{{#if:{{{margin}}}|{{{margin|right}}}|right}}:1em">[[File:{{{file}}}|{{#if:{{{size}}}|{{{size|160x120px}}}|160x120px}}|link={{{link}}}|{{{caption}}}]]<center>'''[[{{{link}}}|Read about...]]'''</center></div><noinclude>
<noinclude>
+
<br clear=all>
  
 
== Layout template ==
 
== Layout template ==
 
<pre>
 
<pre>
 
{{:Welcome to Appropedia/Intro/Image/Layout
 
{{:Welcome to Appropedia/Intro/Image/Layout
   |float={{{float|left}}} <allows transclustions to float left, right or center, see below>
+
   |float={{{float|left}}}   <allows transclustions to float left, right or center, see below>
 +
  |margin={{{margin|right}}} <allows margins to be left or right, see below>
 
   |file=
 
   |file=
 
   |size=
 
   |size=
Line 13: Line 14:
  
 
example of archive parameter usage
 
example of archive parameter usage
{{:Welcome to Appropedia/Intro/Image/1|float=right}}
+
{{:Welcome to Appropedia/Intro/Image/1|float=right|margin=left}}
 
</pre>
 
</pre>
  
 
[[Category:Welcome to Appropedia|{{SUBPAGENAME}}]]
 
[[Category:Welcome to Appropedia|{{SUBPAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:17, 28 June 2012

[[File:{{{file}}}|160x120px|link={{{link}}}|{{{caption}}}]]
[[{{{link}}}|Read about...]]


Layout template[edit]

{{:Welcome to Appropedia/Intro/Image/Layout
  |float={{{float|left}}}    <allows transclustions to float left, right or center, see below>
  |margin={{{margin|right}}} <allows margins to be left or right, see below>
  |file=
  |size=
  |link=
  |caption=
}}

example of archive parameter usage
{{:Welcome to Appropedia/Intro/Image/1|float=right|margin=left}}