Această pagină este protejată de mișcare
Această pagină este protejată

Forma: Arborele genealogic

De la Wikipedia, enciclopedia liberă.
Salt la navigare Salt la căutare

Modul în Lua pentru a gestiona funcțiile {{ Arborele genealogic }}


 local getArgs = require ( 'Modul: Argumente' ). getArgs
local signal_error = false
local p = {}
ieșire locală = {}

funcție locală dump ( t , ...)
argumente locale = {...}
pentru _ , s în ipairs ( args ) do
table.insert ( t , s )
Sfârșit
Sfârșit

= cell_top locale {
[ '' ] = '<td rowspan = "2" colspan = "2"> <div style = "width: 2em; height: 2em;"> </div> </td>' ,
[ '!' ] = '<td rowspan = "2" style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ ',' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td> <td style = "border-bottom: 1px black solid;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'v' ] = '<td colspan = "2" style = "border-bottom: 1px negru solid;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ '.' ] = '<td style = "border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td rowspan = "2"> < div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ '-' ] = '<td colspan = "2" style = "border-bottom: 1px negru solid;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ ')' ] = '<td rowspan = "2" style = "border-right: 1px black solid;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td style = "border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ '+' ] = '<td style = "border-right: 1px negru solid; border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ '(' ] = '<td style = "border-right: 1px negru solid; border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ '"' ] = '<td style =" border-right: 1px solid black; "> <div style =" width: 1em; height: 1em; "> </div> </td> <td style =" border-bottom: 1px negru solid; "> <div style =" width: 1em; height: 1em; "> </div> </td> ' ,
[ '^' ] = '<td style = "border-right: 1px negru solid; border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ "'" ] = ' <td style = "border-right: 1px negru solid; border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ ':' ] = '<td rowspan = "2" style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ 'F' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'V' ] = '<td colspan = "2" style = "border-bottom: 1px dashed black;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ '7' ] = '<td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td rowspan = " 2 "> <div style =" width: 1em; height: 2em; "> </div> </td> ' ,
[ '~' ] = '<td colspan = "2" style = "border-bottom: 1px dashed black;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ 'D' ] = '<td rowspan = "2" style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ '%' ] = '<td style = "border-right: 1px negru punctat; border-bottom: 1px negru punctat;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'C' ] = '<td style = "border-right: 1px negru întrerupt; border-bottom: 1px negru întrerupt;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ 'L' ] = '<td style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td style = " border-bottom: 1px negru punctat; "> <div style =" width: 1em; height: 1em; "> </div> </td> ' ,
[ 'A' ] = '<td style = "border-right: 1px negru întrerupt; border-bottom: 1px negru întrerupt;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'J' ] = '<td style = "border-right: 1px negru întrerupt; border-bottom: 1px negru întrerupt;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ 'Q' ] = '<td rowspan = "2" style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ 'S' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td> <td style = "border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'M' ] = '<td colspan = "2" style = "border-bottom: 1px punctat negru;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ 'T' ] = '<td style = "border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td rowspan = " 2 "> <div style =" width: 1em; height: 2em; "> </div> </td> ' ,
[ 'P' ] = '<td colspan = "2" style = "border-bottom: 1px punctat negru;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ 'H' ] = '<td rowspan = "2" style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td style = "border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'R' ] = '<td style = "border-right: 1px punctat negru; border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'G' ] = '<td style = "border-right: 1px punctat negru; border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ 'Y' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td style = " border-bottom: 1px punctat negru; "> <div style =" width: 1em; height: 1em; "> </div> </td> ' ,
[ 'W' ] = '<td style = "border-right: 1px punctat negru; border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'Z' ] = '<td style = "border-right: 1px punctat negru; border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ 'd' ] = '<td rowspan = "2" style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td style = "border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ '}' ] = '<td rowspan = "2" style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td style = "border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'j' ] = '<td colspan = "2" style = "border-bottom: 1px negru solid;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ '*' ] = '<td style = "border-right: 1px negru întrerupt; border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'i' ] = '<td style = "border-right: 1px negru întrerupt; border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'c' ] = '<td style = "border-right: 1px negru punctat; border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ '{' ] = '<td style = "border-right: 1px negru punctat; border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ 'f' ] = '<td rowspan = "2" style = "border-right: 1px black solid;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ ']' ] = '<td rowspan = "2" style = "border-right: 1px black solid;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'y' ] = '<td colspan = "2" style = "border-bottom: 1px dashed black;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ 't' ] = '<td style = "border-right: 1px negru solid; border-bottom: 1px black dashed;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ '#' ] = '<td style = "border-right: 1px negru solid; border-bottom: 1px black dashed;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'h' ] = '<td style = "border-right: 1px negru solid; border-bottom: 1px black dashed;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'e' ] = '<td style = "border-right: 1px negru solid; border-bottom: 1px negru punctat;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ '[' ] = '<td style = "border-right: 1px negru solid; border-bottom: 1px negru punctat;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ 'k' ] = '<td rowspan = "2" style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td style = "border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'r' ] = '<td colspan = "2" style = "border-bottom: 1px negru solid;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ 'a' ] = '<td style = "border-right: 1px punctat negru; border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'q' ] = '<td style = "border-right: 1px punctat negru; border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'l' ] = '<td style = "border-right: 1px punctat negru; border-bottom: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ 'o' ] = '<td rowspan = "2" style = "border-right: 1px black solid;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td style = "border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'm' ] = '<td colspan = "2" style = "border-bottom: 1px punctat negru;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ 'b' ] = '<td style = "border-right: 1px negru solid; border-bottom: 1px negru punctat;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'n' ] = '<td style = "border-right: 1px negru solid; border-bottom: 1px negru punctat;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td style = "border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'p' ] = '<td style = "border-right: 1px negru solid; border-bottom: 1px negru punctat;"> <div style = "width: 1em; height: 1em;"> </div> < / td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ 'k2' ] = '<td rowspan = "2" style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'r2' ] = '<td colspan = "2" style = "border-bottom: 1px negru întrerupt;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ 'a2' ] = '<td style = "border-right: 1px punctat negru; border-bottom: 1px punctat # 000001;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'q2' ] = '<td style = "border-right: 1px punctat negru; border-bottom: 1px punctat # 000001;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td style = "border-bottom: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'l2' ] = '<td style = "border-right: 1px punctat negru; border-bottom: 1px punctat # 000001;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> ' ,
[ 'o2' ] = '<td rowspan = "2" style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 2em;"> </div> </td> <td style = "border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'm2' ] = '<td colspan = "2" style = "border-bottom: 1px punctat negru;"> <div style = "width: 2em; height: 1em;"> </div> </td> ' ,
[ 'b2' ] = '<td style = "border-right: 1px negru întrerupt; border-bottom: 1px punctat # 000001;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td style = "border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'n2' ] = '<td style = "border-right: 1px negru punctat; border-bottom: 1px punctat # 000001;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td style = "border-bottom: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'p2' ] = '<td style = "border-right: 1px negru punctat; border-bottom: 1px punctat # 000001;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td rowspan = "2"> <div style = "width: 1em; height: 2em;"> </div> </td> '
}

