Difference between revisions of "Template:InlineGrid"

From Industrial-Craft-Wiki
Jump to navigation Jump to search
m
(woo yeah it works (except for the numbers))
Line 1: Line 1:
{{#if: {{{name|}}}|<span class="tooltip" title="{{{tooltip|{{{name}}}}}}">[[File:Grid {{{name}}}.png|32px|link={{#ifeq:{{{link|}}}|None||{{{link|{{{name}}}}}}}}|class=crafting-grid-image]]
{{#if: {{{1|}}}|<span class="tooltip" title="{{{2|{{{1}}}}}}">[[File:Grid {{{1}}}.png|{{{4|32}}}px|link={{#ifeq:{{{3|}}}|None||{{{3|{{{1}}}}}}}}|class=crafting-grid-image]]<!--removed number code for now, percentages completely {{#if: {{{number|}}}  |<span class="secret-link crafting-grid-number">{{#ifeq:{{{3|}}}|None|{{{number}}}|[[{{{3|{{{1}}}}}}{{!}}{{{number}}}]]}}</span>}}--></span>|<!--Nothing has been provided-->}}<noinclude>===Simple documentation notes===
{{#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>}}
 
</span>|<!--Nothing has been provided-->}}<noinclude></noinclude>
InGr or InlineGrid basically copies Grid (and is an attempt to not be Gc-ing everything), but doesn't use the module, so everything is manual.  The numbering is also stripped out (for now).
* Arg1 is the name, and maps to the image (and everything else unless specified).
* Arg2 is the tooltip, include a \ for newline.
* Arg3 is the link - what to link to if not the default.
* Arg4 is the size in pixels.  (Comes before Arg3's first use in the code, but it's less commonly changed from the 32px default.)
 
Usage showing {{InlineGrid|Chest|Itembox 5000\This thing is a piece of junk}} inline functionality
 
Infobox test, for upgrades
{{Infobox
|title=Macerator
|image=Compressor ig.png
|invimage=Condenser
|upgrades={{InlineGrid|Overclocker upgrade}}{{InlineGrid|Transformer upgrade}}{{InlineGrid|Overclocker upgrade}}{{InlineGrid|Transformer upgrade}}{{InlineGrid|Overclocker upgrade}}{{InlineGrid|Transformer upgrade}}{{InlineGrid|Overclocker upgrade}}{{InlineGrid|Transformer upgrade}}{{InlineGrid|Overclocker upgrade}}{{InlineGrid|Transformer upgrade}}{{InlineGrid|Overclocker upgrade}}{{InlineGrid|Transformer upgrade}}
}} </noinclude>

Revision as of 23:24, 1 December 2016

Simple documentation notes

InGr or InlineGrid basically copies Grid (and is an attempt to not be Gc-ing everything), but doesn't use the module, so everything is manual. The numbering is also stripped out (for now).

  • Arg1 is the name, and maps to the image (and everything else unless specified).
  • Arg2 is the tooltip, include a \ for newline.
  • Arg3 is the link - what to link to if not the default.
  • Arg4 is the size in pixels. (Comes before Arg3's first use in the code, but it's less commonly changed from the 32px default.)

Usage showing Grid Chest.png inline functionality

Infobox test, for upgrades

Macerator
Compressor ig.png
Grid Condenser.png
Properties
Type ?




Stackable Yes (64)




Upgrades
Grid Overclocker upgrade.pngGrid Transformer upgrade.pngGrid Overclocker upgrade.pngGrid Transformer upgrade.pngGrid Overclocker upgrade.pngGrid Transformer upgrade.pngGrid Overclocker upgrade.pngGrid Transformer upgrade.pngGrid Overclocker upgrade.pngGrid Transformer upgrade.pngGrid Overclocker upgrade.pngGrid Transformer upgrade.png


Technical Details
UU Cost {{{uu_cost}}}
First appearance ?
ID IC2:{{{id}}}