Template:Pfstart: Difference between revisions

From Hard Drop Tetris Wiki

Jump to: navigation, search
No edit summary
Line 105: Line 105:
For narrower diagrams with larger blocks, use {{tl|width1row}} to {{tl|width9row}}.
For narrower diagrams with larger blocks, use {{tl|width1row}} to {{tl|width9row}}.


For big TGM blocks, use {{tl|size20row5}}, {{tl|size24row5}}, or {{tl|size32row5}}. {{tl|size20row5a}}, {{tl|size24row5a}}, and {{tl|size32row5a}} are designed for special large images (starting with C, X, and F respectively) when single letters are used, but the images don't exist yet.
For big TGM blocks, use {{tl|size20row5}}, {{tl|size24row5}}, or {{tl|size32row5}}. {{tl|size20row5a}}, {{tl|size24row5a}}, and {{tl|size32row5a}} are designed for special large images (starting with C, X, and F respectively) when single letters are used, but the images don't exist yet, so they are yet to be created.


Finally, smaller 8x8 block diagrams can be done with {{tl|srow}}. Use {{tl|size6row}} for 6x6 blocks.
Finally, smaller 8x8 block diagrams can be done with {{tl|srow}}. Use {{tl|size6row}} for 6x6 blocks. {{tl|size5row}} is used for 5x5 blocks


==List==
==List==

Revision as of 17:40, 30 August 2017

Put this at the top of a variable-height playfield.

Usually, you'll have a

{{pfstart}}
one or more {{pfrow}} lines
{{pfend}}

Example

{{pfstart}}
{{pfrow| | |J|J|J| | | | | }}
{{pfrow| | | | |J| | | | | }}
{{pfrow| | | | | | | | | | }}
{{pfrow| | | | | | | | | | }}
{{pfrow| | | | | | | | | | }}
{{pfrow|J| |-|-|-| | | |i| }}
{{pfrow|J|J|J|Z|-|S|L|L|i| }}
{{pfrow|O|O|Z|Z|T|S|S|L|i| }}
{{pfrow|O|O|Z|T|T|T|S|L|i| }}
{{pfrow|G|G|G| |G|G|G|G|G|G}}
{{pfrow|G|G|G| |G|G|G|G|G|G}}
{{pfend}}
Tet.pngTet.pngJJJTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngJTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
JTet.png---Tet.pngTet.pngTet.pngiTet.png
JJJZ-SLLiTet.png
OOZZTSSLiTet.png
OOZTTTSLiTet.png
GGGTet.pngGGGGGG
GGGTet.pngGGGGGG
Code Output

It is possible to show one preview by putting the next piece all alone in a 2-row-high playfield above the main playfield.

Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngiiiiTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTTTTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.png-Tet.pngTet.pngTet.png
JTet.pngJJJ---ITet.png
JJJZJSLLITet.png
OOZZTSSLITet.png
OOZTTTSLITet.png
GGGTet.pngGGGGGG
GGGTet.pngGGGGGG

Or alternatively, with hold:

Tet.pngTet.pngTet.pngTet.pngggiiii
Tet.pngTet.pngTet.pngTet.pngggTet.pngTet.pngTet.pngTet.png
gggggggggg
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTTTTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.png-Tet.pngTet.pngTet.png
JTet.pngJJJ---ITet.png
JJJZJSLLITet.png
OOZZTSSLITet.png
OOZTTTSLITet.png
GGGTet.pngGGGGGG
GGGTet.pngGGGGGG

Or like this...

Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngiiii
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTTTTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.png-Tet.pngTet.pngTet.png
JTet.pngJJJ---ITet.png
JJJZJSLLITet.png
OOZZTSSLITet.png
OOZTTTSLITet.png
GGGTet.pngGGGGGG
GGGTet.pngGGGGGG

For a 12-block-wide playfield as seen in Tetrinet, use {{tnetrow}} in place of {{pfrow}}. For 14 blocks, use {{qprow}}. And we have mrow(12, 14, 15, 16, 17, 18, 20, 21, 24, 25, 26, 30, 32, 36, 48), though mrow12 and mrow14 redirect to tnetrow and qprow. These can be used to show something on the sides (border, next piece) or for games that have a wider playfield, rotation states, or pixel art.

For narrower diagrams with normal size blocks, use {{mrow1}} to {{mrow9}}.

For larger blocks, use {{size16row}}. {{size16row2}} and {{width5row2}} are specifically designed to use special large images (that start with M) when single letters are used.

For narrower diagrams with larger blocks, use {{width1row}} to {{width9row}}.

For big TGM blocks, use {{size20row5}}, {{size24row5}}, or {{size32row5}}. {{size20row5a}}, {{size24row5a}}, and {{size32row5a}} are designed for special large images (starting with C, X, and F respectively) when single letters are used, but the images don't exist yet, so they are yet to be created.

Finally, smaller 8x8 block diagrams can be done with {{srow}}. Use {{size6row}} for 6x6 blocks. {{size5row}} is used for 5x5 blocks

List

Normal blocks (12x12):

ZLOSIJTG-CPB
X1234567890Tet.png
ADEHKMQRUWSZSL
SOSSSISJSTSGLZLSLJGZGLGO
GSGIGJGTGGNZNSNLNONTNINJ
NG-Z-L-O-S-I-J-T!Z!L!S!T
!J+WO1O2O3O401020304I1I2
I3I4!1!2!3!4W1W2W3W4G1G2
GPSPNPB1B2B3B4B5B6B7B8B9
B0+O+IAP+J+L+S+T+ZLILLLO
LT-P!O!IJ1J2J3J4L1L2L3L4
S1S2S3S4T1T2T3T4Z1Z2Z3Z4
+G'+VYFN1112131471
727374515253543132333421
222324-'-+-V-Y-F-N-GTet.pngTet.png

