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

提供: Yourpedia
移動: 案内検索
1行目: 1行目:
{{
+
{| id="{{{id|}}}" class="{{{class|}}}" style="max-width:{{#ifeq:{{{width}}}|100%||{{{width}}}}}; border:{{{border|1px #000 solid}}}; background:{{{background|#fff}}}; color:{{{color|#000}}}; margin:0.5em {{#ifeq:{{{width}}}|100%|1em|auto}}"
  {{namespace detect
+
| style="text-align:center"|{{#ifexist:Image:{{{image}}}|[[Image:{{{image}}}]]|{{{image|}}}}}{{#if:{{{imagetext|}}}|<div style="font-size:{{{imagetextsize|x-small}}}; line-height:130%; margin-top:0.25em">{{{imagetext}}}</div>}}
  | demospace = {{{demospace|}}}
+
| style="padding:0.5em 0.25em; width:{{#if:{{{width|}}}|100%}}"|
  | main      = ambox
+
{{#if:{{{title|}}}|<div style="text-align:center; font-size:{{{titlesize|x-large}}}; line-height:130%; font-weight:bold; padding-bottom:0.25em">{{{title}}}</div>}}
  | talk      = tmbox
+
<div style="text-align:{{{align|left}}}; font-size:{{{size|}}}; line-height:150%">{{{text}}}</div>
  | file      = imbox
+
| style="text-align:center"|{{#ifexist:Image:{{{imageright}}}|[[Image:{{{imageright}}}]]|{{{imageright|}}}}}
  | category  = cmbox
+
|}<noinclude>
  | other    = ombox
+
<pre>
  }}
+
{{Mbox
| type      = {{{type|}}}
+
|id =
| image      = {{{image|}}}
+
|class =
| image-file = {{{image-file|}}}
+
|text =
| image-size = {{{image-size|}}}
+
|title =
| imageright = {{{imageright|}}}
+
|width =
| imageright-file = {{{imageright-file|}}}
+
|border =
| imageright-size = {{{imageright-size|}}}
+
|background =
| style      = {{{style|}}}
+
|color =
| textstyle  = {{{textstyle|}}}
+
|align =
| text      = {{{text}}}
+
|size =
| small      = {{{small|}}}
+
|titlesize =
| smallimage = {{{smallimage|}}}
+
|image =
| smallimage-file = {{{smallimage-file|}}}
+
|imagetext =
| smallimage-size = {{{smallimage-size|}}}
+
|imagetextsize =
| smallimageright = {{{smallimageright|}}}
+
|imageright =
| smallimageright-file = {{{smallimageright-file|}}}
+
}}</pre>
| smallimageright-size = {{{smallimageright-size|}}}
+
[[Category:メッセージテンプレート|*]]
| smalltext  = {{{smalltext|}}}
+
[[Category:テンプレート用テンプレート]]
| section    = {{{section|}}}
+
| image-size-section = {{{imageright-size-section|{{{image-size-section|}}}}}}
+
| text-section = {{{text-section|{{{text}}}}}}
+
}}<noinclude>
+
{{Documentation}}
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
 
</noinclude>
 
</noinclude>

2015年4月27日 (月) 15:27時点における版

{{#ifexist:Image:{{{image}}}|[[Image:{{{image}}}]]|}}{{#if:|
{{{imagetext}}}
}}
100%}}"| {{#if:|
{{{title}}}
}}
{{{text}}}
{{#ifexist:Image:{{{imageright}}}|[[Image:{{{imageright}}}]]|}}
{{Mbox
|id = 
|class = 
|text = 
|title = 
|width = 
|border = 
|background = 
|color = 
|align = 
|size = 
|titlesize = 
|image = 
|imagetext = 
|imagetextsize = 
|imageright = 
}}