Template:RefQuoteExt

From Wikibooks, open books for an open world
Jump to: navigation, search
  {{{1}}}

{{{3}}}

Template documentation[edit] [history] [purge]
{{RefQuoteExt|width=bwidth|margin=lmargin|valign=vcenter|Text|Href|Label}}  produces html output

<p><table width="bwidth"><tr><td width="lmargin"> </td><td>
Text
</td><td valign="vcenter"><table align="right"><tr><td>
<span id="Href"></span>Label
</td></tr></table></td></tr></table></p>

The option valign can be top | center | bottom. Defaults for options are width=100%, margin=20, and valign=center.

This positions Text to the left with a lmargin padding from the margin and Label as an anchor to the right of bwidth the screen with vcenter centering. For example

 {{RefQuoteExt|width=75%|margin=50|valign=bottom|Hello,<br>Hello,<br>Hello|World|<b>World</b>}} 
will display
 

Hello,
Hello,
Hello

World

The anchor is linked to using
[[#Href|...]]
.

See also[edit]

See documentation on {{RefQuote|Text|Href|Label}} for a version that is briefer, using only defaults.