Module:Icon/doc

From Dragalia Lost Wiki
< Module:Icon
Revision as of 19:35, 20 December 2019 by >Eave (Created page with "{{doc/start}} == Usage == This module is intended to back the rendering of more complicated Template:Icon cases. Currently it supports the following cases: * Wyrmprints I...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the documentation page for Module:Icon

50px Documentation

Usage

This module is intended to back the rendering of more complicated Template:Icon cases. Currently it supports the following cases:

  • Wyrmprints

In addition to main unnamed argument, it takes 3 additional optional named arguments:

  • link: to specify a custom navigation link for the icon thumbnail
  • size: to specify a custom size for the icon thumbnail
  • text: (must be '1' for true or '0' for false) to specify if a text label should be appended after the icon. Defaults to false.

Example

Generally, this module should be called via the regular wikitext templates instead of directly. But here is example syntax for calling the functions from wikitext:

{{#invoke:Icon|Wyrmprint|Heralds of Hinomoto}}

Lua error: Error: Table Wyrmprints not found..

{{#invoke:Icon|Wyrmprint|Heralds of Hinomoto|size=60px}}

Lua error: Error: Table Wyrmprints not found..

{{#invoke:Icon|Wyrmprint|Heralds of Hinomoto|text=1}}

Lua error: Error: Table Wyrmprints not found..

{{#invoke:Icon|Wyrmprint|Heralds of Hinomoto|size=40px|link=Wyrmprints|text=1}}

Lua error: Error: Table Wyrmprints not found..