Jump to content

Template:Infobox rugby union tour and Template:Infobox rugby union tour/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
>1ctinus
add short desc generator
 
>Primefac
m Primefac moved page Template:Infobox Tour Rugby/sandbox to Template:Infobox rugby union tour/sandbox: less clunky name, avoids Title Case, and not currently used
 
Line 1: Line 1:
{{Main other|{{short description|Series of rugby union matches|noreplace}}}}
{{ infobox
{{#invoke:infobox|infoboxTemplate
| abovestyle  = background-color: {{{color|{{{colour|#C0C0C0}}}}}}; color: {{{color text|{{{colour text|black}}}}}}
| abovestyle  = background-color: {{{color|{{{colour|#C0C0C0}}}}}}; color: {{{color text|{{{colour text|black}}}}}}
| above      = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
| above      = {{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
Line 6: Line 5:
| caption    = {{{caption|}}}
| caption    = {{{caption|}}}
| headerstyle = background: {{{color|{{{colour|#dedee2}}}}}}; color: {{{color text|{{{colour text|black}}}}}}
| headerstyle = background: {{{color|{{{colour|#dedee2}}}}}}; color: {{{color text|{{{colour text|black}}}}}}
| bodystyle = {{{bodystyle|}}}


<!-- old header code, in case someone decides the custom name is better than just a generic PAGENAME, as only two pages are not called <Team> <year> tour of <dest>
<!-- old header code, in case someone decides the custom name is better than just a generic PAGENAME, as only two pages are not called <Team> <year> tour of <dest>
{{#if: {{{tour|}}} | {{{tour}}} }}{{#if: {{{team|}}} | {{{yearstart}}} }} {{#if: {{{yearfinish|}}}| - <span class="dtend">{{{yearfinish}}}</span>}} {{#if: {{{team|}}} |  {{{team}}} tour}}  {{#if: {{{destination|}}} | in {{{destination}}} }}
{{#if: {{{tour|}}} | {{{tour}}} }}{{#if: {{{team|}}} | {{{yearstart}}} }} {{#if: {{{yearfinish|}}}| - <span class="dtend">{{{yearfinish}}}}} {{#if: {{{team|}}} |  {{{team}}} tour}}  {{#if: {{{destination|}}} | in {{{destination}}} }}
-->
-->
| label1      = Date
 
| data1        = {{{date|}}}
| label2      = Manager
| label2      = Manager
| data2        = {{{manager|}}}
| data2        = {{{manager|}}}
Line 23: Line 20:
| label6      = Top try scorer(s)
| label6      = Top try scorer(s)
| data6        = {{{top try scorer|}}}
| data6        = {{{top try scorer|}}}
| label7      = {{nowrap|Top test point scorer(s)}}
| label7      = Top test point scorer(s)
| data7        = {{{top test point scorer|}}}
| data7        = {{{top test point scorer|}}}
| label8      = {{nowrap|Top test try scorer(s)}}
| label8      = Top test try scorer(s)
| data8        = {{{top test try scorer|}}}
| data8        = {{{top test try scorer|}}}


Line 33: Line 30:
       | datastyle  = background: {{{color|{{{colour|#dedee2}}}}}}; color: {{{color text|{{{colour text|black}}}}}}
       | datastyle  = background: {{{color|{{{colour|#dedee2}}}}}}; color: {{{color text|{{{colour text|black}}}}}}
       | label1    = Summary
       | label1    = Summary
       | data1      = {{#invoke:infobox3cols | child
       | data1      = {{infobox3cols | child = yes
                                 | label1 = P
                                 | label1 = P
                                 | data1a = '''W'''
                                 | data1a = '''W'''
Line 42: Line 39:
     }}
     }}
| label12      = {{#if:{{{matchplayed|}}}|Total}}
| label12      = {{#if:{{{matchplayed|}}}|Total}}
| data12      = {{#if:{{{matchplayed|}}}|{{#invoke:infobox3cols | child
| data12      = {{#if:{{{matchplayed|}}}|{{infobox3cols | child = yes
                                 | label1 = {{#iferror: {{#expr:{{{matchplayed|0}}}<10}} || {{#ifexpr:{{{matchplayed|0}}}<10|{{0}}}}}}{{{matchplayed|}}}
                                 | label1 = {{{matchplayed|}}}
                                 | data1a = {{#iferror: {{#expr:{{{matchwon|0}}}<10}} || {{#ifexpr:{{{matchwon|0}}}<10|{{0}}}}}}{{{matchwon|0}}}
                                 | data1a = {{{matchwon|0}}}
                                 | data1b = {{#iferror: {{#expr:{{{matchdraw|0}}}<10}} || {{#ifexpr:{{{matchdraw|0}}}<10|{{0}}}}}}{{{matchdraw|0}}}
                                 | data1b = {{{matchdraw|0}}}
                                 | data1c = {{#iferror: {{#expr:{{{matchlost|0}}}<10}} || {{#ifexpr:{{{matchlost|0}}}<10|{{0}}}}}}{{{matchlost|0}}}
                                 | data1c = {{{matchlost|0}}}
                               }}
                               }}
                 }}
                 }}
| label13      = {{#if:{{{testplayed|}}}|Test match}}
| label13      = {{#if:{{{testplayed|}}}|Test match}}
| data13      = {{#if:{{{testplayed|}}}|{{#invoke:infobox3cols | child
| data13      = {{#if:{{{testplayed|}}}|{{infobox3cols | child = yes
                                 | label1 = {{#iferror: {{#expr:{{{testplayed|0}}}<10}} || {{#ifexpr:{{{testplayed|0}}}<10|{{0}}}}}}{{{testplayed|}}}
                                 | label1 = {{{testplayed|}}}
                                 | data1a = {{#iferror: {{#expr:{{{testwon|0}}}<10}} || {{#ifexpr:{{{testwon|0}}}<10|{{0}}}}}}{{{testwon|0}}}
                                 | data1a = {{{testwon|0}}}
                                 | data1b = {{#iferror: {{#expr:{{{testdraw|0}}}<10}} || {{#ifexpr:{{{testdraw|0}}}<10|{{0}}}}}}{{{testdraw|0}}}
                                 | data1b = {{{testdraw|0}}}
                                 | data1c = {{#iferror: {{#expr:{{{testlost|0}}}<10}} || {{#ifexpr:{{{testlost|0}}}<10|{{0}}}}}}{{{testlost|0}}}
                                 | data1c = {{{testlost|0}}}
                               }}
                               }}
                 }}
                 }}


<!---------- Individual team games  --------------->
<!---------- Individual team games  --------------->
| header15    = {{#if:{{{opponent1|}}}|{{#invoke:infobox | infoboxTemplate | decat = yes | child = yes
| header15    = {{#if:{{{opponent1|}}}|{{infobox | decat = yes | child = yes
       | labelstyle = background: {{{color|{{{colour|#dedee2}}}}}}; color: {{{color text|{{{colour text|black}}}}}}
       | labelstyle = background: {{{color|{{{colour|#dedee2}}}}}}; color: {{{color text|{{{colour text|black}}}}}}
       | datastyle  = background: {{{color|{{{colour|#dedee2}}}}}}; color: {{{color text|{{{colour text|black}}}}}}
       | datastyle  = background: {{{color|{{{colour|#dedee2}}}}}}; color: {{{color text|{{{colour text|black}}}}}}
       | label1    = Opponent
       | label1    = Opponent
       | data1      = {{#invoke:infobox3cols | child
       | data1      = {{infobox3cols | child = yes
                                 | label1 = P
                                 | label1 = P
                                 | data1a = '''W'''
                                 | data1a = '''W'''
Line 72: Line 69:
     }}
     }}
| label16      = {{#if:{{{opponent1|}}}|{{{opponent1}}}}}
| label16      = {{#if:{{{opponent1|}}}|{{{opponent1}}}}}
| data16      = {{#if:{{{opponent1|}}}|{{#invoke:infobox3cols | child
| data16      = {{#if:{{{opponent1|}}}|{{infobox3cols | child = yes
                                 | label1 = {{{played1|}}}
                                 | label1 = {{{played1|}}}
                                 | data1a = {{{won1|0}}}
                                 | data1a = {{{won1|0}}}
Line 81: Line 78:


| label17      = {{#if:{{{opponent2|}}}|{{{opponent2}}}}}
| label17      = {{#if:{{{opponent2|}}}|{{{opponent2}}}}}
| data17      = {{#if:{{{opponent2|}}}|{{#invoke:infobox3cols | child
| data17      = {{#if:{{{opponent2|}}}|{{infobox3cols | child = yes
                                 | label1 = {{{played2|}}}
                                 | label1 = {{{played2|}}}
                                 | data1a = {{{won2|0}}}
                                 | data1a = {{{won2|0}}}
Line 90: Line 87:


| label18      = {{#if:{{{opponent3|}}}|{{{opponent3}}}}}
| label18      = {{#if:{{{opponent3|}}}|{{{opponent3}}}}}
| data18      = {{#if:{{{opponent3|}}}|{{#invoke:infobox3cols | child
| data18      = {{#if:{{{opponent3|}}}|{{infobox3cols | child = yes
                                 | label1 = {{{played3|}}}
                                 | label1 = {{{played3|}}}
                                 | data1a = {{{won3|0}}}
                                 | data1a = {{{won3|0}}}
Line 99: Line 96:


| label19      = {{#if:{{{opponent4|}}}|{{{opponent4}}}}}
| label19      = {{#if:{{{opponent4|}}}|{{{opponent4}}}}}
| data19      = {{#if:{{{opponent4|}}}|{{#invoke:infobox3cols | child
| data19      = {{#if:{{{opponent4|}}}|{{infobox3cols | child = yes
                                 | label1 = {{{played4|}}}
                                 | label1 = {{{played4|}}}
                                 | data1a = {{{won4|0}}}
                                 | data1a = {{{won4|0}}}
Line 108: Line 105:


| label20      = {{#if:{{{opponent5|}}}|{{{opponent5}}}}}
| label20      = {{#if:{{{opponent5|}}}|{{{opponent5}}}}}
| data20      = {{#if:{{{opponent5|}}}|{{#invoke:infobox3cols | child
| data20      = {{#if:{{{opponent5|}}}|{{infobox3cols | child = yes
                                 | label1 = {{{played5|}}}
                                 | label1 = {{{played5|}}}
                                 | data1a = {{{won5|0}}}
                                 | data1a = {{{won5|0}}}
Line 117: Line 114:


| label21      = {{#if:{{{opponent6|}}}|{{{opponent6}}}}}
| label21      = {{#if:{{{opponent6|}}}|{{{opponent6}}}}}
| data21      = {{#if:{{{opponent6|}}}|{{#invoke:infobox3cols | child
| data21      = {{#if:{{{opponent6|}}}|{{infobox3cols | child = yes
                                 | label1 = {{{played6|}}}
                                 | label1 = {{{played6|}}}
                                 | data1a = {{{won6|0}}}
                                 | data1a = {{{won6|0}}}
Line 126: Line 123:


| label22      = {{#if:{{{opponent7|}}}|{{{opponent7}}}}}
| label22      = {{#if:{{{opponent7|}}}|{{{opponent7}}}}}
| data22      = {{#if:{{{opponent7|}}}|{{#invoke:infobox3cols | child
| data22      = {{#if:{{{opponent7|}}}|{{infobox3cols | child = yes
                                 | label1 = {{{played7|}}}
                                 | label1 = {{{played7|}}}
                                 | data1a = {{{won7|0}}}
                                 | data1a = {{{won7|0}}}
Line 135: Line 132:


| label23      = {{#if:{{{opponent8|}}}|{{{opponent8}}}}}
| label23      = {{#if:{{{opponent8|}}}|{{{opponent8}}}}}
| data23      = {{#if:{{{opponent8|}}}|{{#invoke:infobox3cols | child
| data23      = {{#if:{{{opponent8|}}}|{{infobox3cols | child = yes
                                 | label1 = {{{played8|}}}
                                 | label1 = {{{played8|}}}
                                 | data1a = {{{won8|0}}}
                                 | data1a = {{{won8|0}}}
Line 145: Line 142:


<!----------------- Other tours ------------------>
<!----------------- Other tours ------------------>
| header25    = {{#if: {{{previous|{{{preceded by|}}}}}}{{{next|{{{succeeded by|}}}}}}|Tour chronology}}
| header25    = {{#if: {{{previous|}}}{{{next|}}}|Tour chronology}}
| label26      = Previous tour
| label26      = Previous tour
| data26      = {{{previous|{{{preceded by|}}}}}}
| data26      = {{{previous|}}}
| label27      = Next tour
| label27      = Next tour
| data27      = {{{next|{{{succeeded by|}}}}}}
| data27      = {{{next|}}}
 


| decat        = {{#if:{{{matchplayed|}}}{{{testplayed|}}}{{{previous|}}}{{{preceded by|}}}{{{next|}}}{{{succeeded by|}}}{{{image|}}}|yes|no}}
}}{{main other|{{#if: {{{yearstart|}}}  |[[Category:{{{yearstart}}} rugby union tours|{{{team}}}]]}}{{#if: {{{yearfinish|}}}  |[[Category:{{{yearfinish}}} rugby union tours|{{{team}}}]]}}}}
}}{{main other|{{#if: {{{yearstart|}}}  |{{#ifexist: Category:{{{yearstart}}} rugby union tours|[[Category:{{{yearstart}}} rugby union tours{{!}}{{{team}}}]]|[[Category:{{{yearstart}}} in rugby union{{!}}{{{team}}}]]}}}}{{#if: {{{yearfinish|}}}  |{{#ifexist: Category:{{{yearfinish}}} rugby union tours|[[Category:{{{yearfinish}}} rugby union tours{{!}}{{{team}}}]]|[[Category:{{{yearfinish}}} in rugby union{{!}}{{{team}}}]]}}}}}}<noinclude>
<noinclude>
{{documentation}}
-----
Example template
{{Parameter names example|_template=Infobox Tour Rugby/sandbox
|tour|team|yearstart|yearfinish|destination|manager|coach|captain|top point scorer|top try scorer|top test point scorer|top test try scorer|matchplayed|matchwon|matchdraw|matchlost|testplayed|testwon|testdraw|testlost|opponent1|icon1|played1|won1|draw1|lost1|icon2|opponent2|played2|won2|draw2|lost2|icon3|opponent3|played3|won3|draw3|lost3|icon4|opponent4|played4|won4|draw4|lost4|icon5|opponent5|played5|won5|draw5|lost5|icon6|opponent6|played6|won6|draw6|lost6|icon7|opponent7|played7|won7|draw7|lost7|icon8|opponent8|played8|won8|draw8|lost8|previous|next}}
</noinclude>
</noinclude>