Difference between revisions of "Template:Table"

From From The Ashes Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{#css:
 
{{#css:
{{#if:{{{center|}}|.templatetable {
+
{{#if:{{{center|}}}|.templatetable {
 
     margin: 0 auto;
 
     margin: 0 auto;
 
}}}
 
}}}
Line 6: Line 6:
 
     padding: .5em;
 
     padding: .5em;
 
}
 
}
.templatetable td:first-child {
+
{{#if:{{{bold|}}}|.templatetable td:first-child {
 
     font-weight: bold;
 
     font-weight: bold;
}
+
}}}
.templatetable td:first-child::after {
+
{{#if:{{{colon|}}}|.templatetable td:first-child::after {
 
     content: ":";
 
     content: ":";
}
+
}}}
 
}}{{#vardefine:current|1}}
 
}}{{#vardefine:current|1}}
<table class="{{{class|templatetable}}}" style="{{{style|none}}}">
+
<table class="templatetable {{{class|}}}" style="{{{style|}}}">
 
<tr>
 
<tr>
 
{{#fornumargs: number
 
{{#fornumargs: number

Revision as of 06:23, 19 March 2018