Module:DLC/doc

From Dune: Awakening Community Wiki
Jump to navigation Jump to search

This is the documentation page for Module:DLC

Module:DLC

Renders a DLC infobox using Template:DLCInfobox, sourced from Module:DLC/data with translatable display strings from MessageBundle:DLC.

This module provides the following function(s):

  • get - renders an infobox for a single DLC.

Usage

Render infobox for current DLC page

On a DLC page, where the page title matches (via slugification) a DLC key in the dataset:

{{#invoke:DLC|get|{{BASEPAGENAME}}}}

Render infobox for a specific DLC

A specific DLC name can also be provided manually:

{{#invoke:DLC|get|Wildlife of Arrakis}}

Include contents list

An optional contents parameter can be passed through to the infobox, typically a bulleted list:

{{#invoke:DLC|get|Wildlife of Arrakis
|contents = 
* [[Wildlife]]-themed Decorations
}}

Parameters

get

1 (required)
string
The DLC name. This is slugified before lookup, so it does not need to exactly match the key casing/formatting used in Module:DLC/data.
Returns an error message if no DLC is specified, or if the slugified name has no match in the dataset.
contents (optional)
string
Wikitext passed through to the infobox's Contents field. Omitted entirely if not provided.

Notes

get

  • Display strings (name and DLC type label) are resolved via MessageBundle:DLC using the page's current language, with the English source also resolved separately for use as internal/category-facing values.