Difference between revisions of "Template:Grid"

From Industrial-Craft-Wiki
Jump to: navigation, search
m (Fixed it so icons can just not link anywhere)
(Added support for UFCs with filling)
 
Line 1: Line 1:
{{#if: {{{name|}}}|<div  
+
{{#if: {{{fill|}}}|<div
 +
class="crafting-grid-div"
 +
><div class="tooltip" title="{{{tooltip|{{{name}}}\&lt; {{{fill}}}, {{{number|1000}}} mB &gt;}}}"><span style="position:absolute">[[File:CellFluid {{{fill}}}.png|32px|link=]]</span>[[File:Grid {{{name}}}.png|32px|link={{#ifeq:{{{link|}}}|None||{{{link|{{{name}}}}}}}}|class=crafting-grid-image]]</div></div>|{{#if: {{{name|}}}|<div  
 
class="crafting-grid-div"
 
class="crafting-grid-div"
 
><div class="tooltip" title="{{{tooltip|{{{name}}}}}}">[[File:Grid {{{name}}}.png|32px|link={{#ifeq:{{{link|}}}|None||{{{link|{{{name}}}}}}}}|class=crafting-grid-image]]
 
><div class="tooltip" title="{{{tooltip|{{{name}}}}}}">[[File:Grid {{{name}}}.png|32px|link={{#ifeq:{{{link|}}}|None||{{{link|{{{name}}}}}}}}|class=crafting-grid-image]]
 
{{#if: {{{number|}}}  |<span class="secret-link {{#if: {{{percent|}}} | crafting-grid-percentage | crafting-grid-number}}">{{#ifeq:{{{link|}}}|None|{{{number}}}{{#if: {{{percent|}}} | %}}|[[{{{link|{{{name}}}}}}{{!}}{{{number}}}{{#if: {{{percent|}}} | %}}]]}}</span>}}
 
{{#if: {{{number|}}}  |<span class="secret-link {{#if: {{{percent|}}} | crafting-grid-percentage | crafting-grid-number}}">{{#ifeq:{{{link|}}}|None|{{{number}}}{{#if: {{{percent|}}} | %}}|[[{{{link|{{{name}}}}}}{{!}}{{{number}}}{{#if: {{{percent|}}} | %}}]]}}</span>}}
</div></div>|<!--Nothing has been provided-->}}<noinclude>{{Documentation}}</noinclude>
+
</div></div>|<!--Nothing has been provided-->}}}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 13:48, 13 December 2016

Template-info.png Documentation

These grid templates mimic how various menus in the game look using CSS, and allow you to modify them with different items in each cell.

Available grids

Back-end Stuff

The above documentation is transcluded from Template:Grid/doc. (edit | history)