Template:Pfstart: Difference between revisions

From TetrisWiki
Jump to navigation Jump to search
*>Tepples
Bigger example; how to show the next piece
*>Tepples
fix noinclude
Line 37: Line 37:
{{pfrow|G|G|G| |G|G|G|G|G|G}}
{{pfrow|G|G|G| |G|G|G|G|G|G}}
{{pfrow|G|G|G| |G|G|G|G|G|G}}
{{pfrow|G|G|G| |G|G|G|G|G|G}}
{{pfend}}</noinclude>
{{pfend}}
|-
|-
|Code || Output
|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.
It is possible to show one preview by putting the next piece all alone in a 2-row-high playfield above the main playfield.
{{pfstart}}
{{pfrow| | | | | | | | | | }}
{{pfrow| | | |i|i|i|i| | | }}
{{pfend}}{{pfstart}}
{{pfrow| | | | | | |T| | | }}
{{pfrow| | | | | |T|T|T| | }}
{{pfrow| | | | | | | | | | }}
{{pfrow| | | | | | | | | | }}
{{pfrow| | | | | | |-| | | }}
{{pfrow|J| |J|J|J|-|-|-|i| }}
{{pfrow|J|J|J|Z|J|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}}
</noinclude>

Revision as of 02:36, 15 July 2006

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}}
JJJ
J
J---i
JJJZ-SLLi
OOZZTSSLi
OOZTTTSLi
GGGGGGGGG
GGGGGGGGG
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.

iiii
T
TTT
-
JJJJ---i
JJJZJSLLi
OOZZTSSLi
OOZTTTSLi
GGGGGGGGG
GGGGGGGGG