Difference between revisions of "Template:TT"

From AlliedModders Wiki
Jump to: navigation, search
m
Line 1: Line 1:
<code style="color: #444;
+
<code style="color: {{{color|#444}}};
             {{#switch:{{{opt}}}
+
             background-color: {{ #ifeq: {{{2}}} | nobg | inherit; | {{ #switch:{{{opt}}} | nobg = inherit; | #default = {{ #switch:{{{bgcolor}}} | none = inherit; | #default = {{{bgcolor|#f8f9fa}}}; }} }} }}
            | nobg = background-color: inherit;
+
             border: {{{border|1px solid #eaecf0}}};  
            | #default = background-color: #f8f9fa;
+
             border-radius: {{{radius|2px}}};  
            }}
 
             border: 1px solid #eaecf0;  
 
             border-radius: 2px;  
 
 
             display: inline-block;
 
             display: inline-block;
 
             line-height: normal;
 
             line-height: normal;
             padding: {{#switch:{{{opt}}}
+
             padding: {{ #switch:{{{opt}}} | large = 10px; | #default = {{ #switch:{{{boxsize}}} | large = 10px; | #default = {{{boxsize|0px 4px}}}; }} }}
                      | large = 10px;
+
            ">{{ {{{|safesubst:}}}#if:{{{1|}}} | {{{1}}} | {{{text}}} }}</code>
                      | #default = 0px 4px;
 
                      }}">{{{1}}}</code>
 

Revision as of 08:54, 11 August 2017

{{{text}}}