「テンプレート:Ambox」の版間の差分
提供: ひつじ小屋別館2代目
細 (1版) |
細 |
||
1行目: | 1行目: | ||
− | {{# | + | {{#switch:{{{small|{{#if:{{{section|}}}|section}}}}} |
− | + | | left = | |
− | + | {{Ambox/core | |
− | + | | small = left | |
− | + | | type = {{{type|}}} | |
− | + | | image = {{#if:{{{smallimage|}}} | |
− | + | | {{{smallimage}}} | |
− | + | | {{{image|}}} | |
− | + | }} | |
− | + | | image-file = {{#if:{{{smallimage-file|}}} | |
− | + | | {{{smallimage-file}}} | |
− | + | | {{{image-file|}}} | |
− | + | }} | |
− | + | | image-size = {{#if:{{{smallimage-size|}}} | |
− | + | | {{{smallimage-size}}} | |
− | + | | 20x20 | |
− | + | }} | |
− | + | | imageright = {{#if:{{{smallimageright|}}} | |
− | + | | {{{smallimageright}}} | |
− | + | | {{{imageright|}}} | |
− | + | }} | |
− | + | | imageright-file = {{#if:{{{smallimageright-file|}}} | |
− | + | | {{{smallimageright-file}}} | |
− | + | | {{{imageright-file|}}} | |
− | + | }} | |
− | + | | imageright-size = {{#if:{{{smallimageright-size|{{{smallimage-size|}}}}}} | |
− | + | | {{{smallimageright-size|{{{smallimage-size}}}}}} | |
− | + | | 20x20 | |
− | + | }} | |
− | + | | style = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}} | |
− | + | | textstyle = {{{textstyle|}}} | |
− | + | | text = {{#if:{{{smalltext|}}} | |
− | + | | {{{smalltext}}} | |
− | + | | {{{text}}} | |
− | + | }} | |
− | | | + | | printable = {{{printable|}}} |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
− | | | + | | section = |
− | + | {{Ambox/core | |
− | }}<noinclude> | + | | small = section |
− | {{Documentation}} | + | | type = {{{type|}}} |
− | <!-- | + | | image = {{{image|}}} |
− | </noinclude> | + | | image-file = {{{image-file|}}} |
+ | | image-size = {{#if:{{{image-size-section|{{{image-size|}}}}}} | ||
+ | | {{{image-size-section|{{{image-size}}}}}} | ||
+ | | 40x40 | ||
+ | }} | ||
+ | | imageright = {{{imageright|}}} | ||
+ | | imageright-file = {{{imageright-file|}}} | ||
+ | | imageright-size = {{#if:{{{imageright-size-section|{{{image-size-section|{{{imageright-size|{{{image-size|}}}}}}}}}}}} | ||
+ | | {{{imageright-size-section|{{{image-size-section|{{{imageright-size|{{{image-size}}}}}}}}}}}} | ||
+ | | 40x40 | ||
+ | }} | ||
+ | | style = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}} | ||
+ | | textstyle = {{{textstyle|}}} | ||
+ | | text = {{#if:{{{text-section|}}} | ||
+ | | {{{text-section}}} | ||
+ | | {{{text}}} | ||
+ | }} | ||
+ | | printable = {{{printable|}}} | ||
+ | }} | ||
+ | | #default = | ||
+ | {{Ambox/core | ||
+ | | type = {{{type|}}} | ||
+ | | image = {{{image|}}} | ||
+ | | image-file = {{{image-file|}}} | ||
+ | | image-size = {{#if:{{{image-size|}}} | ||
+ | | {{{image-size}}} | ||
+ | | 40x40 | ||
+ | }} | ||
+ | | imageright = {{{imageright|}}} | ||
+ | | imageright-file = {{{imageright-file|}}} | ||
+ | | imageright-size = {{#if:{{{imageright-size|{{{image-size|}}}}}} | ||
+ | | {{{imageright-size|{{{image-size}}}}}} | ||
+ | | 40x40 | ||
+ | }} | ||
+ | | style = {{{style|}}}; {{#if:{{{background|}}}|background-color: {{{background|}}}}} | ||
+ | | textstyle = {{{textstyle|}}} | ||
+ | | text = {{{text}}} | ||
+ | | printable = {{{printable|}}} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | --><noinclude>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:記事用メッセージボックス]]}}}}</noinclude><!-- | ||
+ | |||
+ | --><noinclude>{{Documentation}} | ||
+ | <!-- カテゴリと言語間リンクはここではなく、/doc サブページに追加してください --></noinclude> |
2013年6月23日 (日) 15:43時点における版
This is the {{Ambox}} or Article message box meta-template.
Type preview
type=speedy |
type=delete |
type=warning |
type=style. |
type=notice |
type=move |
type=protection |
See also
Message box templates | {{ambox}} • {{asbox}} • {{cmbox}} • {{dmbox}} • {{fmbox}} • {{imbox}} • {{ombox}} • {{tmbox}} |
---|
Other pages:
- w:Template:Mbox
- w:Wikipedia:Ambox CSS classes – Describes how to use the ambox CSS classes directly in wikitables and HTML tables.
- w:Wikipedia:Article message boxes – The style guideline for creating article message boxes.
- w:Wikipedia talk:Article message boxes – For discussion about these matters.
Language: | English |
---|
The above documentation is transcluded from テンプレート:Ambox/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |