Difference between revisions of "Template:Gin"

From Industrial-Craft-Wiki
Jump to: navigation, search
m (whitespace)
(Made default posttext and 24px, removed size option, added link option (mainly due to non-IC/missing pages))
Line 1: Line 1:
{{#if: {{{1|}}}|{{InlineGrid|{{{1}}}|4={{{3|32}}}|5={{{2|}}}}}|}}<noinclude>===Simple Documentation===
+
{{#if: {{{1|}}}|{{#ifeq: {{{2|}}}|fore|{{#ifeq: {{{3|X}}}||{{{1}}}|[[{{#if: {{{3|}}}|{{{3}}}{{!}}{{{1}}}|{{{1}}}}}]]}}&nbsp;|}}<span class="tooltip" title="{{{1}}}">[[File:Grid {{{1}}}.png|24px|link={{#ifeq:{{{3|X}}}|||{{{3|{{{1}}}}}}}}|class=crafting-grid-image]]</span>{{#ifeq: {{{2|aft}}}|aft|&nbsp;{{#ifeq: {{{3|X}}}||{{{1}}}|[[{{#if: {{{3|}}}|{{{3}}}{{!}}{{{1}}}|{{{1}}}}}]]}}|}}|<!--nothing-->}}<noinclude>{{Documentation}}</noinclude>
'''Template:Gin''' (for '''Grid, inline, narrowed''', or because [[User:Deucexm|I]] like gin for some reason, who knows) is an invocation of [[Template:InlineGrid]] which makes it easier to do the most basic stuff.  If you want full functionality, use that instead, since Gin cuts down the options.
 
 
 
Gin is simply image + fore/aft text (+ size).  No change in tooltip, target link (so this isn't for "Non-IC Items" unless there's an existing redirect), or displayed text.
 
 
 
* Arg1: name
 
* Arg2: text postion, 'fore' / 'aft' / anything else is blank (InlineGrid Arg5)
 
* Arg3: size, still 32px default (InlineGrid Arg4)
 
 
 
<code>{{Gin{{!}}MFSU}}{{Gin{{!}}MFE}}{{Gin{{!}}CESU}}</code>: {{Gin|MFSU}}{{Gin|MFE}}{{Gin|CESU}}
 
 
 
<code>{{Gin{{!}}MFSU{{!}}aft{{!}}139}}</code>: {{Gin|MFSU|aft|139}}
 
 
 
<code>{{Gin{{!}}Charge Pad (CESU){{!}}fore}}</code>: {{Gin|Charge Pad (CESU)|fore}}
 
 
 
Blanking out Arg3 lets the item display at its own (uploaded) size, note the final pipe here.
 
 
 
<code>{{Gin{{!}}Charge Pad (CESU){{!}}fore{{!}}}}</code>: {{Gin|Charge Pad (CESU)|fore|}}
 
</noinclude>
 

Revision as of 05:43, 14 December 2016

Template-info.png Documentation
Template:Gin (for Grid, inline, narrowed, or because I like gin for some reason, who knows) used to be an invocation of Template:InlineGrid which made it easier to do the most basic stuff. If you want full functionality, use that instead, since Gin cuts down the options. It no longer references that because of some internal tweaks I wanted to do that were easier to accomplish this way (and also this way it doesn't show as transcluding InlineGrid everywhere). Yay.

Gin is simply 24px image + fore/aft text (+ altlink). No change in tooltip, size, or displayed text (except to not display it).

  • Arg1: name
  • Arg2: text position, 'fore' / 'aft' (default) / anything else is blank
  • Arg3: linkto (blank argument to remove links)

{{Gin|MFSU}}: Grid MFSU.png MFSU - basic

{{Gin|MFSU|}}: Grid MFSU.png - no text

{{Gin|MFSU||}}: Grid MFSU.png - no text and unlinked

{{Gin|Charge Pad (CESU)|fore}}: Charge Pad (CESU) Grid Charge Pad (CESU).png

{{Gin|Charge Pad (CESU)|fore|}}: Charge Pad (CESU) Grid Charge Pad (CESU).png

{{Gin|Charge Pad (CESU)|aft|}}: Grid Charge Pad (CESU).png Charge Pad (CESU)

This used to be 32px, but 24px fits better with the default text size to avoid disrupting paragraph flow. Save 32px images for crafting grids, or examples of setups or something.

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