Module:UtilHyper/doc

From Heroes of Might and Magic: Olden Era Official Wiki
Revision as of 10:26, 1 July 2026 by Aurelain (talk | contribs) (Created page with "This module takes a {{b|text}} and a {{b|hyper}} list of <code><nowiki>pattern = url</nowiki></code> and returns a text where words that match the pattern will have become hyperlinks. ===Usage=== {{Color|yellow|Input:}} <pre><nowiki> {{#invoke:UtilHyper|apply | text = While worn, grants all unlearned Subskills of the following Skills: Defense, Primal Magic, Recruitment | hyper = Defense=Defense Primal [Mm]agic=Primal_Magic/fr; Rec.*nt=Recruitment }} </nowik...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:UtilHyper

This module takes a text and a hyper list of pattern = url and returns a text where words that match the pattern will have become hyperlinks.

Usage

Input:

{{#invoke:UtilHyper|apply
| text = While worn, grants all unlearned Subskills of the following Skills: Defense, Primal Magic, Recruitment
| hyper =
    Defense=Defense
    Primal [Mm]agic=Primal_Magic/fr;
    Rec.*nt=Recruitment
}}

Output: While worn, grants all unlearned Subskills of the following Skills: Defense, Primal Magic, Recruitment