local celular_bottom = {
[ '' ] = '' ,
[ '!' ] = '' ,
[ ',' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'v' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ '.' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ '-' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ ')' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ '+' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ '(' ] = '<td style = "border-right: 1px negru solid;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ '"' ] = '<td colspan =" 2 "> <div style =" width: 2em; height: 1em; "> </div> </td>' ,
[ '^' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ "'" ] = ' <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ ':' ] = '' ,
[ 'F' ] = '<td style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'V' ] = '<td style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ '7' ] = '<td style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ '~' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'D' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ '%' ] = '<td style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'C' ] = '<td style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'L' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'A' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'J' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'Q' ] = '' ,
[ 'S' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'M' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'T' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'P' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'H' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'R' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'G' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'Y' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'W' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'Z' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'd' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ '}' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'j' ] = '<td style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ '*' ] = '<td style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'i' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'c' ] = '<td style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ '{' ] = '<td style = "border-right: 1px negru întrerupt;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'f' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ ']' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'y' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 't' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ '#' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'h' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'e' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ '[' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'k' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'r' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'a' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'q' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'l' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'o' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'm' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'b' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'n' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'p' ] = '<td style = "border-right: 1px solid black;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'k2' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'r2' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'a2' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'q2' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'l2' ] = '<td style = "border-right: 1px punctat negru;"> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'o2' ] = '<td> <div style = "width: 1em; height: 1em;"> </div> </td>' ,
[ 'm2' ] = '<td style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'b2' ] = '<td style = "border-right: 1px dashed black;"> <div style = "width: 1em; height: 1em;"> </div> </td> <td> <div style = "width: 1em; height: 1em;"> </div> </td> ' ,
[ 'n2' ] = '<td colspan = "2"> <div style = "width: 2em; height: 1em;"> </div> </td>' ,
[ 'p2' ] = '<td style = "border-right: 1px negru întrerupt;"> <div style = "width: 1em; height: 1em;"> </div> </td>'
}
 
