Advent of Ascension Wiki

An alpha for 3.6 has been released. Download it here.

READ MORE

Advent of Ascension Wiki
Advertisement


Template-info.png Documentation

Usage

Template:BlockList is used to list blocks. This template is mainly used under the blocks section on dimension pages.

Parameters

The template can host the following arguments:

{{BlockList
|natural = 
|foliage =
|structures =
}}

Explanation of parameters

Template:BlockList has three parameters, natural, foliage, and structures. Each of these parameters corresponds to a header in the template:

Naturally generating
Weightless Grass.png Haven Grass
Foliage
Weightless Grass.png Haven Grass
Generates in structures
Weightless Grass.png Haven Grass

natural corresponds to Naturally generating, foliage corresponds to Foliage, and structures corresponds to Generates in structures.

To fill the sections with blocks, you must insert Template:BRow into the parameter like so:

{{BlockList
|natural = {{BRow|''parameters''}}
|foliage = {{BRow|''parameters''}}{{BRow|''parameters''}}
|structures = {{BRow|''parameters''}}{{BRow|''parameters''}}{{BRow|''parameters''}}
}}

An example of what this could look like is as follows:

{{BlockList
|natural = {{BRow|name=Runic Grass}}
|foliage = {{BRow|name=Runic Bush}}{{BRow|name=Magias}}
|structures = {{BRow|name=Runic Construct Bricks}}{{BRow|name=Runic Glass}}{{BRow|name=Recreation Station}}
}}

The above code produces the following:

Naturally generating
Runic Grass.png Runic Grass
Foliage
Runic Bush.png Runic Bush
Magias.png Magias
Generates in structures
Runic Construct Bricks.png Runic Construct Bricks
Runic Glass.png Runic Glass
Recreation Station.png Recreation Station

You have to use Template:BRow when adding blocks to the list, otherwise it will not work.

For a full list of parameters for Template:BRow, see the below section.

Template:BRow

Template:BRow is a template built to be used specifically inside Template:BlockList. It is not intended to be used on its own.

Template:BRow has its own set of parameters that can be set to change the rows in Template:BlockList.

Template:BRow can have the following parameters:

{{BRow
|name = 
|imgname =
|imgsize =
|format =
|lnkname =
}}

Explanation of parameters

  • name - sets the link destination of the hyperlink in the template. This parameter is required.
    • If the imgname parameter is not set, it will set the image name to be the same as the hyperlink destination.
    • If the lnkname parameter is not set, it will set the hyperlink to use the name of the hyperlink destination.
  • imgname - sets the name of the image. This can be used when a image is not associated with a name. If this parameter is not set, the image name will be whatever the name parameter is set to.
  • imgsize - sets the size of the image. Size must be a number with the letters px attached on the end, otherwise it becomes an image description. If not set, image size defaults to 32px.
  • format - sets the file format of the image. Can be any applicable file format (png, gif, etc). If not set, image file format defaults to png.
  • lnkname - sets the name of the hyperlink. This can be used when a page title is different than the name of the object being linked (such as a merged article). If this parameter is not set, the hyperlink text will be whatever the name parameter is set to.

An example of the parameters in use is described below:

{{BlockList
|natural = {{BRow|name=Gardencia Stone|imgname=Deep Rock|lnkname=Crystevia Rock}} 
}}

The above code produces the following:

Naturally generating
Dense Stone.png Crystevia Rock
Foliage
Generates in structures

The parameters are set to make an image of "Deep Rock", with a link that reads "Crystevia Rock", that when clicked on leads to a page called "Gardencia Stone".

The above documentation is transcluded from Template:BlockList/doc.


Advertisement