Difference between revisions of "Template:AIME box"

(Test template)
 
 
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Succession box
+
{| class="wikitable" style="margin:0.5em auto; font-size:95%; border:1px solid black; width:80%;"
|before={{#ifeq|1|{{{problem}}}|First<br />question|[[{{{year}}} AIME Problems/Problem {{{problem}}}]]}}
+
| style="background:#ccf;text-align:center;" colspan="3" | '''[[{{{year}}} AIME {{{n|}}}]]''' ('''[[{{{year}}} AIME {{{n|}}} Problems|Problems]]''' • '''[[{{{year}}} AIME {{{n|}}} Answer Key|Answer Key]]''' • [http://www.artofproblemsolving.com/Forum/resources.php?c=182&cid=45&year={{{year}}} Resources])
|title=[[AIME]]<br />[[{{{year}}} AIME Problems|{{{year}}}]]
+
|-
|after={{#ifeq|15|{{{problem}}}|Last<br />question|[[{{{year}}} AIME Problems/Problem {{{problem}}}]]}}
+
|width="50%" align="center" rowspan="{{{rowsp|1}}}"|{{{beforetext|Preceded&nbsp;by<br/>}}}'''{{{before|[[{{{year}}} AIME {{{n|}}} Problems/Problem {{{num-b}}}|Problem {{{num-b}}}]]}}}'''
}}<noinclude>
+
|width="50%" align="center" rowspan="{{{rowsf|1}}}"| {{{aftertext|Followed&nbsp;by<br/>}}}'''{{{after|[[{{{year}}} AIME {{{n|}}} Problems/Problem {{{num-a}}}|Problem {{{num-a}}}]]}}}'''
 +
|-
 +
| colspan="3" style="text-align:center;"| [[{{{year}}} AIME {{{n|}}} Problems/Problem 1|1]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 2|2]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 3|3]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 4|4]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 5|5]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 6|6]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 7|7]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 8|8]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 9|9]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 10|10]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 11|11]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 12|12]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 13|13]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 14|14]] '''•''' [[{{{year}}} AIME {{{n|}}} Problems/Problem 15|15]]
 +
|-
 +
| align="center" colspan="3" | '''[[AIME Problems and Solutions | All AIME Problems and Solutions]]'''
 +
|}<includeonly></includeonly><noinclude>
 
To use this template, type in:
 
To use this template, type in:
  
 
<pre>
 
<pre>
{{AIME box|year=|problem=}}
+
{{AIME box|year=|num-b=|num-a=|n=}}
 
</pre>
 
</pre>
 +
 +
Where num-b is the problem number before the current one, and num-a is the problem number after the current one (this is because [http://meta.wikimedia.org/wiki/ParserFunctions parser functions] are not supported). n is the Roman numeral for the AIME (I or II); if there is none, then just completely omit it.
  
 
For example,
 
For example,
 
<pre>
 
<pre>
{{AIME box|year=1986|problem=2}}
+
{{AIME box|year=1986|num-b=1|num-a=3}}
 +
{{AIME box|year=2000|num-b=1|num-a=3|n=I}}
 +
</pre>
 +
 
 +
If it is the first question, then use:
 +
<pre>
 +
{{AIME box|year=|before=First Question|num-a=2}}
 +
</pre>
 +
 
 +
If it is the last question, then use:
 +
<pre>
 +
{{AIME box|year=|num-b=14|after=Last Question}}
 +
</pre>
 +
 
 +
On the actual AIME page or the problems page, the following can be used (perhaps an alternative scheme can be developed for a/b?):
 +
<pre>
 +
{{AIME box|year=1986|before=[[YYYY-1 AIME]]|after=[[YYYY+1 AIME]]}}
 
</pre>
 
</pre>
 +
 +
This yields, respectively:
 +
 +
{{AIME box|year=1986|num-b=1|num-a=3}}
 +
 +
{{AIME box|year=2000|num-b=1|num-a=3|n=I}}
 +
 +
{{AIME box|year=1986|before=First Question|num-a=2}}
 +
 +
{{AIME box|year=1986|num-b=14|after=Last Question}}
 +
 +
{{AIME box|year=1986|before=[[1985 AIME]]|after=[[1987 AIME]]}}
  
 
[[Category:Succession templates]]
 
[[Category:Succession templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:33, 15 August 2014

[[{{{year}}} AIME ]] ([[{{{year}}} AIME Problems|Problems]][[{{{year}}} AIME Answer Key|Answer Key]]Resources)
Preceded by
[[{{{year}}} AIME Problems/Problem {{{num-b}}}|Problem {{{num-b}}}]]
Followed by
[[{{{year}}} AIME Problems/Problem {{{num-a}}}|Problem {{{num-a}}}]]
[[{{{year}}} AIME Problems/Problem 1|1]] [[{{{year}}} AIME Problems/Problem 2|2]] [[{{{year}}} AIME Problems/Problem 3|3]] [[{{{year}}} AIME Problems/Problem 4|4]] [[{{{year}}} AIME Problems/Problem 5|5]] [[{{{year}}} AIME Problems/Problem 6|6]] [[{{{year}}} AIME Problems/Problem 7|7]] [[{{{year}}} AIME Problems/Problem 8|8]] [[{{{year}}} AIME Problems/Problem 9|9]] [[{{{year}}} AIME Problems/Problem 10|10]] [[{{{year}}} AIME Problems/Problem 11|11]] [[{{{year}}} AIME Problems/Problem 12|12]] [[{{{year}}} AIME Problems/Problem 13|13]] [[{{{year}}} AIME Problems/Problem 14|14]] [[{{{year}}} AIME Problems/Problem 15|15]]
All AIME Problems and Solutions

To use this template, type in:

{{AIME box|year=|num-b=|num-a=|n=}}

Where num-b is the problem number before the current one, and num-a is the problem number after the current one (this is because parser functions are not supported). n is the Roman numeral for the AIME (I or II); if there is none, then just completely omit it.

For example,

{{AIME box|year=1986|num-b=1|num-a=3}}
{{AIME box|year=2000|num-b=1|num-a=3|n=I}}

If it is the first question, then use:

{{AIME box|year=|before=First Question|num-a=2}}

If it is the last question, then use:

{{AIME box|year=|num-b=14|after=Last Question}}

On the actual AIME page or the problems page, the following can be used (perhaps an alternative scheme can be developed for a/b?):

{{AIME box|year=1986|before=[[YYYY-1 AIME]]|after=[[YYYY+1 AIME]]}}

This yields, respectively:

1986 AIME (ProblemsAnswer KeyResources)
Preceded by
Problem 1
Followed by
Problem 3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
All AIME Problems and Solutions
2000 AIME I (ProblemsAnswer KeyResources)
Preceded by
Problem 1
Followed by
Problem 3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
All AIME Problems and Solutions
1986 AIME (ProblemsAnswer KeyResources)
Preceded by
First Question
Followed by
Problem 2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
All AIME Problems and Solutions
1986 AIME (ProblemsAnswer KeyResources)
Preceded by
Problem 14
Followed by
Last Question
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
All AIME Problems and Solutions
1986 AIME (ProblemsAnswer KeyResources)
Preceded by
1985 AIME
Followed by
1987 AIME
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
All AIME Problems and Solutions