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

From Vintage Story Wiki
No edit summary
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><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;"}}>
<includeonly>{{#if: {{{head|}}}|<table class="wikitable mw-collapsible">
<table {{#if: {{{child|}}} || class="mw-collapsible"}} style="border-spacing: 2px; width: 100%;">
<tr>
  {{#if: {{{child|}}} || <tr><th colspan="2" style="{{#if: {{{titlestyle|}}}|{{{titlestyle}}}|
  <th style="width:200px">'''Ingredients'''</th>
    background: rgb(91,76,62);
  <th>'''Crafting recipe'''</th>
     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%),
  {{#if: {{{notes|}}}|<th style="width:400px">'''Notes'''</th>}}
                 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%);}}">
</tr>}}
    <big>'''{{#if: {{{titlelink|}}} | [[{{{title}}}|<span style="color: #e0cfbb">Wiki Navigation</span>]] | <span style="color: #e0cfbb">{{{title}}}</span> }}'''</big></th>
<tr style="text-align:center;">
  </tr>}}
<td>{{{ingredients}}}</td>
<!-- Group 1 -->
<td>
{{#if: {{{group1|}}} |
<div style="position:relative; width:170px; height:240px; background: rgb(91,76,62);
  <tr>
     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%),
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group1}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group1}}}</span>]]</td>
                 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%);">
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}" }}>{{#if: {{{body1|}}}|{{{body1}}}|}}</td>
{{User:Sana/Sandbox/Template:Sana template 2|1|{{{A1|}}}|{{{A1|}}}|{{{A1|}}} }}
  </tr>
{{User:Sana/Sandbox/Template:Sana template 2|2|{{{B1|}}}|{{{B1|}}}|{{{B1|}}} }}
}}
{{User:Sana/Sandbox/Template:Sana template 2|3|{{{C1|}}}|{{{C1|}}}|{{{C1|}}} }}
<!-- Group 2 -->
 
{{#if: {{{group2|}}} |
{{User:Sana/Sandbox/Template:Sana template 2|4|{{{A2|}}}|{{{A2_link|}}}|{{{A2_name|}}} }}
  <tr>
{{User:Sana/Sandbox/Template:Sana template 2|5|{{{B2|}}}|{{{B2_link|}}}|{{{B2_name|}}} }}
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group2}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group2}}}</span>]]</td>
{{User:Sana/Sandbox/Template:Sana template 2|6|{{{C2|}}}|{{{C2_link|}}}|{{{C2_name|}}} }}
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body2|}}}|{{{body2}}}|}}</td>
 
  </tr>
{{User:Sana/Sandbox/Template:Sana template 2|7|{{{A3|}}}|{{{A3_link|}}}|{{{A3_name|}}} }}
}}
{{User:Sana/Sandbox/Template:Sana template 2|8|{{{B3|}}}|{{{B3_link|}}}|{{{B3_name|}}} }}
<!-- Group 3 -->
{{User:Sana/Sandbox/Template:Sana template 2|9|{{{C3|}}}|{{{C3_link|}}}|{{{C3_name|}}} }}
{{#if: {{{group3|}}} |
 
  <tr>
{{User:Sana/Sandbox/Template:Sana template 2|0|{{{out|}}}|{{{out_link|}}}|{{{out_name|}}} }}
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group3}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group3}}}</span>]]</td>
</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body3|}}}|{{{body3}}}|}}</td>
{{#if: {{{notes|}}}|<td style="text-align:left;">{{{notes|}}}</td>}}
  </tr>
</tr>
}}
{{#if: {{{foot|}}}|</table>}}</includeonly>
<!-- Group 4 -->
{{#if: {{{group4|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group4}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group4}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body4|}}}|{{{body4}}}|}}</td>
  </tr>
}}
<!-- Group 5 -->
{{#if: {{{group5|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group5}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group5}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body5|}}}|{{{body5}}}|}}</td>
  </tr>
}}
<!-- Group 6 -->
{{#if: {{{group6|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group4}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group6}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body6|}}}|{{{body6}}}|}}</td>
  </tr>
}}
<!-- Group 7 -->
{{#if: {{{group7|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group7}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group7}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body7|}}}|{{{body7}}}|}}</td>
  </tr>
}}
<!-- Group 8 -->
{{#if: {{{group8|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group8}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group8}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body8|}}}|{{{body8}}}|}}</td>
  </tr>
}}
<!-- Group 9 -->
{{#if: {{{group9|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group9}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group9}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body9|}}}|{{{body9}}}|}}</td>
  </tr>
}}
<!-- Group 10 -->
{{#if: {{{group10|}}} |
  <tr>
    <td style="height: 30px; {{#if: {{{groupstyle|}}}|{{{groupstyle}}}| text-align: center; width: 10%; background: rgb(91,76,62);}}">[[{{{group10}}}|<span style="{{#if: {{{groupfont|}}}|{{{groupfont}}}|color: #e0cfbb;}}">{{{group10}}}</span>]]</td>
    <td {{#if: {{{bodystyle|}}}|style="{{{bodystyle}}}"}}>{{#if: {{{body10|}}}|{{{body10}}}|}}</td>
  </tr>
}}
</table>
</div>
</includeonly>

Latest revision as of 20:39, 22 August 2022