Template:Acretable T1

From Wikifang, a definitive guide to Telefang, Dino Device and Bugsite
Revision as of 10:03, 10 August 2018 by SakoeraTyan (talk | contribs) (toronkovillagewaterstation -> troncovillagespring to fix blank BG in example code + preview.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Makes a table to show Denjuu appearances like this:

22 
11 
111
111
21 
21 

The code is as such:

{{acretable T1|w=3|h=6|bg=troncovillagespring
|rowstart
|2|2|0|row
|1|1|0|row
|1|1|1|row
|1|1|1|row
|2|1|0|row
|2|1|0|rowend
}}

The format of the code is as follows:

  • w: Width - number of boxes horizontally.
  • h: Height - number of boxes vertically.
  • bg: Background - CSS class style, ask admin to insert the styles. These can be found in MediaWiki:Common.css, under acretables.

The next row would be rowstart.

The following h rows of w columns would be the values for the acre group, plus one more column for "row" or "rowend".

In the above example, there are 6 rows of 4 columns, with the exception of the starting row and "rowstart". The first row contains values of 2, 2, 0. This means that according to the map, the top-left-most acre and the acre to the right of it contain Denjuu from Group 2, according to your own definition. The third column contains 0, meaning that it contains no Denjuu, or is an empty white space on the map. This would end with the next parameter being "row".

This would continue until the last row, where the last parameter, instead of being "row", would be "rowend" instead. This is important as it closes the table.

See also