Template:Ambox: Difference between revisions
[checked revision] | [checked revision] |
CryptoUser (talk | contribs) (Created page with "<includeonly>{|class="metadata plainlinks ambox {{#if:{{{mini|}}}|ambox-mini}} {{#switch:{{{type|}}}|delete|serious|content|style|good|discussion|notice|merge=ambox-{{{type}}}|ambox-talk}}" {{#if:{{{style|}}}|style="{{{style}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{data-label-1|}}}|data-{{{data-label-1|}}}="{{{data-value-1}}}"}} {{#if:{{{data-label-2|}}}|data-{{{data-label-2|}}}="{{{data-value-2}}}"}} {{#if:{{{data-label-3|}}}|data-{{{data-label-3|}}}="{{{data-valu...") |
CryptoUser (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{|class="metadata plainlinks ambox {{#if:{{{mini|}}}|ambox-mini}} {{#switch:{{{type|}}}|delete|serious|content|style|good|discussion|notice|merge=ambox-{{{type}}}|ambox-talk}}" {{#if:{{{style|}}}|style="{{{style}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{data-label-1|}}}|data-{{{data-label-1|}}}="{{{data-value-1}}}"}} {{#if:{{{data-label-2|}}}|data-{{{data-label-2|}}}="{{{data-value-2}}}"}} {{#if:{{{data-label-3|}}}|data-{{{data-label-3|}}}="{{{data-value-3}}}"}} | <includeonly>{|class="metadata plainlinks ambox {{#if:{{{mini|}}}|ambox-mini}} {{#switch:{{{type|}}}|delete|serious|content|style|good|discussion|notice|merge=ambox-{{{type}}}|ambox-talk}}" {{#if:{{{style|}}}|style="{{{style}}}"}} {{#if:{{{id|}}}|id="{{{id}}}"}} {{#if:{{{data-label-1|}}}|data-{{{data-label-1|}}}="{{{data-value-1}}}"}} {{#if:{{{data-label-2|}}}|data-{{{data-label-2|}}}="{{{data-value-2}}}"}} {{#if:{{{data-label-3|}}}|data-{{{data-label-3|}}}="{{{data-value-3}}}"}} | ||
{{#ifeq:{{{image|}}}|none||{{!}}class="ambox-image"{{!}}<div>{{#ifeq:{{{image}}}|blank|<span style="visibility:hidden;"> </span>|{{#switch:{{{image|{{{type}}}}}}|delete|serious=[[File:Stop hand nuvola.svg|40px|Critical | {{#ifeq:{{{image|}}}|none||{{!}}class="ambox-image"{{!}}<div>{{#ifeq:{{{image}}}|blank|<span style="visibility:hidden;"> </span>|{{#switch:{{{image|{{{type}}}}}}|delete|serious=[[File:Stop hand nuvola.svg|40px|Critical problems]]|content=[[File:Emblem-important.svg|40px|Content problem]]|style=[[File:Broom icon.svg|40px|Writing syle problem]]|good=[[File:Green star boxed.svg|40px|Article status]]|discussion=[[File:Nuvola apps ksirc.png|40px|Discussion]]|merge=[[File:Merge-split-transwiki default.svg|40x40px|Content transfer]]|notice=[[File:Information.svg|40px|Info]]|#default={{{image|[[File:Information.svg|40px|Info]]}}}}}}}</div>}} | ||
|class="ambox-text"|{{{text|<span style="font-size:smaller;color:#AAAAAA"> | |class="ambox-text"|{{{text|<span style="font-size:smaller;color:#AAAAAA">The ''text'' parameter is wrong</span>}}}{{#if:{{{text-small|}}}|<div class="ambox-text-small">{{{text-small}}}</div>}} | ||
{{#if:{{{imageright|}}}|{{!}}class="ambox-imageright"{{!}}<div>{{{imageright}}}</div>}} | {{#if:{{{imageright|}}}|{{!}}class="ambox-imageright"{{!}}<div>{{{imageright}}}</div>}} | ||
|class="widthhack"|<!-- a hack for some cases to keep the box wide --> | |class="widthhack"|<!-- a hack for some cases to keep the box wide --> | ||
|}</includeonly><noinclude>{{doc}}</noinclude> | |}</includeonly><noinclude>{{doc}}[[Category:Templates]]</noinclude> |
Latest revision as of 09:51, 15 May 2024
Template info
A template for creating infoboxes. A more compact alternative to the Article message box meta-template of Wikipedia.
Application
The most concise option is the one below (with the only required parameter: text):
There should be documentation here, but for some reason they forgot to write it. You can help the project — fill out the documentation! |
However, for a more accurate description of the situation, it is recommended to use the extended version, with filling in other parameters.
Parameters
type
{{Ambox|type=|text=}}
notice |
delete |
content |
style |
good |
discussion |
merge |
mini
{{Ambox|text=|mini=(any non-empty value)}}
mini |
text-small
{{Ambox|text=Plain text.|text-small=Small text.}}
Plain text. Small text.
|
imageright
{{Ambox|text=Text|imageright=[[Image:Github-48.png|40px]]}}
Text |