Template:Grid: Difference between revisions

m 1 revision
Replaced content with "<includeonly>{{#invoke:Grid|cell}}</includeonly><noinclude> {{doc}} G </noinclude>"
 
Line 1: Line 1:
<includeonly><span class="grid {{{class|}}}" {{ #if: {{{align|}}} | style="vertical-align: {{{align}}}" }}{{
<includeonly>{{#invoke:Grid|cell}}</includeonly><noinclude>
#if: {{#pos: {{{1}}} | ; }} | data-imgs="{{{1}}}" }} {{#if: {{{mod|}}} | data-mod="{{{mod}}}" }}><span class="border"><span>{{
  #if: {{{default|}}} | <span class="default-image">[[File:Grid {{{default}}}.png|32px|alt=|link=]]</span>
}}{{#if: {{#pos: {{{1}}} | ; }} | <span class="animated"> }}{{
#vardefine: f | {{#explode: {{{1|}}} | ; }}
}}{{
#vardefine: mod | {{#if: {{#pos: {{#var: f}} | : }} | {{#explode: {{#var: f}} | : }} }}
}}{{
#vardefine: mod | {{
  #switch: {{lc: {{#var: mod }} }}
  | v | vanilla =
  | {{#if: {{#var: mod }} | {{#var: mod }} | {{{mod|}}} }}
  }}
}}{{
#vardefine: name | {{#explode: {{#if: {{#pos: {{#var: f }} | : }} | {{#explode: {{#var: f }} | : | 1 }} | {{#var: f }} }} | , }}
}}{{
#vardefine: img | {{#if: {{#var: mod }} | {{#var: name }} ({{#var: mod }}) | {{#var: name }} }}
}}{{
#vardefine: num | {{#explode: {{#var: f }} | , | 1 }}
}}{{
#vardefine: link | {{
  #if: {{{title|}}}
  |
  | {{
    #if: {{{link|}}}
    | {{
      #ifeq: {{lc: {{{link|}}} }}
      | none |
      | {{{link}}}
      }}
    | {{
      #ifeq: {{#var: name }} | {{SUBPAGENAME}}
      |
      | {{
        #if: {{#var: mod }}
        | Mods/{{#var: mod }}/{{#var: name }}
        | {{#var: img }}
        }}
      }}
    }}
  }}
}}{{
#vardefine: title | {{
  #if: {{#var: name }} | {{
    #if: {{{title|}}}
    | {{
      #ifeq: {{lc: {{{title}}} }}
      | none |
      | title="{{{title}}}"
      }}
    | {{
      #if: {{{link|}}}
      | {{
        #ifeq: {{lc: {{{link}}} }}
        | none | title="{{#var: img }}"
        }}
      | {{
        #ifeq: {{#var: name }} | {{SUBPAGENAME}}
        | title="{{#var: img }}"
        }}
      }}
    }}
  }}
}}<span class="image {{#if: {{#pos: {{{1}}} | ; }} | active }} {{{imgclass|}}}" {{#var: title }}>{{
#if: {{#var: name }}
| [[File:Grid {{#var: img }}.png|32x32px|alt={{
  #if: {{{title|}}}
  | {{
    #ifeq: {{lc: {{{title}}} }} | none
    | {{#var: img }}
    | {{{title}}}
    }}
  | {{#var: img }}
  }}|link={{#var: link }}]]{{
  #iferror: {{ #expr: +{{#var: num }} }}
  |
  | {{
    #ifexpr: {{#var: num }} > 1 and {{#var: num }} < 1000
    | <span class="number" {{#var: title }}>{{
      #if: {{#var: link }}
      | [[{{#var: link }}|{{#var: num }}]]
      | {{#var: num }}
      }}</span>
    }}
  }}
| &nbsp;
}}</span>{{
#if: {{#pos: {{{1}}} | ; }} | </span> }}</span></span></span></includeonly><noinclude>
{{doc}}
{{doc}}
[[Category:Image templates|G]]</noinclude>
 
[[Category:Image templates|G]]
</noinclude>

Latest revision as of 07:42, 21 July 2015

Lua error: callParserFunction: function "#dplvar" was not found.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis