No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
<p>Using this template will be as simple as defining the fields in number order</p> | <p>Using this template will be as simple as defining the fields in number order</p> | ||
<p>Example:</p> | <p>Example:</p> | ||
</noinclude> | </noinclude> | ||
<div style="width:300px;float:{{{Align|right}}};clear:{{{Align|right}}};margin:1em 0 1em 1em;border:{{{Border Width|2px}}} solid {{{Border Color|#336699}}};background:#FFFFFF;-moz-border-radius:15px;border-radius:15px;padding:10px 10px 10px 10px;"> | |||
{{#if: {{{Header Color|}}}|}} | |||
{{NewInfoBox/Header|{{{Name|''Name Here''}}}|{{{Header Color|#6699CC}}}}} | |||
{{NewInfoBox/Image|{{{Image|Wiki-background}}}|{{{Image Caption|''Image Caption here''}}}|{{{Image Size|200px}}}}} | |||
{{ #vardefine: i | 0 }} | {{ #vardefine: i | 0 }} | ||
{{ | {{ | ||
#while: | |||
| {{ #ifexpr: {{ #var: i }} < 100 | true }} | |||
|<nowiki/> | |||
{{ #if: {{{Header{{ #var: i }}|}}}|{{NewInfoBox/Header|Header{{ #var: i }}|{{{Header Color|#6699CC}}}}}}} | |||
{{#if: {{{Title{{ #var: i }}|}}}|{{NewInfoBox/Field|{{{Title{{ #var: i }}|}}}|{{{Content{{ #var: i }}|}}}|{{{Border Color|#336699}}}}}}} | |||
{{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }} | {{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }} | ||
}} | }} | ||
</div> |
Revision as of 15:23, 30 July 2012
This code is unfinished. The template will not work yet. Currently waiting for Extension:Variables to be installed.
When finished, this code will allow for the generation of a new infobox with unlimited customization.
Usage
Using this template will be as simple as defining the fields in number order
Example: