Show: Difference between revisions
(Created page with "<section begin="image"/> <section end="image"/> <section begin="name" />{{Block|show [▼]}}<section end="name" /> is a code block from the Interface drawer. ==Usage== <p id="tooltip">{{Block|hide [▼]}} shows a selected widget. By default, all widgets are displayed to the user.</p> ===Syntax=== <code>show [Dropdown: Type of Widget]</code> ==Nuances== ==Related Blocks== *{{Block|Hide|hide [▼]}} Category:Interface Category:Code Block") |
(duplicate file already uploaded) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<languages/> | |||
<translate> | |||
<!--T:1--> | |||
<section begin="image"/> | <section begin="image"/> | ||
[[File:Show.png|alt=Show|thumb]] | |||
<section end="image"/><p id="tooltip">Shows a selected widget. By default, all widgets are displayed to the user.</p> | |||
< | <!--T:7--> | ||
<section begin="name" />{{Block|show [▼]}}<section end="name" /> is a code block from the [[Interface]] drawer. | <section begin="name" />{{Block|show [▼]}}<section end="name" /> is a code block from the [[Interface]] drawer. | ||
<!--T:2--> | |||
==Usage== | ==Usage== | ||
{{Block|show [▼]}} shows a selected widget. By default, all widgets are displayed to the user. | |||
<!--T:3--> | |||
==Syntax== | |||
[[File:Show Nums.png|right|alt=The Show Block|thumb]] | |||
<!-- <code>show [Dropdown: Type of Widget]</code> --> | |||
Input: | |||
#A widget from the drop down menu | |||
==Example== <!--T:8--> | |||
<!--T:9--> | |||
[[File:hide_example.gif|alt=Show example gif|thumb]] | |||
[[File:show_example.png|alt=Show example code|thumb]] | |||
<!--T:10--> | |||
< | The game above involves shooting down enemy spaceships while trying not to crash into them. After you crash into an enemy spaceship, everyone is deleted and the ‘GAME OVER’ label is shown using the ‘show’ block. This label is hidden in the setup of the game using the ‘[[Special:MyLanguage/Hide|hide]]’ block so that it is invisible until the game is over. | ||
==Nuances== | ==Nuances== <!--T:4--> | ||
<!--T:5--> | |||
==Related Blocks== | ==Related Blocks== | ||
*{{Block|Hide|hide [▼]}} | *{{Block|Hide|hide [▼]}} | ||
<!--T:6--> | |||
[[Category:Interface]] | [[Category:Interface]] | ||
[[Category:Code Block]] | [[Category:Code Block]] | ||
</translate> |
Latest revision as of 15:45, 16 August 2023
Shows a selected widget. By default, all widgets are displayed to the user.
show [▼]
is a code block from the Interface drawer.
Usage
show [▼]
shows a selected widget. By default, all widgets are displayed to the user.
Syntax
Input:
- A widget from the drop down menu
Example
The game above involves shooting down enemy spaceships while trying not to crash into them. After you crash into an enemy spaceship, everyone is deleted and the ‘GAME OVER’ label is shown using the ‘show’ block. This label is hidden in the setup of the game using the ‘hide’ block so that it is invisible until the game is over.