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

提供: 萌えっ娘百科事典
移動先: 案内検索
(同じ利用者による、間の1版が非表示)
1行目: 1行目:
<includeonly>{|class="common-box" style="margin: 0px 10%; width:{{{width|80%}}}; background: #fbfbfb; border-left: 10px solid {{{color|#1e90ff}}};"
+
{|class="common-box" style="margin: 0px 10%; width:{{{width|80%}}}; background: #f8f9fa; border-left: 10px solid {{{color|#1e90ff}}};; box-shadow:0 1px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 2px 1px -2px rgba(0,0,0,.2)"
 
|-  
 
|-  
 
| style="padding: 2px 0 2px 0.5em" | {{{leftimage|[[image:Icon-info.png|50px|link=]]}}}
 
| style="padding: 2px 0 2px 0.5em" | {{{leftimage|[[image:Icon-info.png|50px|link=]]}}}
 
| style="padding: 0.25em 0.5em"| <div style="{{{text-style|}}}">{{{text|{{{1|'''警告!まだ内容を入力してない!'''}}}}}}</div>
 
| style="padding: 0.25em 0.5em"| <div style="{{{text-style|}}}">{{{text|{{{1|'''警告!まだ内容を入力してない!'''}}}}}}</div>
|}</includeonly>
+
|}<noinclude>
<noinclude>
 
効果:
 
{{info}}
 
  
使用例:
+
=== 使用例 ===
 
<pre>
 
<pre>
 
|text= を除いて、他の項を空白のままにしても削除しても構わない。なんの内容を書かないと、效果は上記のようです。
 
|text= を除いて、他の項を空白のままにしても削除しても構わない。なんの内容を書かないと、效果は上記のようです。

2019年4月5日 (金) 16:14時点における版

Icon-info.png
警告!まだ内容を入力してない!

使用例

|text= を除いて、他の項を空白のままにしても削除しても構わない。なんの内容を書かないと、效果は上記のようです。

{{info
|width=50% 
|text= このinfoテンプレートはほかのテンプレートの親テンプレートです。
|text-style= color: red; font-weight: bold; font-style: italic;
|leftimage= [[image:Icon-forbidden.png|50px|link=]]
|color= red
}}