सामग्री पर जाएँ

साँचा:RefQuoteExt/विव

विकिपुस्तक से
{{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 documentation on {{RefQuote|Text|Href|Label}} for a version that is briefer, using only defaults.