User:Sana/Sandbox/Template:Sana template: Difference between revisions

From Vintage Story Wiki
m
no edit summary
No edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>
<onlyinclude><table class="wikitable">
<div style="margin: auto; {{#if: {{{child|}}} |margin: -3px; |padding: 4px; border-color: #382b1e; border-width: 3px; border-style: solid; margin: auto; width: 90%; border-radius: 4px; background-color: #e0cfbb; {{{css|}}}"}}>
<tr>
<table {{#if: {{{child|}}} || class="{{#if: {{{nocollapse|}}}||mw-collapsible}}"}} style="border-spacing: 2px; width: 100%;">
  <th>'''Ingredients'''</th>
  {{#if: {{{child|}}} || <tr><th colspan="2" style="{{#if: {{{titlestyle|}}}|{{{titlestyle}}}|
  <th>'''Crafting recipe'''</th>
    background: rgb(91,76,62);
</tr>
     background: linear-gradient(to bottom, rgba(91,76,62,1) 0px, rgba(91,76,62,0) 5px, rgba(56,43,30,0) calc(100% - 5px), rgba(56,43,30,1) 100%),
<tr style="text-align:center;">
                 linear-gradient(to right, rgba(91,76,62,1) 0px, rgba(69,52,36,1) 5px, rgba(69,52,36,1) 50%, rgba(69,52,36,1) calc(100% - 5px), rgba(56,43,30,1) 100%);}}">
<td style="width: 200px">Test</td>
    <big>'''{{#if: {{{titlelink|}}} | [[{{{title}}}|<span style="color: #e0cfbb">Wiki Navigation</span>]] | <span style="color: #e0cfbb">{{{title}}}</span> }}'''</big></th>
<td>
  </tr>}}
<div style="width:164px; height:200px; background: rgb(91,76,62);
<!-- Group 1 -->
     background: linear-gradient(to bottom, rgba(91,76,62,1) 0px, rgba(91,76,62,0) 15px, rgba(56,43,30,0) calc(100% - 15px), rgba(56,43,30,1) 100%),
  <tr>
                 linear-gradient(to left, rgba(91,76,62,1) 0px, rgba(69,52,36,1) 15px, #403529 50%, rgba(69,52,36,1) calc(100% - 15px), rgba(56,43,30,1) 100%);">
    {{#if: {{{group1|}}} |<td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E;}}">[[{{{group1}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group1}}}</span>]]</td>}}
<table style="border-spacing: 4px; margin:auto">
    <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #CCBCAB | #e0cfbb}}; ">{{{body1|}}}</td>
<tr>
  </tr>
<td style="background: #fde0c0; width: 44px; height: 44px; border:2px solid #251E19; background: rgb(204,170,141);
<!-- Group 2 -->
background: linear-gradient(to bottom, rgba(204,170,141,1) 0%, rgba(235,204,173,0) 10%, rgba(255,226,194,1) 50%, rgba(235,204,173,0) 90%, rgba(204,170,141,1) 100%),
{{#if: {{{group2|}}} |
            linear-gradient(to left, rgba(204,170,141,1) 0%, rgba(235,204,173,1) 10%, rgba(255,226,194,1) 50%, rgba(235,204,173,1) 90%, rgba(204,170,141,1) 100%);">1</td>
  <tr>
<td style="background: #fde0c0; width: 44px; height: 44px; border:2px solid #251E19">2</td>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E;}}">[[{{{group2}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group2}}}</span>]]</td>
<td style="background: #fde0c0; width: 44px; height: 44px; border:2px solid #251E19">3</td>
    <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #e0cfbb | #CCBCAB }};">{{#if: {{{body2|}}}|{{{body2}}}|}}</td>
</tr>
  </tr>
<tr>
}}
<td style="background: #fde0c0; width: 44px; height: 44px; border:2px solid #251E19">4</td>
<!-- Group 3 -->
<td style="background: #fde0c0; width: 44px; height: 44px; border:2px solid #251E19">5</td>
{{#if: {{{group3|}}} |
<td style="background: #fde0c0; width: 44px; height: 44px; border:2px solid #251E19">6</td>
  <tr>
</tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E;}}">[[{{{group1}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group3}}}</span>]]</td>
<tr>
    <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #CCBCAB | #e0cfbb}};">{{#if: {{{body3|}}}|{{{body3}}}|}}</td>
<td style="background: #fde0c0; width: 44px; height: 44px; border:2px solid #251E19">7</td>
  </tr>
<td style="background: #fde0c0; width: 44px; height: 44px; border:2px solid #251E19">8</td>
}}
<td style="background: #fde0c0; width: 44px; height: 44px; border:2px solid #251E19">9</td>
<!-- Group 4 -->
</tr></div>
{{#if: {{{group4|}}} |
</td>
  <tr>
</tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E;}}">[[{{{group4}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group4}}}</span>]]</td>
</table></onlyinclude>
    <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #e0cfbb | #CCBCAB }};">{{#if: {{{body4|}}}|{{{body4}}}|}}</td>
  </tr>
}}
<!-- Group 5 -->
{{#if: {{{group5|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E;}}">[[{{{group5}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group5}}}</span>]]</td>
    <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #CCBCAB | #e0cfbb}};">{{#if: {{{body5|}}}|{{{body5}}}|}}</td>
  </tr>
}}
<!-- Group 6 -->
{{#if: {{{group6|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E;}}">[[{{{group6}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group6}}}</span>]]</td>
    <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #e0cfbb | #CCBCAB }};">{{#if: {{{body6|}}}|{{{body6}}}|}}</td>
  </tr>
}}
<!-- Group 7 -->
{{#if: {{{group7|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E;}}">[[{{{group7}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group7}}}</span>]]</td>
    <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #CCBCAB | #e0cfbb}};">{{#if: {{{body7|}}}|{{{body7}}}|}}</td>
  </tr>
}}
<!-- Group 8 -->
{{#if: {{{group8|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E;}}">[[{{{group8}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group8}}}</span>]]</td>
    <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #e0cfbb | #CCBCAB }};">{{#if: {{{body8|}}}|{{{body8}}}|}}</td>
  </tr>
}}
<!-- Group 9 -->
{{#if: {{{group9|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E;}}">[[{{{group9}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group9}}}</span>]]</td>
    <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #CCBCAB | #e0cfbb}};">{{#if: {{{body9|}}}|{{{body9}}}|}}</td>
  </tr>
}}
<!-- Group 10 -->
{{#if: {{{group10|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: #5B4C3E;}}">[[{{{group10}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group10}}}</span>]]</td>
    <td style="{{{bodystyle|}}} background:{{#if: {{{swap|}}}| #e0cfbb | #CCBCAB }};">{{#if: {{{body10|}}}|{{{body10}}}|}}</td>
  </tr>
}}
</table>
</div>
</includeonly>
<noinclude>{{doc}}</noinclude>
Confirmedusers, Interface administrators
1,131

edits