Template:Colorbox: Difference between revisions

From Hattrick
Jump to navigationJump to search
Brishcanae (talk | contribs)
Created page with '<span style="background-color:{{{1|white}}}; border:1px solid darkgray;">  {{#if:{{{2|}}}|{{#if:{{{3|}}}|[[{{{3}}}|{{{2}}}]]|{{{2}}}}}| }} </span><noinclude> …'
 
Para Para (talk | contribs)
No edit summary
 
Line 1: Line 1:
<span style="background-color:{{{1|white}}}; border:1px solid darkgray;">&nbsp;&nbsp;{{#if:{{{2|}}}|{{#if:{{{3|}}}|[[{{{3}}}|{{{2}}}]]|{{{2}}}}}|&nbsp;}}&nbsp;</span><noinclude>
{{#ifeq: {{{2|}}}|noquote||<blockquote>}}<code style="font-size:initial; color:{{{2|#277f31}}}; border:1px outset lightgray;">{{{1|&nbsp;}}}</code></blockquote><noinclude>
{{documentation}}
[[Category:Color templates]]
{| width=100% bgcolor= #ecfcf4 border=0
| '''Line for Formulas'''
<br>
Help:  
* Remember to use <nowiki>{{=}}</nowiki> instead of simple = (equal) as in this example:
:'''<nowiki>{{colorbox|2 + 2 {{=}} 5}}</nowiki> '''
:result {{colorbox|2 + 2 {{=}} 5}}<br>
 
* To avoid the "start from a new indented line" effect (or blockquote) use:
:'''<nowiki>{{colorbox|2 + 2 {{=}} 5|noquote}}</nowiki> '''
:result  {{colorbox|2 + 2 {{=}} 5|noquote}}<br><br>
 
 
* For different text color use:
:'''<nowiki>{{colorbox|2 + 2 {{=}} 5|orange}}</nowiki>'''
:result  {{colorbox|2 + 2 {{=}} 5|orange}}
|}
</noinclude>
</noinclude>

Latest revision as of 22:57, 13 June 2020

 

Line for Formulas


Help:

  • Remember to use {{=}} instead of simple = (equal) as in this example:
{{colorbox|2 + 2 {{=}} 5}}
result

2 + 2 = 5


  • To avoid the "start from a new indented line" effect (or blockquote) use:
{{colorbox|2 + 2 {{=}} 5|noquote}}
result 2 + 2 = 5


  • For different text color use:
{{colorbox|2 + 2 {{=}} 5|orange}}
result

2 + 2 = 5