「テンプレート:Dmbox/sandbox」の版間の差分
提供: Yourpedia
(Template:Dmboxの2009年11月3日 (火) 04:21 (UTC) から一部複製) |
|||
| (同じ利用者による、間の9版が非表示) | |||
| 3行目: | 3行目: | ||
| disambig <!-- disambig = default --> | | disambig <!-- disambig = default --> | ||
| #default = disambig | | #default = disambig | ||
| − | }}" class=" | + | }}" class="metadata plainlinks dmbox {{#switch:{{{type|}}} |
| − | {{#switch:{{{type|}}} | + | |
| setindex = dmbox-setindex | | setindex = dmbox-setindex | ||
| disambig <!-- disambig = default --> | | disambig <!-- disambig = default --> | ||
| 10行目: | 9行目: | ||
}}" style="{{{style|}}}"> | }}" style="{{{style|}}}"> | ||
<tr> | <tr> | ||
| − | + | <td class="mbox-image" style="padding:2px 0 2px 0.4em"> | |
| − | + | ||
| − | + | ||
{{#if:{{{image-file|}}} | {{#if:{{{image-file|}}} | ||
| − | | [[ | + | | [[画像:{{{image-file}}}|{{#if:{{{image-size|}}}|{{{image-size}}}|30}}px]] |
| {{#if:{{{image|}}} | | {{#if:{{{image|}}} | ||
| {{{image}}} | | {{{image}}} | ||
| − | | [[ | + | | [[画像:{{#switch:{{{type|}}} |
| setindex = List gray.svg | | setindex = List gray.svg | ||
| disambig <!-- disambig = default --> | | disambig <!-- disambig = default --> | ||
| 23行目: | 20行目: | ||
}}|{{#if:{{{image-size|}}}|{{{image-size}}}|30}}px]] | }}|{{#if:{{{image-size|}}}|{{{image-size}}}|30}}px]] | ||
}} | }} | ||
| − | }}</td> | + | }} |
| − | + | </td> | |
<td class="mbox-text" style="padding:0.25em 0.4em; font-style:normal; {{{textstyle|}}}">{{#if:{{{text|}}}| {{{text}}} }}<!-- {{{text}}}内冒頭のウィキマークアップによる箇条書きを正しく表示させるために条件文にしています。 --></td> | <td class="mbox-text" style="padding:0.25em 0.4em; font-style:normal; {{{textstyle|}}}">{{#if:{{{text|}}}| {{{text}}} }}<!-- {{{text}}}内冒頭のウィキマークアップによる箇条書きを正しく表示させるために条件文にしています。 --></td> | ||
| − | |||
| − | |||
| − | |||
</tr> | </tr> | ||
</table><!-- Detect and report usage with faulty "type" parameter: | </table><!-- Detect and report usage with faulty "type" parameter: | ||
| 35行目: | 29行目: | ||
| disambig | | disambig | ||
| setindex = <!-- Do nothing, valid "type" --> | | setindex = <!-- Do nothing, valid "type" --> | ||
| − | | #default = <div style="text-align:center | + | | #default = <div style="text-align:center">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{Main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> |
}}<!-- | }}<!-- | ||
-->{{{category|{{ | -->{{{category|{{ | ||
2009年12月23日 (水) 01:49時点における最新版
| ここは、テンプレート:Dmbox/sandboxのテンプレート・サンドボックスです。対応するテストケース・サブページもご覧ください。 |
{{#if:
| [[画像:{{{image-file}}}|{{#if:|{{{image-size}}}|30}}px]]
| {{#if:
| {{{image}}}
| [[画像:{{#switch:
| setindex = List gray.svg
| disambig
| #default = Disambig gray.svg
}}|{{#if:|{{{image-size}}}|30}}px]]
}}
}}
|
{{#if:| {{{text}}} }} |
| | disambig | setindex =
| #default =This message box is using an invalid "type=" parameter and needs fixing.
}}{{
#switch:
| setindex =
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:テンプレート|
| main
| other
}}
}}
| main =
| other | #default =
}}
| disambig
| #default =
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:テンプレート|テンプレート
| template
| other
}}
}}
| template =
| other | #default =
}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:テンプレート|
| main
| other
}}
}}
| main =
| other | #default =
}}
}}