「テンプレート:Ambox」の版間の差分

提供: ARK: Survival Evolved Wiki
移動先: 案内検索
(1版 をインポートしました: Imported from en wiki)
 
1行目: 1行目:
<onlyinclude><includeonly><table style="{{{style|}}}" class="plainlinks ambox {{#ifeq:{{{format|}}}|tiny|ambox-tiny}} {{#switch:{{{border|}}}
+
<includeonly>{| class="ambox {{#switch:{{{color|}}}
| red = ambox-red
 
| orange = ambox-orange
 
| yellow = ambox-yellow
 
| purple = ambox-purple
 
 
| blue = ambox-blue
 
| blue = ambox-blue
| green = ambox-green
 
 
| gray = ambox-gray
 
| gray = ambox-gray
 
| green = ambox-green
 
| purple = ambox-purple
 
| red = ambox-red
 
| yellow = ambox-yellow
  +
| cyan = ambox-cyan
 
| orange = ambox-orange
 
| #default = ambox-green
 
| #default = ambox-green
  +
}}"
}} {{{class|}}}">
 
  +
|-
<tr>
 
  +
| {{#if:{{{DLC_ICON|}}}|class="ambox-DLC-icon"|class="ambox-icon"}} valign="middle" | {{#if:{{{DLC_ICON|}}}|[[Image:{{{DLC_ICON}}}|103x48px]]|[[Image:{{{icon|Note.png}}}|48x48px]]}}
<td class="ambox-image">{{{image|[[File:{{{icon|Information.svg{{!}}48px}}}|{{#ifeq:{{{format|}}}|tiny|x20px}}|alt=]]}}}</td>
 
<td class="ambox-text">{{{type|}}}
+
| class="ambox-type" | {{{type|}}}
{{#if:{{{info|}}}|{{#ifeq:{{{format|}}}|tiny||<div class="amsmalltext">
+
{{#if: {{{info|}}} | <div class="ambox-info">{{{info|}}}</div> }}
  +
|}</includeonly><noinclude>==Usage/Example==
{{{info}}}
 
  +
<nowiki>{{ambox|color=blue|icon=Note.png|type=Type|info=Text to display}}</nowiki>
</div>}}}}</td></tr></table></includeonly></onlyinclude><noinclude>
 
  +
{{ambox|color=blue|icon=note.png|type=Type|info=Text to display}}
{{doc}}
 
  +
  +
all parameters are optional, default is a green color and the Note.png-icon.
   
 
[[Category:Notice templates]]</noinclude>
 
[[Category:Notice templates]]</noinclude>

2020年9月26日 (土) 06:38時点における最新版

Usage/Example

{{ambox|color=blue|icon=Note.png|type=Type|info=Text to display}}
Note.png Type
Text to display

all parameters are optional, default is a green color and the Note.png-icon.