Template:Callout/doc: Difference between revisions

From Space Station 14 Wiki
(Created page with "== Syntax == {{tj|Callout |1: <nowiki>[REQUIRED] Type of the callout. Select from the suggested values. Any casing is supported. TYPE: line</nowiki> |2: <nowiki>[REQUIRED] Content of the callout. TYPE: string</nowiki> |header: <nowiki>Header text of the callout. By default, depends on the type. TYPE: line</nowiki> |align: <nowiki>Alignment of the callout. TYPE: line</nowiki> }} == Examples == === Types === {| class="wikitable" |+ Capti...")
 
No edit summary
Line 45: Line 45:
|| {{Callout|Example|An example for something.}}
|| {{Callout|Example|An example for something.}}
|}
|}
== Header ==
{{tji|Callout|Info|header:Notice|Bla-bla-bla, lorem ipsum...}} <br>
{{gray or}} <br>
{{tji|Callout|Info|h:Notice|Bla-bla-bla, lorem ipsum...}}
{{gda}}
{{Callout|Info|header=Notice|Bla-bla-bla, lorem ipsum...}}
{{gray or}} <br>
{{Callout|Info|h=Notice|Bla-bla-bla, lorem ipsum...}}

Revision as of 13:32, 14 August 2024

Syntax

{{Callout
| 1 = [REQUIRED] Type of the callout. Select from the suggested values. Any casing is supported. TYPE: line
| 2 = [REQUIRED] Content of the callout. TYPE: string
| header = Header text of the callout. By default, depends on the type. TYPE: line
| align = Alignment of the callout. TYPE: line
}}

Examples

Types

Caption text
Type Syntax Result
Info {{Callout|Info|An informative message.}}
Info
An informative message.
Warning {{Callout|Warning|Something to be warned about.}}
Warning
Something to be warned about.
Danger {{Callout|Danger|The clown is closing in.}}
Danger
The clown is closing in.
Tip {{Callout|Tip|When walking over slippery surfaces, hold {{button|Shift}} to slow down and not slip (in most cases).}}
Tip
When walking over slippery surfaces, hold Shift to slow down and not slip (in most cases).
Example {{Callout|Example|An example for something.}}
Example
An example for something.

Header

{{Callout|Info|header=Notice|Bla-bla-bla, lorem ipsum...}}
or
{{Callout|Info|h=Notice|Bla-bla-bla, lorem ipsum...}}

Notice
Bla-bla-bla, lorem ipsum...

or

Notice
Bla-bla-bla, lorem ipsum...