funcția p . principal ( cadru )
- Convertiți toți parametrii tăind spațiul gol și convertiți toți parametrii poziționali care conțin caracter gol (sau gol)
- la un singur spațiu. Valoarea returnată pentru parametrul nominal care conține doar caracterul gol este zero
argumente locale = getArgs ( cadru , {
valueFunc = funcție ( cheie , valoare )
dacă tastați ( cheie ) == "număr" atunci
dacă valoarea == zero atunci
întoarceți zero
altceva
valoare = mw . text . decupare ( valoare )
dacă valoare == " atunci valoare = " sfârșit
Sfârșit
altceva
dacă valoarea == „“ , apoi a reveni la sfârșitul zero
Sfârșit
valoarea returnată
Sfârșit
})
retur p . _principal ( argumente )
Sfârșit
 
funcția p . _principal ( argumente )
dump ( ieșire , '<tr style = "height: 1px; text-align: center;">' )
local pos = 1
local continue = adevărat
local box_border_default = args [ 'border' ] sau "2"
local box_style_default = args [ 'boxstyle' ] sau ""
local box_colspan_default = args [ 'colspan' ] sau "6"
local box_rowspan_default = args [ 'rowspan' ] sau "2"
în timp ce continuați să faceți
local cell = args [ pos ]
dacă celulă atunci
if cell_top [ cell ] atunci 
dump ( ieșire , cell_top [ celulă ])
altceva
content = args [ celula ]
dacă conținut ~ = zero atunci 
local border_width = args [ 'border' .. "_" .. cell ] sau box_border_default
stil local = args [ 'boxstyle' .. "_" .. cell ] sau box_style_default
local colspan = args [ 'colspan' .. "_" .. cell ] sau box_colspan_default
local linespan = args [ 'rowspan' .. "_" .. cell ] sau box_rowspan_default
dump ( ieșire , '<td colspan = "' , colspan , '" rowspan = "' , linespan , '" style = "border:' ,
lățime_bordură , 'px negru solid; căptușeală: 0,2em;' , stil , '">' , conținut , '</td>' )
altceva    
dump ( ieșire , '<td colspan = "' , box_colspan_default , '" rowspan = "' , box_rowspan_default , '" style = "border:' ,
box_border_default , 'px negru solid; căptușeală: 0,2em;' , box_style_default , 
'"> <strong class =" error "> Casella"' , celulă ,
'"nedefinit </strong> </td>' )
signal_error = adevărat
Sfârșit
Sfârșit
pos = pos + 1
altceva
continue = false
Sfârșit
Sfârșit
dump ( ieșire , '</tr> <tr style = "height: 1px; text-align: center;">' )
last = pos 
pentru pos = 1 , ultima do
local cell = args [ pos ]
dacă celulă și celulă_fund [ celulă ] atunci 
dump ( output , cell_bottom [ cell ])
Sfârșit
Sfârșit
dump ( ieșire , '</tr>' )
pentru k , _ în perechi ( cell_top ) faceți
dacă k ~ = "7" și args [ k ] atunci
signal_error = adevărat
dump ( ieșire , '<div class = "error"> Codul "' .. k .. '" nu poate fi folosit ca cheie de celulă </div>' )
Sfârșit
Sfârșit
dacă signal_error și mw . titlu . getCurrentTitle (). spațiu de nume == 0 atunci
dump ( ieșire , '[[Categorie: erori de construcție a șablonului genealogic]]' )
Sfârșit
return table.concat ( ieșire )
Sfârșit
 
retur p