Template:Callout/doc: Difference between revisions
From Space Station 14 Wiki
(syntax sync) |
(fixed header levels) |
||
Line 46: | Line 46: | ||
|} | |} | ||
== Header label == | === Header label === | ||
{{tji|Callout|Info|header:Notice|Bla-bla-bla, lorem ipsum...}} <br> | {{tji|Callout|Info|header:Notice|Bla-bla-bla, lorem ipsum...}} <br> | ||
{{or}} <br> | {{or}} <br> | ||
Line 57: | Line 57: | ||
{{Callout|Info|h=Notice|Bla-bla-bla, lorem ipsum...}} | {{Callout|Info|h=Notice|Bla-bla-bla, lorem ipsum...}} | ||
== Alignment == | === Alignment === | ||
=== Left === | ==== Left ==== | ||
The default. | The default. | ||
=== Center === | ==== Center ==== | ||
{{tji|Callout|Info|align:center|Bla-bla-bla, lorem ipsum...}} <br> | {{tji|Callout|Info|align:center|Bla-bla-bla, lorem ipsum...}} <br> | ||
{{or}} <br> | {{or}} <br> | ||
Line 72: | Line 72: | ||
{{Callout|Info|a=center|Bla-bla-bla, lorem ipsum...}} | {{Callout|Info|a=center|Bla-bla-bla, lorem ipsum...}} | ||
=== Right === | ==== Right ==== | ||
{{tji|Callout|Info|align:right|Bla-bla-bla, lorem ipsum...}} <br> | {{tji|Callout|Info|align:right|Bla-bla-bla, lorem ipsum...}} <br> | ||
Revision as of 09:08, 15 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. When "Center" is used, the callout will span almost across the full width of a page. TYPE: line
}}
| 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. When "Center" is used, the callout will span almost across the full width of a page. TYPE: line
}}
Examples
Types
Type | Syntax | Result |
---|---|---|
Info | {{Callout |
Info An informative message. |
Warning | {{Callout |
Warning Something to be warned about. |
Danger | {{Callout |
Danger The clown is closing in. |
Tip | {{Callout |
Tip When walking over slippery surfaces, hold Shift to slow down and not slip (in most cases). |
Example | {{Callout |
Example An example for something. |
Header label
{{Callout
or
{{Callout
↓
Notice
Bla-bla-bla, lorem ipsum...
or
Notice
Bla-bla-bla, lorem ipsum...
Alignment
Left
The default.
Center
{{Callout
or
{{Callout
↓
or
Right
{{Callout
↓
Info
Bla-bla-bla, lorem ipsum...