Template:CallOut: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
(Adapting to allowd named params as well as anonymous (numeric) perams)
(It's better like this)
 
Line 1: Line 1:
<noinclude>Template to create a 'call out' box for highlighting phrases of text in an article.
==Usage==
To include this template on your user and/or group page, add the following line to it:
<pre>{{CallOut|1|2}}</pre>
1 = the quote 2 = the name
== Examples ==
<pre>{{CallOut|zombies suck|sjt. peppermint}}</pre>
{{CallOut|zombies suck|sjt. peppermint}}
<pre>{{CallOut|text=my mamma was a zombo!|attrib=soggy}}</pre>
{{CallOut|text=my mamma was a zombo!|attrib=soggy}}
[[Category:Templates|{{PAGENAME}}]]
== Template code ==
</noinclude><includeonly>
<div style="clear: right; border: solid #AAA 1px; margin: 0 0 1em 1em; font-size: 120%; background: #F9F9F9; max-width: 40%; padding: 4px; spacing: 0px; text-align: left; float: right;">
<div style="clear: right; border: solid #AAA 1px; margin: 0 0 1em 1em; font-size: 120%; background: #F9F9F9; max-width: 40%; padding: 4px; spacing: 0px; text-align: left; float: right;">
<!-- The above 'maxwidth' could be buggy for some browsers -->
<!-- The above 'maxwidth' could be buggy for some browsers -->
Line 7: Line 28:
::''-- {{{attrib|{{{2|attrib}}}}}}''
::''-- {{{attrib|{{{2|attrib}}}}}}''
</div>
</div>
</div><noinclude>[[Category:Templates|{{PAGENAME}}]]</noinclude>
</div></includeonly>
<noinclude>
==Usage==
To include this template on your user and/or group page, add the following line to it:
<pre>{{CallOut|1|2}}</pre>
1 = the quote 2 = the name
</noinclude>

Latest revision as of 12:01, 22 October 2011

Template to create a 'call out' box for highlighting phrases of text in an article.


Usage

To include this template on your user and/or group page, add the following line to it:

{{CallOut|1|2}}

1 = the quote 2 = the name

Examples

{{CallOut|zombies suck|sjt. peppermint}}

Start quote rb.gif zombies suck  End quote rb.gif

-- sjt. peppermint
{{CallOut|text=my mamma was a zombo!|attrib=soggy}}

Start quote rb.gif my mamma was a zombo!  End quote rb.gif

-- soggy

Template code