Template:Callout/doc: Difference between revisions
From Space Station 14 Wiki
(cat) |
(added image example) |
||
Line 78: | Line 78: | ||
{{Callout|Info|align=right|Bla-bla-bla, lorem ipsum...}} | {{Callout|Info|align=right|Bla-bla-bla, lorem ipsum...}} | ||
=== Images === | |||
{{tji|Callout|Info|h:Work in Progress|This page is unfinished.|image:Wired Frame.png}} | |||
{{gda}} | |||
{{Callout|Info|h=Work in Progress|This page is unfinished.|image=Wired Frame.png}} | |||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 09:12, 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...
Images
{{Callout
↓