TerrainMacrosWML

From The Battle for Wesnoth Wiki
Revision as of 17:18, 23 May 2010 by Boucman (talk | contribs) (Created page with '{{DevFeature1.9}} This page is entirely base on the 1.9 macros, they are very close to the 1.8 macros, but no attempt has been done to document the difference == Documentation f…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:DevFeature1.9 This page is entirely base on the 1.9 macros, they are very close to the 1.8 macros, but no attempt has been done to document the difference

Documentation format

here is an example of macro

this is a macro with default parameters. It means that the following macros exist

  • SOME_MACRO
  • SOME_MACRO_P
  • SOME_MACRO_PL
  • SOME_MARCRO_PLF
  • SOME_MACRO_PLFB
  • SOME_MACRO_L
  • SOME_MACRO_LF
  • SOME_MACRO_LFB
  • SOME_MACRO_F
  • SOME_MACRO_FB
  • SOME_MACRO_B

this is a toplevel macro, it is used directly in terrains-graphics.cfg (opposite : Internal)

SOME_MACRO PARAM1 P=PROB=100 L=LAYER=0 F=FLAG=overlay B=BUILDER=IMAGE_SINGLE IMAGESTEM

Toplevel

This macro is an example for documentation

Images used

  • IMAGESTEM_n
  • IMAGESTEM_tr

Parameters

  • Param1: description of a mandatory param
  • P=Prob: description of an optional param