Template:Callout/doc: Difference between revisions
From Space Station 14 Wiki
(image example) |
(→Syntax: sync) |
||
Line 12: | Line 12: | ||
|align: <nowiki>Alignment of the callout. When "Center" is used, the callout will span almost across the full width of a page. | |align: <nowiki>Alignment of the callout. When "Center" is used, the callout will span almost across the full width of a page. | ||
TYPE: line</nowiki> | TYPE: line</nowiki> | ||
|image: <nowiki>An image to add inside the callout at the start. | |||
TYPE: wiki-file-name</nowiki> | |||
|image2: <nowiki>A second image to add inside the callout to the left, after the first one. | |||
TYPE: wiki-file-name</nowiki> | |||
}} | }} | ||
Revision as of 09:51, 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
| image = An image to add inside the callout at the start. TYPE: wiki-file-name
| image2 = A second image to add inside the callout to the left, after the first one. TYPE: wiki-file-name
}}
| 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
| image = An image to add inside the callout at the start. TYPE: wiki-file-name
| image2 = A second image to add inside the callout to the left, after the first one. TYPE: wiki-file-name
}}
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
| Info
| header = Work in Progress
| align = center
| This page is unfinished.
| image = Wired Frame.png
| image2 = Wrench.png
}}
| Info
| header = Work in Progress
| align = center
| This page is unfinished.
| image = Wired Frame.png
| image2 = Wrench.png
}}
↓