imported>Rockdtben |
|
(не показано 5 промежуточных версий 2 участников) |
Строка 1: |
Строка 1: |
| <noinclude>== Description == | | <noinclude>How to use: |
| This templates create a box with an image.
| | <pre>{{Box|'''Lorem''' cherry ipsum.}}</pre> |
| | Makes: {{Box|'''Lorem''' cherry ipsum.}} [[Category:Templates]] </noinclude> |
|
| |
|
| == Parameters ==
| | <includeonly><div class="notice" style="display: inline-flex; align-items: center; position: relative; background-color: var(--color-second-blur); border-left: 0.2rem solid var(--color-primary)"><div class="tgui-blur"></div> |
| | | <div class="notice-icon" style="display: inline-flex; justify-content: center; align-items: center; font-size: 2.5em; min-height: 3rem; color: var(--color-primary); margin-left: 0.5rem;"> {{#fas:circle-exclamation}} </div> |
| {{Parameter Table|name=both|parameters=
| | <div class="notice-text" style="margin: 0.5em 0.5em 0.33em 0.75em;">{{{1|}}}</div> |
| {{Parameter Row|1|Small image on the left shrunk to 40×40 pixels.|[[:File:notice.png]]}}
| | </div> |
| {{Parameter Row|2|Text, if this parameter isn't set, uses the first parameter as text.}}
| | </includeonly> |
| {{Parameter Row|3|Color of the box. When transparent it does hide the border.|<tt>#1e90ff</tt> {{ColorBox|#1e90ff}}}}
| |
| {{Parameter Row|type|Type of the box.|Not set}}
| |
| }}
| |
| | |
| It is possible to add additional rows by using {{Tl|!}} in the Text parameter. One example is {{Tl|SVG available}}.
| |
| | |
| == Types ==
| |
| With types it is possible to predefine the image and color, although both can be changed.
| |
| | |
| {| class="wikitable"
| |
| ! Type
| |
| ! Image
| |
| ! Color
| |
| |-
| |
| | Not set or <tt>info</tt>
| |
| | [[File:notice.png|40px]]
| |
| | {{ColorBox|#1e90ff}}
| |
| |-
| |
| | <tt>error</tt>
| |
| | [[File:Ambox warning pn.svg|40px]]
| |
| | {{ColorBox|#b22222}}
| |
| |-
| |
| | <tt>warning</tt>
| |
| | [[File:warning.svg|40px]]
| |
| | {{ColorBox|#f4c430}}
| |
| |-
| |
| | <tt>editnotice</tt> or <tt>notice</tt>
| |
| | [[File:notice.png|40px]]
| |
| | {{ColorBox|#bba}}
| |
| |-
| |
| | <tt>disambig</tt>
| |
| | [[File:Disambig-dark.svg|40px]]
| |
| | {{ColorBox|#1e90ff}}
| |
| |}
| |
| | |
| == Examples ==
| |
| {{Box|Kerbin18.png|Text|#b22222|Title}}
| |
| | |
| <nowiki>{{Box|Kerbin18.png|Text|#b22222|Title}}</nowiki>
| |
| | |
| {{Box|2='''This article is currently undergoing a major expansion or revamping.''' However, you are free to help in the construction of this page by improving it.}}
| |
| | |
| <nowiki>{{Box|2='''This article is currently undergoing a major expansion or revamping.''' However, you are free to help in the construction of this page by improving it.}}</nowiki>
| |
| {{Box|type=warning|Most of this page is entirely speculation based on in-game observation and should not be taken as absolute fact!}}
| |
| | |
| <nowiki>{{Box|type=warning|Most of this page is entirely speculation based on in-game observation and should not be taken as absolute fact!}}</nowiki>
| |
| | |
| == Additional Box templates ==
| |
| * {{Tl|About}}
| |
| * {{Tl|Blocked}} (and {{Tl|Spammer}})
| |
| * {{Tl|Data template used}}
| |
| * {{Tl|Delete}}
| |
| * {{Tl|Disambiguation}}
| |
| * {{Tl|Incomplete Translation}}
| |
| * {{Tl|LowRes}}
| |
| * {{Tl|Merge}}
| |
| * {{Tl|Move}}
| |
| * {{Tl|NoThumbnailsPlease}}
| |
| * {{Tl|Outdated}}
| |
| * {{Tl|Part config}}
| |
| * {{Tl|Protect}}
| |
| * {{Tl|Spoiler}}
| |
| * {{Tl|Stub}}
| |
| * {{Tl|SVG available}}
| |
| * {{Tl|Talkarchive}}
| |
| * {{Tl|WrongLanguageCode}} (and {{Tl|HasWrongLanguageCode}})
| |
| | |
| [[Category:Templates]]</noinclude><includeonly>{| class="ambox noprint" style="border-left-color: {{{3|#{{#switch: {{{type|}}}
| |
| |error=b22222
| |
| |warning=f4c430
| |
| |editnotice
| |
| |notice=bba
| |
| |note
| |
| |disambig
| |
| |#default=1e90ff}}}}}"
| |
| | class="mbox-image" | {{#if: {{Booland|{{{1|}}}|{{{2|}}}}}|[[File:{{{1|}}}|40x40px|alt=|link=]]|[[File:{{#switch: {{{type|}}}
| |
| |error=Ambox warning pn.svg
| |
| |warning=warning.svg
| |
| |disambig=Disambig-dark.svg
| |
| |editnotice
| |
| |notice
| |
| |note
| |
| |#default=notice.png}}|40x40px|alt=|link=]]}}
| |
| | class="mbox-text" | {{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}
| |
| |}</includeonly>
| |