Anonymous
×
Create a new article
Write your page title here:
We currently have 57 articles on Vultroverse Wiki. Type your article name above or click on one of the titles below and start writing!



Template:NewInfoBox: Difference between revisions

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>
<div style="width:300px;float:right;clear:right;margin:1em 0 1em 1em;border:2px solid #336699;background:#FFFFFF;-moz-border-radius:15px;border-radius:15px;padding:10px 10px 10px 10px;">
{{NewInfoBox/Header|''Name Here''|#6699CC}}
{{NewInfoBox/Image|Wiki-background|''Image Caption here''|200px}}
{{NewInfoBox/Header|header1|#6699CC}}
{{NewInfoBox/Field|title1|content1|#336699}}
{{NewInfoBox/Field|title2|content2|#336699}}
{{NewInfoBox/Field|title3|content3|#336699}}
{{NewInfoBox/Field|title4|content4|#336699}}
{{NewInfoBox/Header|header5|#6699CC}}
{{NewInfoBox/Field|title5|content5|#336699}}
{{NewInfoBox/Field|title6|content6|#336699}}
</div>
</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:
  #while:
  | {{ #ifexpr: {{ #var: i }} < 100 | true }}
  | {{ #ifexpr: {{ #var: i }} < 100 | true }}
  |<nowiki/>
  |<nowiki/>
  {{ #if: {{{header{{ #var: i }}|}}}|{{NewInfoBox/Header|HeaderB|{{{Header Color|#6699CC}}}}}}}
  {{ #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}}}}}}}
  {{#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:


Name Here
Image Caption here