Template:Pfstart: Difference between revisions

From Hard Drop Tetris Wiki

Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{| style="line-heigh<nowiki></nowiki>t: -1px; font-size: 12px; border: 1px solid #999"
<includeonly>{| style="line-heigh<nowiki></nowiki>t: 0px; font-size: 12px; border: 1px solid #999"
|</includeonly><noinclude>Put this at the top of a variable-height playfield.
|</includeonly><noinclude>Put this at the top of a variable-height playfield.



Revision as of 06:01, 14 September 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

Or with letters:

Tet.pngTet.pngTet.pngTet.pngkkiiii
Tet.pngTet.pngTet.pngTet.pngkkTet.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(11 to 21, 24 to 32, 36, and 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}}. {{mrow10}} redirects to {{pfrow}}.

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 letter diagrams, use {{ltrow}}. We also have {{ltrow16}}, {{10Ltrow}} (uses special images that start with E), and {{16Ltrow}} (uses special images that start with 9). The E and 9 images do not exist yet.

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}}. We also have {{size3row}} to {{size11row}}. {{size8row}} redirects to {{srow}}. {{size12row}} redirect to {{pfrow}}.

List

If you use non-existent blocks, they will be added by Piotr Grochowski.

Normal blocks (12x12):

ZLOSIJTG-CPBGNN'
XDEHKMQRUWSZSLGFN+
ASSSISJSTSGLZLSLJGZGLGOGYNV
SOGIGJGTGGNZNSNLNONTNINJGVNY
GS-Z-L-O-S-I-J-T!Z!L!S!TG+NF
NG+WO1O2O3O401020304I1I2ANPB
!JI4!1!2!3!4W1W2W3W4G1G2AFPJ
G3SPNPB1B2B3B4B5B6B7B8B9AVPT
GP+O+IAP+J+L+S+T+ZLILLLOA+PS
LTS2S3S4T1T2T3T4Z1Z2Z3Z4G'PO
S1'+VYFN1112131471SNPW
+G7374515253543132333421SFPG
722324-'-+-V-Y-F-N-GS'S+SYPL
22SVTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.pngTet.png

Large blocks (16x16):

MMZMLMOMSMIMJMTMGM-
MCMPMBMXMMMRMAMEMDMH
MUM'M+MNMKMQMWMVMYMF

Small blocks (10x10, incomplete):

DDZDLDODSDIDJDTDGD-
HldTet.pngNxtTet.pngD Tet.pngD Tet.pngD Tet.pngD Tet.png

TGM big blocks (not used):

20x20

Template:Size20row5a Template:Size20row5a Template:Size20row5a Template:Size20row5a

24x24

Template:Size24row5a Template:Size24row5a Template:Size24row5a Template:Size24row5a

32x32

Template:Size32row5a Template:Size32row5a Template:Size32row5a Template:Size32row5a

Characters (to be used along with blocks):

Y@YAYBYCYDYEYFYGYHYIYJYKYLYMYNYO
Y`YaYbYcYdYeYfYgYhYiYjYkYlYmYnYo

10x10

Template:10Ltrow16 Template:10Ltrow16 Template:10Ltrow16 Template:10Ltrow16 Template:10Ltrow16 Template:10Ltrow16

16x16

Template:16Ltrow16 Template:16Ltrow16 Template:16Ltrow16 Template:16Ltrow16 Template:16Ltrow16 Template:16Ltrow16

Note: Some of the characters are invalid due to being used for formatting, therefore are not included (#, <, =, >, [, ], {, |, }). _ is treated like space.

Only ASCII characters are allowed here (because they are on the keyboard). If you use anything else, Piotr Grochowski shall delete them.

Code Img Description
space or period 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)
- or -- -Tet.png Ghost piece, Line clear, rotate (-- is intended to be used in double character)
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 or Y(space) KTet.png Active piece - black block (parity), or blank space otherwise used for number/letter
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 (multi-use)
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
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 or Y(digit) 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(block) MZTet.pngMCTet.png 16x16 block (any single character, uppercase or lowercase)
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
Y(character) YATet.pngYaTet.png Use to enter characters (full ASCII support, except for the invalid wiki formatting characters)
P(color) POTet.pngPBTet.png Pure colors (colors are expressed in mino names, B or W/space/dot)
Hld, Nxt HldTet.pngNxtTet.png Playfield hold/next (use narrower diagrams)

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.