Modul:If preview/Doku: Unterschied zwischen den Versionen

imported>Mibadmin
(Die Seite wurde neu angelegt: „{{Lua|Module:If preview/configuration}} {{Uses TemplateStyles|Module:If preview/styles.css}} This module implements {{tl|if preview}} and {{tl|preview warn…“)
 
(kein Unterschied)

Aktuelle Version vom 11. Februar 2022, 12:25 Uhr

Vorlage:Lua Vorlage:Uses TemplateStyles

This module implements Vorlage:Tl and Vorlage:Tl. It helps templates/modules determine if they are being previewed.

Prefer implementing the template versions in other templates.

In a module to use the main(), you need to pass a frame table with an args table.

For the preview warning, use _warning().