Difference between revisions of "Template:Dimensions"

From mintOC
Jump to: navigation, search
(New page: <includeonly> {|border="1px" cellpadding="2px" align="right" valign="top" |- !colspan="2" align="center"|{{PAGENAME}} |- {{#if:{{{image|}}}| {{!}}colspan="2" align="right"{{!}}{{{image}}} ...)
 
(adds a little documentation)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{|border="1px" cellpadding="2px" align="right" valign="top"
+
{{Infobox
|-
+
| bodystyle  = width:auto
!colspan="2" align="center"|{{PAGENAME}}
+
| labelstyle = font-style:italic; font-weight:normal
|-
+
| datastyle  = text-align:right; font-weight: bold
{{#if:{{{image|}}}|
+
 
{{!}}colspan="2" align="right"{{!}}{{{image}}}
+
| above  = {{PAGENAME}}
{{!}}-
+
 
|}}
+
| label1  = State dimension:
{{#if:{{{age|}}}|
+
| data1  = {{{nd|}}}
{{!}}align="left"{{!}}'''Age:'''
+
| label2  = Differential states:
{{!}}align="left"{{!}}{{{age}}}
+
| data2  = {{{nx|}}}
{{!}}-
+
| label3  = Algebraic states:
|}}
+
| data3  = {{{nz|}}}
{{#if:{{{gender|}}}|
+
| label4  = Continuous control functions:
{{!}}align="left"{{!}}'''Gender:'''
+
| data4  = {{{nu|}}}
{{!}}align="left"{{!}}{{{gender}}}
+
| label5  = Discrete control functions:
{{!}}-
+
| data5  = {{{nw|}}}
|}}
+
| label6  = Continuous control values:
{{#if:{{{sexuality|}}}|
+
| data6  = {{{np|}}}
{{!}}align="left"{{!}}'''Sexuality:'''
+
| label7  = Discrete control values:
{{!}}align="left"{{!}}{{{sexuality}}}
+
| data7  = {{{nrho|}}}
{{!}}-
+
| label8  = Path constraints:
|}}
+
| data8  = {{{nc|}}}
{{#if:{{{partner|}}}|
+
| label9  = Interior point inequalities:
{{!}}align="left"{{!}}'''Partner:'''
+
| data9  = {{{nri|}}}
{{!}}align="left"{{!}}{{{partner}}}
+
| label10 = Interior point equalities:
{{!}}-
+
| data10  = {{{nre|}}}
|}}
+
}}
{{#if:{{{rank|}}}|
+
{{!}}align="left"{{!}}'''Rank:'''
+
{{!}}align="left"{{!}}{{{rank}}}
+
{{!}}-
+
|}}
+
{{#if:{{{location|}}}|
+
{{!}}align="left"{{!}}'''Location:'''
+
{{!}}align="left"{{!}}{{{location}}}
+
{{!}}-
+
|}}
+
{{#if:{{{parents|}}}|
+
{{!}}align="left"{{!}}'''Parents:'''
+
{{!}}align="left"{{!}}{{{parents}}}
+
{{!}}-
+
|}}
+
{{#if:{{{siblings|}}}|
+
{{!}}align="left"{{!}}'''Siblings:'''
+
{{!}}align="left"{{!}}{{{siblings}}}
+
{{!}}-
+
|}}
+
{{#if:{{{children|}}}|
+
{{!}}align="left"{{!}}'''Children:'''
+
{{!}}align="left"{{!}}{{{children}}}
+
{{!}}-
+
|}}
+
{{#if:{{{dragon|}}}|
+
{{!}}align="left"{{!}}'''Dragon:'''
+
{{!}}align="left"{{!}}{{{dragon}}}
+
{{!}}-
+
|}}
+
{{#if:{{{wing|}}}|
+
{{!}}align="left"{{!}}'''Wing:'''
+
{{!}}align="left"{{!}}{{{wing}}}
+
{{!}}-
+
|}}
+
{{#if:{{{previous name|}}}|
+
{{!}}align="left"{{!}}'''Previous name:'''
+
{{!}}align="left"{{!}}{{{previous name}}}
+
{{!}}-
+
|}}
+
|}
+
 
</includeonly>
 
</includeonly>
<noinclude><pre>
+
<noinclude>
 +
=Usage=
 +
<pre>
 
{{Dimensions
 
{{Dimensions
|image            = enter the link to an image here as [[Image:imagename|thumb]]
+
|nd        = enter the dimension of the differential states
|age              = enter the character's age here
+
|nx        = enter the number of differential states
|gender          = enter the character's gender here
+
|nz       = enter the number of algebraic states
|sexuality       = enter the character's sexual orientation here
+
|nu        = enter the number of continuous control functions
|partner          = enter the partner's page here, as an internal link
+
|nw        = enter the number of discrete-valued control functions
|rank            = enter the character's rank here, as an internal link
+
|np        = enter the number of time-independent, continuous control values
|location        = enter the character's location here, as an internal link
+
|nrho      = enter the number of time-independent, discrete control values
|parents          = enter the character's parents, if any here, as links, separated with a "<br />"
+
|nc        = enter the number of path- and control constraints
|siblings        = enter the character's siblings, if any here, as links, separated with a "<br />"
+
|nri      = enter the number of interior point inequalities
|children        = enter the character's children, if any here, as links, separated with a "<br />"
+
|nre      = enter the number of interior point equalities
|dragon          = enter the character's dragon here, as an internal link to the dragon's page
+
|wing            = enter the character's wing assignment here, as an internal link to the wing page
+
|previous name    = enter the character's previous name, e.g. what they were called before impression
+
 
}}
 
}}
</pre></noinclude>
+
</pre>
 +
=Maintenance=
 +
If you'd like to change the appearance of <code><nowiki>{{Dimensions}}</nowiki></code> please do it using this file and leave <code>common.css</code> untouched. You have various options to do so, e.g. adding a <code>background:#d13f58</code> to the <code>abovestyle</code> field (separated by <code>;</code>). Click [https://en.wikipedia.org/wiki/Template:Infobox here] for further documentation.
 +
</noinclude>

Latest revision as of 16:25, 25 January 2016


Usage

{{Dimensions
|nd        = enter the dimension of the differential states
|nx        = enter the number of differential states
|nz        = enter the number of algebraic states
|nu        = enter the number of continuous control functions
|nw        = enter the number of discrete-valued control functions
|np        = enter the number of time-independent, continuous control values
|nrho      = enter the number of time-independent, discrete control values
|nc        = enter the number of path- and control constraints
|nri       = enter the number of interior point inequalities
|nre       = enter the number of interior point equalities
}}

Maintenance

If you'd like to change the appearance of {{Dimensions}} please do it using this file and leave common.css untouched. You have various options to do so, e.g. adding a background:#d13f58 to the abovestyle field (separated by ;). Click here for further documentation.