Difference between revisions of "Template:Knapping"

From TFC:TNG
Jump to navigation Jump to search
(created a base for knapping template)
 
(tried adding some structure and styling, fixed switches checking A1 everywhere, tried something with grid)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{#if: {{{A1}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
{|style="background: #C6C6C6; border: outset 2px #999; padding:6px"
{{#if: {{{A2}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|-
{{#if: {{{A3}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
 
{{#if: {{{A4}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{A1|}}} | {{#switch: {{{A1|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{A5}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{A2|}}} | {{#switch: {{{A2|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{B1}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{A3|}}} | {{#switch: {{{A3|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{B2}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{A4|}}} | {{#switch: {{{A4|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{B3}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{A5|}}} | {{#switch: {{{A5|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{B4}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|-
{{#if: {{{B5}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{B1|}}} | {{#switch: {{{B1|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{C1}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{B2|}}} | {{#switch: {{{B2|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{C2}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{B3|}}} | {{#switch: {{{B3|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{C3}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{B4|}}} | {{#switch: {{{B4|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{C4}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{B5|}}} | {{#switch: {{{B5|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{C5}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|-
{{#if: {{{D1}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{C1|}}} | {{#switch: {{{C1|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{D2}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{C2|}}} | {{#switch: {{{C2|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{D3}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{C3|}}} | {{#switch: {{{C3|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{D4}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{C4|}}} | {{#switch: {{{C4|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{D5}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{C5|}}} | {{#switch: {{{C5|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{E1}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|-
{{#if: {{{E2}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{D1|}}} | {{#switch: {{{D1|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{E3}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{D2|}}} | {{#switch: {{{D2|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{E4}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{D3|}}} | {{#switch: {{{D3|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
{{#if: {{{E5}}} | {{#switch: {{{A1}}} | rock = {{Grid|Rock}} | leather = {{Grid|Leather}} | clay = {{Grid|Clay}} | clayDark = {{Grid|ClayDark}}}}}}
+
|{{#if: {{{D4|}}} | {{#switch: {{{D4|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
 +
|{{#if: {{{D5|}}} | {{#switch: {{{D5|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
 +
|-
 +
|{{#if: {{{E1|}}} | {{#switch: {{{E1|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
 +
|{{#if: {{{E2|}}} | {{#switch: {{{E2|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
 +
|{{#if: {{{E3|}}} | {{#switch: {{{E3|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
 +
|{{#if: {{{E4|}}} | {{#switch: {{{E4|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
 +
|{{#if: {{{E5|}}} | {{#switch: {{{E5|}}} | rock = {{Grid|class="generic"|Rock}} | leather = {{Grid|class="generic"|Leather}} | clay = {{Grid|class="generic"|Clay}} | clayDark = {{Grid|class="generic"|ClayDark}}}}}}
 +
|}
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
 
This is still WIP I have no idea how this works I'm just tryna help okay
 
This is still WIP I have no idea how this works I'm just tryna help okay
 
</noinclude>
 
</noinclude>

Revision as of 18:49, 11 July 2020


This is still WIP I have no idea how this works I'm just tryna help okay