Template:Capsule/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude>{{Doc|0}}</noinclude>
{{Doc/subpage}}
 
This template is designed to add a block with rounded corners with text inside.
This template is designed to add a block with rounded corners with text inside.


{{ModernTodo|Better documentation.}}
{{ModernTodo|Better documentation.}}


==Examples==
== Examples ==
{{CodeBlock|style=1|<nowiki>{{Capsule|Hello, World!}}</nowiki>}}
{{CodeBlock|style=1|<nowiki>{{Capsule|Hello, World!}}</nowiki>}}
{{Capsule|Hello, World!}}
{{Capsule|Hello, World!}}
Line 35: Line 36:
| bg = #294157
| bg = #294157
| align = center
| align = center
| text = [[File:Icon-panorama.png|text-bottom|16px|link=]] <b style="color:white">Hello, World!</b>
| text = [[File:Icon-panorama-filled.png|text-bottom|16px|link=]] <b style="color:white">Hello, World!</b>
}}
}}

Revision as of 01:11, 29 April 2023

Edit-copy.png
This is a documentation subpage for Template:Capsule.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template is designed to add a block with rounded corners with text inside.

Template:ModernTodo

Examples

{{Capsule|Hello, World!}}
Hello, World!


{{Capsule|style=1|Hello, World!}}
Hello, World!


{{Capsule|style=2|Hello, World!}}
Hello, World!


{{Capsule|style=3|Some text}}
Some text


{{Capsule|style=1|Some text}}
Some text


{{Capsule | style = 1 | bg = #294157 | align = center | text = [[File:Icon-panorama.png|text-bottom|16px|link=]] <b style="color:white">Hello, World!</b> }}
Icon-panorama-filled.png Hello, World!