Module:Sandbox/Aurelain/Patch/doc: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "This module provides helpful functions for the rendering of a Template:Patch/row. ==1. renderLink():== <table> <tr> <th>{{Color|yellow|Input:}}</th> <th>{{Color|lime|Output:}}</th> </tr> <tr> <td>{{#invoke:Sandbox/Aurelain/Patch|renderLink | id = {{{id|}}} | lang = {{{lang|}}} | field = {{{field|}}} }}</td> <td>{{#invoke:Sandbox/Aurelain/Patch|renderLink | id = skill_..."
 
No edit summary
Line 2: Line 2:


==1. renderLink():==
==1. renderLink():==
<table>
<table class='wikitable'>
     <tr>
     <tr>
         <th>{{Color|yellow|Input:}}</th>
         <th>{{Color|yellow|Input:}}</th>
Line 8: Line 8:
     </tr>
     </tr>
     <tr>
     <tr>
         <td>{{#invoke:Sandbox/Aurelain/Patch|renderLink
         <td><pre><nowiki>{{#invoke:Sandbox/Aurelain/Patch|renderLink
             | id = {{{id|}}}
             | id = {{{id|}}}
             | lang = {{{lang|}}}
             | lang = {{{lang|}}}
             | field = {{{field|}}}
             | field = {{{field|}}}
         }}</td>
         }}</nowiki></pre></td>
         <td>{{#invoke:Sandbox/Aurelain/Patch|renderLink
         <td>{{#invoke:Sandbox/Aurelain/Patch|renderLink
             | id = skill_sorcery
             | id = skill_sorcery
Line 23: Line 23:


==2. renderText():==
==2. renderText():==
<table>
<table class='wikitable'>
     <tr>
     <tr>
         <th>{{Color|yellow|Input:}}</th>
         <th>{{Color|yellow|Input:}}</th>
Line 29: Line 29:
     </tr>
     </tr>
     <tr>
     <tr>
         <td>{{#invoke:Sandbox/Aurelain/Patch|renderLink
         <td><pre><nowiki>{{#invoke:Sandbox/Aurelain/Patch|renderLink
             | id = {{{id|}}}
             | id = {{{id|}}}
             | lang = {{{lang|}}}
             | lang = {{{lang|}}}
             | field = {{{field|}}}
             | field = {{{field|}}}
         }}</td>
         }}</nowiki></pre></td>
         <td>{{#invoke:Sandbox/Aurelain/Patch|renderText
         <td>{{#invoke:Sandbox/Aurelain/Patch|renderText
             | field = skill_description
             | field = skill_description

Revision as of 06:35, 7 October 2026

This module provides helpful functions for the rendering of a Template:Patch/row.

1. renderLink():

Input: Output:
{{#invoke:Sandbox/Aurelain/Patch|renderLink
            | id = {{{id|}}}
            | lang = {{{lang|}}}
            | field = {{{field|}}}
        }}
Sorcery


2. renderText():

Input: Output:
{{#invoke:Sandbox/Aurelain/Patch|renderLink
            | id = {{{id|}}}
            | lang = {{{lang|}}}
            | field = {{{field|}}}
        }}
+2010% Magic Damage dealt.