Difference between revisions of "Template:JBMO box"

(Created page with "{| class="wikitable" style="margin:0.5em auto; font-size:95%; border:1px solid black; width:80%;" | style="background:#ccf;text-align:center;" colspan="3" | '''{{{year}}} JB...")
 
(One box, multiple number of problems)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
|width="50%" align="center" rowspan="{{{rowsf|1}}}"| {{{aftertext|Followed&nbsp;by<br/>}}}'''{{{after|[[{{{year}}} JBMO Problems/Problem {{{num-a}}}|Problem {{{num-a}}}]]}}}'''
 
|width="50%" align="center" rowspan="{{{rowsf|1}}}"| {{{aftertext|Followed&nbsp;by<br/>}}}'''{{{after|[[{{{year}}} JBMO Problems/Problem {{{num-a}}}|Problem {{{num-a}}}]]}}}'''
 
|-
 
|-
| colspan="3" style="text-align:center;" | [[{{{year}}} JBMO Problems/Problem 1|1]] '''•''' [[{{{year}}} JBMO Problems/Problem 2|2]] '''•''' [[{{{year}}} JBMO Problems/Problem 3|3]] '''•''' [[{{{year}}} JBMO Problems/Problem 4|4]] '''•'''{{{five|[[{{{year}}} JBMO Problems/Problem 5|5]]}}}'''
+
| colspan="3" style="text-align:center;" | [[{{{year}}} JBMO Problems/Problem 1|1]] '''•''' [[{{{year}}} JBMO Problems/Problem 2|2]] '''•''' [[{{{year}}} JBMO Problems/Problem 3|3]] '''•''' [[{{{year}}} JBMO Problems/Problem 4|4]] {{{five|'''•''' [[{{{year}}} JBMO Problems/Problem 5|5]]}}}'''
 
|-
 
|-
 
| colspan="3" style="text-align:center;" | '''[[JBMO Problems and Solutions, with authors | All JBMO Problems and Solutions]]'''
 
| colspan="3" style="text-align:center;" | '''[[JBMO Problems and Solutions, with authors | All JBMO Problems and Solutions]]'''
Line 26: Line 26:
 
If it is the first question, then use:
 
If it is the first question, then use:
 
<pre>
 
<pre>
{{JBMO box|year=1997|before=First Question|num-a=2}}
+
{{JBMO box|year=1997|before=First Problem|num-a=2}}
 
</pre>
 
</pre>
  
 
If it is the last question, then use:
 
If it is the last question, then use:
 
<pre>
 
<pre>
{{JBMO box|year=1997|num-b=4|after=Last Question}}
+
{{JBMO box|year=1997|num-b=4|after=Last Problem}}
 
</pre>
 
</pre>
  
Line 38: Line 38:
 
{{JBMO box|year=1998|num-b=1|num-a=3|five=}}
 
{{JBMO box|year=1998|num-b=1|num-a=3|five=}}
  
{{JBMO box|year=1997|before=First Question|num-a=2}}
+
{{JBMO box|year=1997|before=First Problem|num-a=2}}
  
{{JBMO box|year=1997|num-b=4|after=Last Question}}
+
{{JBMO box|year=2017|num-b=4|after=Last Problem|five=}}
  
 
[[Category:Succession templates]]
 
[[Category:Succession templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 23:02, 3 August 2018

[[{{{year}}} JBMO]] ([[{{{year}}} JBMO Problems|Problems]]Resources)
Preceded by
[[{{{year}}} JBMO Problems/Problem {{{num-b}}}|Problem {{{num-b}}}]]
Followed by
[[{{{year}}} JBMO Problems/Problem {{{num-a}}}|Problem {{{num-a}}}]]
[[{{{year}}} JBMO Problems/Problem 1|1]] [[{{{year}}} JBMO Problems/Problem 2|2]] [[{{{year}}} JBMO Problems/Problem 3|3]] [[{{{year}}} JBMO Problems/Problem 4|4]] [[{{{year}}} JBMO Problems/Problem 5|5]]
All JBMO Problems and Solutions


To use this template, type in:

{{JBMO box|year=|num-b=|num-a=}}

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).

For example,

{{JBMO box|year=1997|num-b=1|num-a=3|five=}}

If it is the first question, then use:

{{JBMO box|year=1997|before=First Problem|num-a=2}}

If it is the last question, then use:

{{JBMO box|year=1997|num-b=4|after=Last Problem}}

This yields, respectively:

1998 JBMO (ProblemsResources)
Preceded by
Problem 1
Followed by
Problem 3
1 2 3 4
All JBMO Problems and Solutions


1997 JBMO (ProblemsResources)
Preceded by
First Problem
Followed by
Problem 2
1 2 3 4 5
All JBMO Problems and Solutions


2017 JBMO (ProblemsResources)
Preceded by
Problem 4
Followed by
Last Problem
1 2 3 4
All JBMO Problems and Solutions