Template:Frame

From 2009.igem.org

(Difference between revisions)
(First attempt at image like frame.)
m
 
(12 intermediate revisions not shown)
Line 1: Line 1:
-
<includeonly><div class="thumb t{{{align|right}}}"><div class="thumbinner" style="width:422px;"><div class="thumbimage">{{{content|{{{1}}}}}}</div> <div class="thumbcaption">caption</div></div></div></includeonly><noinclude>This template allows you to put things other than images in the same kind of frame with caption. For example, the following puts a table in a frame:
+
<includeonly><div class="t{{{align|right}}}" style="border-style:solid;border-color:white;margin-bottom:0.5em;width:auto;"><div class="thumbinner" style="background-color:rgb(249, 249, 249);border:1px solid rgb(204, 204, 204);font-size: 94%;overflow:hidden;padding:3px;text-align: center;"><div class="thumbimage" style="background-color:rgb(249, 249, 249);border:1px solid rgb(204, 204, 204);font-size: 94%;overflow:hidden;padding:3px;text-align: center;">{{{content|{{{1}}}}}}</div> <div class="thumbcaption" style="border:none;line-height:1.4em;padding:0.3em 0px 0.1em 0px;text-align:left;overflow:hidden;">{{{caption|}}}</div></div></div></includeonly><noinclude>This template allows you to put things other than images in the same kind of frame with caption. For example, the following puts some text in a frame:
{{frame|
{{frame|
-
{|border="1"
+
This is some text.<br/>
-
!x
+
This is even more text.
-
!y
+
-
|-
+
-
|0
+
-
|1
+
-
|-
+
-
|1
+
-
|2
+
-
|}
+
}}
}}
<pre>
<pre>
{{frame|
{{frame|
-
{|border="1"
+
This is some text.<br/>
-
!x
+
This is even more text.
-
!y
+
-
|-
+
-
|0
+
-
|1
+
-
|-
+
-
|1
+
-
|2
+
-
|}
+
}}
}}
-
<pre>
+
</pre>
{{frame|
{{frame|
-
{|border="1"
+
This is some text.<br/>
-
!x
+
This is even more text.
-
!y
+
|align=left|caption=A very enlightening caption.}}
-
|-
+
-
|0
+
-
|1
+
-
|-
+
-
|1
+
-
|2
+
-
|}
+
-
|align=left}}
+
-
In addition you can use the <code>align</code> parameter to determine left or right alignment.
+
In addition you can use the <code>align</code> parameter to determine left or right alignment and the <code>caption</code> parameter to give a caption.
 +
</noinclude>

Latest revision as of 10:53, 17 July 2009

This template allows you to put things other than images in the same kind of frame with caption. For example, the following puts some text in a frame:

This is some text.
This is even more text.

{{frame|
This is some text.<br/>
This is even more text.
}}

This is some text.
This is even more text.

A very enlightening caption.

In addition you can use the align parameter to determine left or right alignment and the caption parameter to give a caption.