Difference between revisions of "Template:Infobox mathematics function/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Sardanaphalus
(making comprehensible)
imported>Sardanaphalus
m (Sardanaphalus moved page Template:Function/sandbox to Template:Infobox mathematics function/sandbox: Per template page)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table class="floatright wikitable" width="250">
+
<includeonly>{{Infobox
{{#if:{{{name<includeonly>|</includeonly>}}} |<tr><td colspan="2" style="background-color:#e0e0e0"><center>'''{{{name}}}'''</center></td></tr>}}
+
| abovestyle = background:#e0e0e0;padding:0.15em 0.5em 0.25em;font-weight:bold;
{{#if:{{{image<includeonly>|</includeonly>}}} |<tr><td colspan="2"><center>[[File:{{{image}}}|220px]]</center></td></tr>}}
+
| above = {{{name|}}}
 +
| imagestyle = padding-bottom:0.4em;
 +
| image = {{#if:{{{image|}}} |[[File:{{{image}}}|{{{imagesize|220px}}}|alt={{{imagealt|}}}]]}}
 +
| headerstyle = background:#e0e0e0;padding-bottom:0.2em;
 +
| labelstyle = padding-top:0.25em;line-height:1.2em; padding-right:0.65em<!--(to ensure gap between (long/unwrapped) label and data on same line)-->;
  
  {{#if:{{{heading1<includeonly>|</includeonly>}}} |<tr><td colspan="2" style="background-color:#e0e0e0"> ''Basic features'' </td></tr>}}
+
| header1 = {{#if:{{{parity|}}}{{{domain|}}}{{{codomain|}}}{{{period|}}}
{{#if:{{{parity<includeonly>|</includeonly>}}}  |<tr><td width="160"> [[Even and odd functions|Parity]] </td><td> {{{parity}}} </td></tr>}}
+
            | Basic features }}
{{#if:{{{domain<includeonly>|</includeonly>}}}   |<tr><td width="160"> [[Domain of a function|Domain]] </td><td> {{{domain}}} </td></tr>}}
+
| label3   = [[Even and odd functions|Parity]]
  {{#if:{{{codomain<includeonly>|</includeonly>}}} |<tr><td width="160"> [[Codomain]] </td><td> {{{codomain}}} </td></tr>}}
+
|  data3  = {{{parity|}}}
  {{#if:{{{period<includeonly>|</includeonly>}}|<tr><td width="160"> [[Period (mathematics)|Period]] </td><td> {{{period}}} </td></tr>}}
+
| label5   = [[Domain of a function|Domain]]
 +
|  data5  = {{{domain|}}}
 +
| label7  = [[Codomain]]
 +
| data7  = {{{codomain|}}}
 +
| label9  = [[Period (mathematics)|Period]]
 +
|  data9  = {{{period|}}}
 +
|  data10 = {{#ifeq:{{SUBPAGENAME}}|sandbox | |{{#ifeq:{{PAGENAME}}|Function | |<div style="font-size:15%;line-height:0.15em;">&nbsp;</div>}} }}
  
{{#if:{{{heading2<includeonly>|</includeonly>}}} |<tr><td colspan="2" style="background-color:#e0e0e0"> ''Specific values'' </td></tr>}}
+
| header15 = {{#if:{{{zero|}}}{{{plusinf|}}}{{{minusinf|}}}{{{max|}}}{{{min|}}}{{{vr1|}}}
{{#if:{{{zero<includeonly>|</includeonly>}}}     |<tr><td width="160"> [[y-intercept|At zero]] </td><td> {{{zero}}} </td></tr>}}
+
              | Specific values }}
{{#if:{{{plusinf<includeonly>|</includeonly>}}} |<tr><td width="160"> Value at +∞ </td><td> {{{plusinf}}} </td></tr>}}
+
| label17  = [[y-intercept|At&nbsp;zero]]
  {{#if:{{{minusinf<includeonly>|</includeonly>}}} |<tr><td width="160"> Value at -∞ </td><td> {{{minusinf}}} </td></tr>}}
+
|  data17  = {{{zero|}}}
  {{#if:{{{max<includeonly>|</includeonly>}}}     |<tr><td width="160"> Maxima </td><td> {{{max}}} </td></tr>}}
+
| label19 = Value at&nbsp;+{{lower|0.25em|{{resize|130%|∞}}}}
  {{#if:{{{min<includeonly>|</includeonly>}}}     |<tr><td width="160"> Minima </td><td> {{{min}}} </td></tr>}}
+
|  data19 = {{{plusinf|}}}
  {{#if:{{{vr1<includeonly>|</includeonly>}}}     |<tr><td width="160"> Value at {{{vr1}}} </td><td> {{{f1}}}</td></tr>}}
+
| label21  = Value at&nbsp;-{{lower|0.25em|{{resize|130%|∞}}}}
  {{#if:{{{vr2<includeonly>|</includeonly>}}}     |<tr><td width="160"> Value at {{{vr2}}} </td><td> {{{f2}}} </td></tr>}}
+
|  data21 = {{{minusinf|}}}
  {{#if:{{{vr3<includeonly>|</includeonly>}}}     |<tr><td width="160"> Value at {{{vr3}}} </td><td> {{{f3}}} </td></tr>}}
+
| label23  = Maxima
  {{#if:{{{vr4<includeonly>|</includeonly>}}}     |<tr><td width="160"> Value at {{{vr4}}} </td><td> {{{f4}}} </td></tr>}}
+
|  data23 = {{{max|}}}
  {{#if:{{{vr5<includeonly>|</includeonly>}}}      |<tr><td width="160"> Value at {{{vr5}}} </td><td> {{{f5}}} </td></tr>}}
+
| label25  = Minima
 +
|  data25 = {{{min|}}}
 +
| label27  = Value at&nbsp;{{{vr1|}}}
 +
| data27  = {{{f1|}}}
 +
| label28  = Value at&nbsp;{{{vr2|}}}
 +
|  data28  = {{{f2|}}}
 +
| label29 = Value at&nbsp;{{{vr3|}}}
 +
| data29  = {{{f3|}}}
 +
| label30  = Value at&nbsp;{{{vr4|}}}
 +
|  data30 = {{{f4|}}}
 +
| label31  = Value at&nbsp;{{{vr5|}}}
 +
|  data31  = {{{f5|}}}
 +
|  data32 = {{#ifeq:{{SUBPAGENAME}}|sandbox | |{{#ifeq:{{PAGENAME}}|Function | |<div style="font-size:15%;line-height:0.15em;">&nbsp;</div>}} }}
  
{{#if:{{{heading3<includeonly>|</includeonly>}}}   |<tr><td colspan="2" style="background-color:#e0e0e0"> ''Specific features'' </td></tr>}}
+
| header35 = {{#if:{{{asymptote|}}}{{{root|}}}{{{critical|}}}{{{inflection|}}}{{{fixed|}}}
{{#if:{{{asymptote<includeonly>|</includeonly>}}} |<tr><td width="160"> [[Asymptote]] </td><td> {{{asymptote}}} </td></tr>}}
+
              | Specific features }}
  {{#if:{{{root<includeonly>|</includeonly>}}}       |<tr><td width="160"> [[Root of a function|Root]] </td><td> {{{root}}} </td></tr>}}
+
| label37  = [[Asymptote]]
  {{#if:{{{critical<includeonly>|</includeonly>}}}   |<tr><td width="160"> [[Critical point (mathematics)|Critical point]] </td><td> {{{critical}}} </td></tr>}}
+
|  data37 = {{{asymptote|}}}
  {{#if:{{{inflection<includeonly>|</includeonly>}}} |<tr><td width="160"> [[Inflection point]] </td><td> {{{inflection}}} </td></tr>}}
+
| label39  = [[Root of a function|Root]]
  {{#if:{{{fixed<includeonly>|</includeonly>}}}      |<tr><td width="160"> [[Fixed point (mathematics)|Fixed point]] </td><td> {{{fixed}}} </td></tr>}}
+
|  data39 = {{{root|}}}
 +
| label41  = [[Critical point (mathematics)|Critical point]]
 +
|  data41  = {{{critical|}}}
 +
| label43  = [[Inflection point|{{allow wrap|Inflection point}}]]
 +
|  data43 = {{{inflection|}}}
 +
| label45  = [[Fixed point (mathematics)|{{allow wrap|Fixed point}}]]
 +
|  data45  = {{{fixed|}}}
 +
| data46  = {{#ifeq:{{SUBPAGENAME}}|sandbox | |{{#ifeq:{{PAGENAME}}|Function | |<div style="font-size:15%;line-height:0.15em;">&nbsp;</div>}} }}
  
  {{#if:{{{notes<includeonly>|</includeonly>}}} |<tr><td colspan="2"><small>{{{notes}}}</small></td></tr> }}
+
| data49  = {{#if:{{{notes|}}} |<hr/>{{smaller|{{{notes}}}}} }}
</table><noinclude>
+
 
{{Documentation}}
+
}}</includeonly><noinclude>{{Documentation}}</noinclude>
</noinclude>
 

Latest revision as of 14:49, 1 June 2014

50px Template documentation[view] [edit] [history] [purge]
  1. redirect Template:Parameter names example

Blank syntax

{{Infobox mathematics function
| name = 
| image= |imagesize= <!--(default 220px)--> |imagealt=

| parity= |domain= |codomain= |period=

| zero= |plusinf= |minusinf= |max= |min=
| vr1= |f1= |vr2= |f2= |vr3= |f3= |vr4= |f4= |vr5= |f5=

| asymptote= |root= |critical= |inflection= |fixed=

| notes = 
}}

Parameters

  • Pairs VR1-f1, f1-VR2, etc. are used for labeling specific value functions. Suppose a function at the point e has a value of 2e and that this point is because of something specific. In this case you should put that as VR1 = eand f1 = 2e. For the next point is used a couple of VR2-f2, etc. If you run out of points (five currently available), ask for more.
  • Variables heading1, heading2, heading3 define whether some of the headlines basic properties, specific values, etc. be displayed. If you do not want a title to be displayed, simply delete the variable from the template. Set the value of the variable to 0 or anything will not prevent the display title.
  • Variables plusinf and minusinf indicate the value function at + ∞ and - ∞.
  • root is the x-intercept, critical is the critical point(s), inflection is inflection point(s)
  • fixed is fixed point(s)

Example

The code below produces the box opposite:

Sine
220px
Basic features
Parityodd
Domain(-∞,∞)
Codomain[-1,1]
Period
Specific values
At zero0
Maxima((2k+½)π,1)
Minima((2k-½)π,-1)
Specific features
Root
Critical pointkπ-π/2
[[Inflection point|
  1. REDIRECT Template:Wrap]]
[[Fixed point (mathematics)|
  • REDIRECT Template:Wrap]]
  • 0

    Variable k is an integer.
    {{Infobox mathematics function
    | name = Sine
    | image = Sinus.svg
    | parity=odd |domain=(-∞,∞) |codomain=[-1,1] |period=2π
    | zero=0 |plusinf= |minusinf= |max=((2k+½)π,1) |min=((2k-½)π,-1)
    | asymptote= |root=kπ |critical=kπ-π/2 |inflection=kπ |fixed=0
    | notes = Variable k is an [[integer]].
    }}
    

    Tracking category

    See also