Template:Capsule/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:
{{ModernTodo|There may be problems with the {{MdCode|display:flex;}}}}
{{ModernTodo|There may be problems with the {{MdCode|display:flex;}}}}


==Parameters==
== Parameters ==
{{param|1}} - input content
{{param|1}} - input content
{{param|align}} - controls the alignment of the contents of the capsule


{{param|color}} - controls the color of the text
{{param|color}} - controls the color of the text
Line 13: Line 15:
{{param|contbg}} - controls the background of the capsule content
{{param|contbg}} - controls the background of the capsule content


==Example==
== Examples ==
{{MdCodeBlock|outline|margin=.4em 0 .5em 0|<nowiki>{{capsule|capbg=#4a6821|Some text}}</nowiki>}}
{{MdCodeBlock|outline|margin=.4em 0 .5em 0|<nowiki>{{capsule|capbg=#4a6821|Some text}}</nowiki>}}
{{capsule|capbg=#4a6821|Some text}}
{{capsule|capbg=#4a6821|Some text}}


{{MdCodeBlock|outline|margin=.4em 0 .5em 0|<nowiki>{{capsule|capbg=#253b4e|contbg=#2b4c6a|color=#fff|<!--
{{MdCodeBlock|outline|margin=.4em 0 .5em 0|<nowiki>{{capsule|capbg=#253b4e|contbg=#2b4c6a|align=center|color=#fff|<!--
-->[[File:Steamtours workshop.png|link=SteamVR/Environments]] &nbsp; [[SteamVR/Environments|<span style="color:white;">'''Go to the SteamVR Workshop Tools documentation index'''</span>]]
-->[[File:Steamtours workshop.png|link=SteamVR/Environments]] &nbsp; [[SteamVR/Environments|<span style="color:white;">'''Go to the SteamVR Workshop Tools documentation index'''</span>]]
}}</nowiki>
}}</nowiki>
}}
}}


{{capsule|capbg=#253b4e|contbg=#2b4c6a|color=#fff|<!--
{{capsule|capbg=#253b4e|contbg=#2b4c6a|align=center|color=#fff|<!--
-->[[File:Steamtours workshop.png|link=SteamVR/Environments]] &nbsp; [[SteamVR/Environments|<span style="color:white;">'''Go to the SteamVR Workshop Tools documentation index'''</span>]]
-->[[File:Steamtours workshop.png|link=SteamVR/Environments]] &nbsp; [[SteamVR/Environments|<span style="color:white;">'''Go to the SteamVR Workshop Tools documentation index'''</span>]]
}}
}}

Revision as of 00:48, 10 December 2022

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
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 based on a capsule from the Wiki's Main Page.

Template:ModernTodo

Parameters

{{{1}}} - input content

{{{align}}} - controls the alignment of the contents of the capsule

{{{color}}} - controls the color of the text

{{{capbg}}} - controls the capsule background

{{{contbg}}} - controls the background of the capsule content

Examples

Template:MdCodeBlock

Some text

Template:MdCodeBlock

Steamtours workshop.png   Go to the SteamVR Workshop Tools documentation index