Difference between revisions of "Template:Db/doc"
m |
m |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Database of blocks is transformed from game datafiles.Two file (Main and Sub) are generated to reduce case by blocks. | + | Database of blocks is transformed from game datafiles. Two file (Main and Sub) are generated to reduce case by blocks. |
structure : Template:Db/Version/0.xxx.xxx/file | structure : Template:Db/Version/0.xxx.xxx/file | ||
Line 6: | Line 6: | ||
− | <big>' | + | <big>'''DbParser'''</big> rename unwanted type, handle image options and send to <big>'''Db'''</big> or <big>'''DbSub'''</big> parsing the request type. |
− | <big>' | + | <big>'''Db'''</big> and <big>'''DbSub'''</big> request the page (Main and Sub) who have data and ask to Version wich version (folder ) go to. 2 template are created to avoid loops when ask for table on sub, who request data of main. So, for developpement of tempaltes, it's better to directly query Db or DbSub isntead of DbParser to avoid loops if table of Sub data are used. |
− | <big>' | + | <big>'''Version'''</big> return <big>'''LastVersion'''</big> or the version ask. |
− | <big>' | + | <big>'''Db/LastVersion'''</big> store the default version. |
− | <big>'"Main"'</big> and <big>'"Sub"'</big> are stored in 0.xxx.xxx and | + | <big>'"Main"'</big> and <big>'"Sub"'</big> are stored in 0.xxx.xxx and divise data of each blocks to light process and allow loop request when requesting a table. |
Latest revision as of 01:35, 15 May 2018
Database of blocks is transformed from game datafiles. Two file (Main and Sub) are generated to reduce case by blocks.
structure : Template:Db/Version/0.xxx.xxx/file
file are Main and Sub
DbParser rename unwanted type, handle image options and send to Db or DbSub parsing the request type.
Db and DbSub request the page (Main and Sub) who have data and ask to Version wich version (folder ) go to. 2 template are created to avoid loops when ask for table on sub, who request data of main. So, for developpement of tempaltes, it's better to directly query Db or DbSub isntead of DbParser to avoid loops if table of Sub data are used.
Version return LastVersion or the version ask.
Db/LastVersion store the default version.
'"Main"' and '"Sub"' are stored in 0.xxx.xxx and divise data of each blocks to light process and allow loop request when requesting a table.