Large blocks (16x16):

MMZMLMOMSMIMJMTMGM-
MCM1M2M3M4M5M6M7M8M9
M0MPMBMXMMMRMAMEMDMH
MUMMMMMMMMM

Small blocks (10x10):

DDZDLDODSDIDJDTDGD-
DCDDDDDDDDD
Code Img Description
space Tet.png Empty Cell
Z ZTet.png Red Block (Z Tetromino)
L LTet.png Orange Block (L Tetromino)
O OTet.png Yellow Block (O Tetromino)
S STet.png Green Block (S Tetromino)
I ITet.png Cyan Block (I Tetromino)
J JTet.png Blue Block (J Tetromino)
T TTet.png Purple Block (T Tetromino)
G GTet.png Gray Block (Garbage, playfield wall, ghost piece)
- -Tet.png Ghost piece, Line clear, rotate
C CTet.png Rotation center of a piece, a bomb in Bombliss, or any other specially marked block
P PTet.png small T block (multi-purpose)
B BTet.png Black block, mark a cell that has to be occupied for something (like a wallkick) to happen
X XTet.png Mark a cell that cannot be occupied for something (like a wallkick) to happen, or reject a given position
A ATet.png 90° rotation
D DTet.png Soft drop
E ETet.png -90° rotation
H HTet.png Hard drop
K KTet.png Active piece - black block (parity)
M MTet.png Move left
Q QTet.png Active piece - white block (parity)
R RTet.png Move right
U UTet.png Used for a high column
W WTet.png White block
S(block) SZTet.png SRS block
L(block) LZTet.png lighter block (line clear, ghost piece, move)
G(block) GZTet.png Game Boy block
N(block) NZTet.png The New Tetris block
-(block) -ZTet.png darker block
! or +(block) !ZTet.png+ZTet.png centers of tetriminoes
+W +WTet.png blank center
(block)(digit) Z1Tet.png intersection center of tetriminoes
(2705!13)(digit) 21Tet.png intersection center of gray tetriminoes
W(digit), G(digit) W1Tet.png blank space centers.
A(block) AITet.png TGM block
-- --Tet.png Another ghost piece
B(space) File:B Tet.png Black background
B- B-Tet.png Ghost piece on black background
SP, NP, GP, AP SPTet.png other styles of the small T block
B(digit) B1Tet.png-B0Tet.png Black versions of the digits below
1–0 1Tet.png-0Tet.png Digits (multi-purpose)
-P -PTet.png a more gray version of the small T block
', +, V, Y, F, N 'Tet.png other multi-purpose small blocks
-(small block) -'Tet.png grayed small blocks (including -G for gray)
M(space) M Tet.png 16x16 empty
M(block) MZTet.png 16x16 blocks (including gray, black and small T)
M- M-Tet.png 16x16 ghost/line
MC MCTet.png 16x16 center
MX MXTet.png 16x16 cross
M(digit) M1Tet.png 16x16 digits
D(space) D Tet.png 10x10 empty
D(block) DZTet.png 10x10 blocks (including gray)
D- D-Tet.png 10x10 ghost/line
DC DCTet.png 10x10 center

For M(letter) and D(letter), both uppercase and lowercase are supported.

Large and small blocks

size16row template sets size to 16x16.

Template:Size16row Template:Size16row Template:Size16row Template:Size16row Template:Size16row Template:Size16row Template:Size16row Template:Size16row Template:Size16row Template:Size16row Template:Size16row

There are M(block) images specifically designed for 16x16, so that it won't be blurry.
Width1row2 to width9row2 also use 16x16 images.
With size16row2 template, you can use them with single letters. Here is what it looks like:

MMMJMJMJMMMMPM
MMMMMJMMMM1M
MMMMMMMMMCM
MMMMMMMMMXM
MMMMMMMMMM
MJMM-M-M-MMMMIM
MJMJMJMZM-MSMLMLMIM
MOMOMZMZMTMSMSMLMIM
MOMOMZMTMTMTMSMLMIM
MGMGMGMMGMGMGMGMGMG
MGMGMGMMGMGMGMGMGMG

Similarly, size10row sets size to 10x10. Also, srow sets size to 8x8.

Template:Size10row Template:Size10row Template:Size10row Template:Size10row Template:Size10row Template:Size10row Template:Size10row Template:Size10row Template:Size10row Template:Size10row Template:Size10row

Tet.pngTet.pngJJJTet.pngTet.pngTet.pngPTet.png
Tet.pngTet.pngTet.pngTet.pngJTet.pngTet.pngTet.png1Tet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngcTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngxTet.png
Tet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png
JTet.png---Tet.pngTet.pngTet.pngiTet.png
JJJZ-SLLiTet.png
OOZZTSSLiTet.png
OOZTTTSLiTet.png
GGGTet.pngGGGGGG
GGGTet.pngGGGGGG

And size10row2 uses 10x10 images instead.

DDDJDJDJDDDDD
DDDDDJDDDDD
DDDDDDDDDD
DDDDDDDDDD
DGDGDGDDGDGDGDGDGDG
DGDGDGDDGDGDGDGDGDG

It's up to editors to choose their preferred size and use it in their articles.