Difference between revisions of "Template:Infobox mathematics function/sandbox"
Jump to navigation
Jump to search
imported>Sardanaphalus m (abovestyle, spacer widths) |
imported>Sardanaphalus (replaced multiple with single overall includeonly (examples now handled by /doc)) |
||
| Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| abovestyle = background:#e0e0e0;padding:0.15em 0.5em 0.25em;font-weight:bold; | | abovestyle = background:#e0e0e0;padding:0.15em 0.5em 0.25em;font-weight:bold; | ||
| − | | above = {{{name | + | | above = {{{name|}}} |
| imagestyle = padding-bottom:0.4em; | | imagestyle = padding-bottom:0.4em; | ||
| − | | image = {{#if:{{{image | + | | image = {{#if:{{{image|}}} |[[File:{{{image}}}|{{{imagesize|220px}}}|alt={{{imagealt|}}}]]}} |
| headerstyle = background:#e0e0e0;padding-bottom:0.2em; | | 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)-->; | | 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)-->; | ||
| − | | header1 = {{#if:{{{parity | + | | header1 = {{#if:{{{parity|}}}{{{domain|}}}{{{codomain|}}}{{{period|}}} |
| Basic features }} | | Basic features }} | ||
| label3 = [[Even and odd functions|Parity]] | | label3 = [[Even and odd functions|Parity]] | ||
| − | | data3 = {{{parity | + | | data3 = {{{parity|}}} |
| label5 = [[Domain of a function|Domain]] | | label5 = [[Domain of a function|Domain]] | ||
| − | | data5 = {{{domain | + | | data5 = {{{domain|}}} |
| label7 = [[Codomain]] | | label7 = [[Codomain]] | ||
| − | | data7 = {{{codomain | + | | data7 = {{{codomain|}}} |
| label9 = [[Period (mathematics)|Period]] | | label9 = [[Period (mathematics)|Period]] | ||
| − | | data9 = {{{period | + | | data9 = {{{period|}}} |
| data10 = <div style="font-size:15%;line-height:0.15em;"> </div> | | data10 = <div style="font-size:15%;line-height:0.15em;"> </div> | ||
| − | | header15 = {{#if:{{{zero | + | | header15 = {{#if:{{{zero|}}}{{{plusinf|}}}{{{minusinf|}}}{{{max|}}}{{{min|}}}{{{vr1|}}} |
| Specific values }} | | Specific values }} | ||
| label17 = [[y-intercept|At zero]] | | label17 = [[y-intercept|At zero]] | ||
| − | | data17 = {{{zero | + | | data17 = {{{zero|}}} |
| label19 = Value at +{{lower|0.25em|{{resize|130%|∞}}}} | | label19 = Value at +{{lower|0.25em|{{resize|130%|∞}}}} | ||
| − | | data19 = {{{plusinf | + | | data19 = {{{plusinf|}}} |
| label21 = Value at -{{lower|0.25em|{{resize|130%|∞}}}} | | label21 = Value at -{{lower|0.25em|{{resize|130%|∞}}}} | ||
| − | | data21 = {{{minusinf | + | | data21 = {{{minusinf|}}} |
| label23 = Maxima | | label23 = Maxima | ||
| − | | data23 = {{{max | + | | data23 = {{{max|}}} |
| label25 = Minima | | label25 = Minima | ||
| − | | data25 = {{{min | + | | data25 = {{{min|}}} |
| − | | label27 = Value at {{{vr1 | + | | label27 = Value at {{{vr1|}}} |
| − | | data27 = {{{f1 | + | | data27 = {{{f1|}}} |
| label28 = Value at {{{vr2|}}} | | label28 = Value at {{{vr2|}}} | ||
| data28 = {{{f2|}}} | | data28 = {{{f2|}}} | ||
| Line 39: | Line 39: | ||
| label30 = Value at {{{vr4|}}} | | label30 = Value at {{{vr4|}}} | ||
| data30 = {{{f4|}}} | | data30 = {{{f4|}}} | ||
| − | | label31 = Value at {{{vr5 | + | | label31 = Value at {{{vr5|}}} |
| − | | data31 = {{{f5 | + | | data31 = {{{f5|}}} |
| data32 = <div style="font-size:15%;line-height:0.15em;"> </div> | | data32 = <div style="font-size:15%;line-height:0.15em;"> </div> | ||
| − | | header35 = {{#if:{{{asymptote | + | | header35 = {{#if:{{{asymptote|}}}{{{root|}}}{{{critical|}}}{{{inflection|}}}{{{fixed|}}} |
| Specific features }} | | Specific features }} | ||
| label37 = [[Asymptote]] | | label37 = [[Asymptote]] | ||
| − | | data37 = {{{asymptote | + | | data37 = {{{asymptote|}}} |
| label39 = [[Root of a function|Root]] | | label39 = [[Root of a function|Root]] | ||
| − | | data39 = {{{root | + | | data39 = {{{root|}}} |
| label41 = [[Critical point (mathematics)|Critical point]] | | label41 = [[Critical point (mathematics)|Critical point]] | ||
| − | | data41 = {{{critical | + | | data41 = {{{critical|}}} |
| label43 = [[Inflection point|{{allow wrap|Inflection point}}]] | | label43 = [[Inflection point|{{allow wrap|Inflection point}}]] | ||
| − | | data43 = {{{inflection | + | | data43 = {{{inflection|}}} |
| label45 = [[Fixed point (mathematics)|{{allow wrap|Fixed point}}]] | | label45 = [[Fixed point (mathematics)|{{allow wrap|Fixed point}}]] | ||
| − | | data45 = {{{fixed | + | | data45 = {{{fixed|}}} |
| data46 = <div style="font-size:15%;line-height:0.15em;"> </div> | | data46 = <div style="font-size:15%;line-height:0.15em;"> </div> | ||
| − | | data49 = {{#if:{{{notes | + | | data49 = {{#if:{{{notes|}}} |<hr/>{{smaller|{{{notes}}}}} }} |
}}<noinclude>{{Documentation}}</noinclude> | }}<noinclude>{{Documentation}}</noinclude> | ||
Revision as of 14:24, 1 June 2014
| 50px | This is the template sandbox page for Template:Infobox mathematics function (diff). See also the companion subpage for test cases. |
| 30px | This template uses Lua: |
- 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 | |
| Parity | odd |
| Domain | (-∞,∞) |
| Codomain | [-1,1] |
| Period | 2π |
| Specific values | |
| At zero | 0 |
| Maxima | ((2k+½)π,1) |
| Minima | ((2k-½)π,-1) |
| Specific features | |
| Root | kπ |
| Critical point | kπ-π/2 |
[[Inflection point|
| kπ |
| [[Fixed point (mathematics)|
| 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
| The above documentation is transcluded from Template:Infobox mathematics function/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |