ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Template:Mapdef: Difference between revisions

From ModEnc
Jump to navigation Jump to search
okay...time for a test...
 
m fucking templates...
 
Line 1: Line 1:
<includeonly><div class="template_mapdef_definition_wrapper" id="{{{number}}}"><div class="template_mapdef_header_wrapper"><div class="template_mapdef_name">{{{name}}}</div><div class="template_mapdef_params">
<includeonly><div class="template_mapdef_definition_wrapper" id="{{{number}}}"><div class="template_mapdef_header_wrapper"><div class="template_mapdef_name">{{{name}}}</div><div class="template_mapdef_params">
{|
{|align="center"
|+'''Parameters'''
|+'''Parameters'''
|-
|-
{{#if: {{{param1|}}}|!#1}}
{{#if: {{{param1|}}}|!#1|}}
{{#if: {{{param2|}}}|!#2}}
{{#if: {{{param2|}}}|!#2|}}
{{#if: {{{param3|}}}|!#3}}
{{#if: {{{param3|}}}|!#3|}}
{{#if: {{{param4|}}}|!#4}}
{{#if: {{{param4|}}}|!#4|}}
{{#if: {{{param5|}}}|!#5}}
{{#if: {{{param5|}}}|!#5|}}
{{#if: {{{param6|}}}|!#6}}
{{#if: {{{param6|}}}|!#6|}}
{{#if: {{{param7|}}}|!#7}}
{{#if: {{{param7|}}}|!#7|}}
|-
|-
{{#if: {{{param1|}}}|{{!}}{{{param1}}}}}
{{#if: {{{param1|}}}|{{!}}{{{param1}}}|}}
{{#if: {{{param2|}}}|{{!}}{{{param2}}}}}
{{#if: {{{param2|}}}|{{!}}{{{param2}}}|}}
{{#if: {{{param3|}}}|{{!}}{{{param3}}}}}
{{#if: {{{param3|}}}|{{!}}{{{param3}}}|}}
{{#if: {{{param4|}}}|{{!}}{{{param4}}}}}
{{#if: {{{param4|}}}|{{!}}{{{param4}}}|}}
{{#if: {{{param5|}}}|{{!}}{{{param5}}}}}
{{#if: {{{param5|}}}|{{!}}{{{param5}}}|}}
{{#if: {{{param6|}}}|{{!}}{{{param6}}}}}
{{#if: {{{param6|}}}|{{!}}{{{param6}}}|}}
{{#if: {{{param7|}}}|{{!}}{{{param7}}}}}
{{#if: {{{param7|}}}|{{!}}{{{param7}}}|}}
|}
|}
</div></div><div class="template_mapdef_description"><div class="template_mapdef_number_wrapper"><div class="template_mapdef_code">Code:</div><div class="template_mapdef_number">{{{number}}}</div></div>{{{desc}}}</div></div></includeonly><noinclude>Usage:
</div></div><div class="template_mapdef_description"><div class="template_mapdef_number_wrapper"><div class="template_mapdef_code">Code:</div><div class="template_mapdef_number">{{{number}}}</div></div>{{{desc}}}</div></div></includeonly><noinclude>Usage:

Latest revision as of 18:43, 21 September 2006

Usage:

{{Mapdef
|number=
|name=
|desc=
|param1=
|param2=
|param3=
|param4=
|param5=
|param6=
|param7=
}}

Copy-paste the code above and use to describe things like map events, actions etc..

  • number is the item's code number
  • name is the item's textual representation
  • desc is the item's description
  • param1-7 are possible parameters for the items; nonexistent Parameters can be omitted.

Due to table-syntax and <pre>, this template is not entirely one-lined!