Template:Ballgame: Difference between revisions

From Protoball
Jump to navigation Jump to search
No edit summary
No edit summary
Line 36: Line 36:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{{GamesTab2SubNav|text=[[{{{Country}}}]]{{#if: {{{State|}}}|<nowiki> > </nowiki>[[{{{State}}}{{#ifeq: {{{Country}}}|United States||, {{{Country}}}}}|{{{State}}}]]}}{{#if: {{{City|}}}|<nowiki> > </nowiki>[[{{{City}}}{{#if: {{{State|}}}|, {{{State}}}}}{{#ifeq:{{{Country|}}}|United States||, {{{Country}}}}}|{{{City}}}]]}} > Ballgame }}  {{#set:Country={{{Country|}}}|State={{{State}}}}|City={{{City|}}}|Name={{{Name|}}}}}
</noinclude><includeonly>{{GamesTab2SubNav|[[{{{Country}}}]]{{#if: {{{State|}}}|<nowiki> > </nowiki>[[{{{State}}}{{#ifeq: {{{Country}}}|United States||, {{{Country}}}}}|{{{State}}}]]}}{{#if: {{{City|}}}|<nowiki> > </nowiki>[[{{{City}}}{{#if: {{{State|}}}|, {{{State}}}}}{{#ifeq:{{{Country|}}}|United States||, {{{Country}}}}}|{{{City}}}]]}} > Ballgame }}  {{#set:Country={{{Country|}}}|State={{{State}}}}|City={{{City|}}}|Name={{{Name|}}}|Reviewed={{{Reviewed|}}}}} {{Reviewed|{{{Reviewed|}}}|Ballgame}}
{| class="wikitable"
{|
! Name
| [[Name::{{{Name|}}}]]
|-
! Date of Game  {{#set:Date of Game={{{Date of Game|}}}|Type of Date={{{Type of Date|}}}}}
! Date of Game  {{#set:Date of Game={{{Date of Game|}}}|Type of Date={{{Type of Date|}}}}}
| {{Typed Date|{{{Date of Game|}}}|{{{Type of Date|}}}}} {{{Date Note|}}}
| {{Typed Date|{{{Date of Game|}}}|{{{Type of Date|}}}}} {{{Date Note|}}} {{#if: {{{Field|}}}
|-
{{!}}-
! Field
! Field
| class=nowrap | {{#if: {{{Field|}}} | <span class="a_bit_right float_right">{{#ifexist: {{{Field|}}} | | {{#formlink:form=Field|target=|link text=<i class="icon-plus-sign"></i>&nbsp;Add&nbsp;Field&nbsp;Page|Field[Name]={{{Field|}}}|Field[Modern Address]={{{Modern Address|}}}|Field[City]={{{City|}}}|Field[State]={{{State|}}}|Field[Country]={{{Country|}}}|popup}} }} </span> }} [[Field::{{{Field|}}}]]  
{{!}} class=nowrap {{!}} {{#ifexist: {{{Field|}}} | | <span class="a_bit_right float_right">{{#formlink:form=Field|target=|link text=<i class="icon-plus-sign"></i>&nbsp;Add&nbsp;Field&nbsp;Page|Field[Name]={{{Field|}}}|Field[Modern Address]={{{Modern Address|}}}|Field[City]={{{City|}}}|Field[State]={{{State|}}}|Field[Country]={{{Country|}}}|popup}} </span> [[Field::{{{Field|}}}]] }} {{#if: {{{Modern Address|}}} |  
{{#if: {{{Modern Address|}}} |  
{{!}}-
{{!}}-
! Modern Address
! Modern Address
{{!}} [[Modern Address::{{{Modern Address|}}}]] }}
{{!}} [[Modern Address::{{{Modern Address|}}}]] }} {{#if: {{{Home Team|}}}
|-
{{!}}-
! Home Team
! Home Team
| class=nowrap | {{#if: {{{Home Team|}}} | <span class="a_bit_right float_right">{{#ifexist: {{{Home Team|}}} | | {{#formlink:form=Club|target=|link text=<i class="icon-plus-sign"></i>&nbsp;Add&nbsp;Club&nbsp;Page|Club[Name]={{{Home Team|}}}|Club[Modern Address]={{{Modern Address|}}}}|Club[City]={{{City|}}}|Club[State]={{{State|}}}|Club[Country]={{{Country|}}}|popup}} }} </span> }} [[Home Team::{{{Home Team|}}}]]  
{{!}} class=nowrap {{!}}  {{#ifexist: {{{Home Team|}}} | | <span class="a_bit_right float_right">{{#formlink:form=Club|target=|link text=<i class="icon-plus-sign"></i>&nbsp;Add&nbsp;Club&nbsp;Page|Club[Name]={{{Home Team|}}}|Club[Modern Address]={{{Modern Address|}}}}|Club[City]={{{City|}}}|Club[State]={{{State|}}}|Club[Country]={{{Country|}}}|popup}} }} </span> [[Home Team::{{{Home Team|}}}]] }} {{#if: {{{Away Team|}}} |
|-
{{!}}-
! Away Team
! Away Team
| class=nowrap | {{#if: {{{Away Team|}}} | <span class="a_bit_right float_right">{{#ifexist: {{{Away Team|}}} | | {{#formlink:form=Club|target=|link text=<i class="icon-plus-sign"></i>&nbsp;Add&nbsp;Club&nbsp;Page|Club[Name]={{{Away Team|}}}|Club[City]={{{City|}}}|Club[State]={{{State|}}}|Club[Country]={{{Country|}}}|popup}} }} </span> }} [[Away Team::{{{Away Team|}}}]]  
{{!}} class=nowrap {{!}}  {{#ifexist: {{{Away Team|}}} | | <span class="a_bit_right float_right">{{#formlink:form=Club|target=|link text=<i class="icon-plus-sign"></i>&nbsp;Add&nbsp;Club&nbsp;Page|Club[Name]={{{Away Team|}}}|Club[City]={{{City|}}}|Club[State]={{{State|}}}|Club[Country]={{{Country|}}}|popup}} }} </span> [[Away Team::{{{Away Team|}}}]] }}
{{#if: {{{Home Team Score|}}} |
{{#if: {{{Home Team Score|}}} |
{{!}}-  
{{!}}-  
! Home Team Score
! Score
{{!}} [[Home Team Score::{{{Home Team Score|}}}]] }}
{{!}} [[Home Team Score::{{{Home Team Score|}}}]] {{#if: {{{Away Team Score|}}}|[[Away Team Score::{{{Away Team Score|}}}]] }} }} {{#if: {{{Innings|}}} |
{{#if: {{{Away Team Score|}}} |
{{!}}-
! Away Team Score
{{!}} [[Away Team Score::{{{Away Team Score|}}}]] }}  
{{#if: {{{Innings|}}} |
{{!}}-  
{{!}}-  
! Innings
! Innings
{{!}} [[Innings::{{{Innings|}}}]] [[Innings Note::{{{Innings Note|}}}]] }}  
{{!}} [[Innings::{{{Innings|}}}]] [[Innings Note::{{{Innings Note|}}}]] }} {{#if: {{{Number of Players|}}} |
{{#if: {{{Number of Players|}}} |
{{!}}-  
{{!}}-  
! Number of Players
! Number of Players
Line 77: Line 67:
|-
|-
! NY Rules
! NY Rules
| [[NY Rules::{{{NY Rules|}}}]]
| [[NY Rules::{{{NY Rules|}}}]] {{#if: {{{Baseball Tags|}}} |
|-
{{!}}-
! Tags
! Tags
| {{#arraymap:{{{Baseball Tags|}}}|,|x|[[Baseball Tags::x]]}}
{{!}} {{#arraymap:{{{Baseball Tags|}}}|,|x|[[Baseball Tags::x]]}} }} {{#if: {{{Description|}}} |  
{{#if: {{{Description|}}} |  
{{!}}-
{{!}}-
! Description
! Description
{{!}} [[Description::{{{Description|}}}]] }}
{{!}} [[Description::{{{Description|}}}]] }} {{#if: {{{Sources|}}} |
{{#if: {{{Sources|}}} |
{{!}}-  
{{!}}-  
! Sources
! Sources
{{!}} [[Sources::{{{Sources|}}}]] }}  
{{!}} [[Sources::{{{Sources|}}}]] }} {{#if: {{{Submitted by|}}} |
{{#if: {{{Reviewed|}}} |
{{!}}-
! Reviewed
{{!}} [[Reviewed::{{{Reviewed|}}}]] }}
{{#if: {{{Submitted by|}}} |
{{!}}-  
{{!}}-  
! Submitted by
! Submitted by
{{!}} [[Submitted by::{{{Submitted by|}}}]] }}
{{!}} [[Submitted by::{{{Submitted by|}}}]] }} {{#if: {{{First in Location|}}} |
{{#if: {{{First in Location|}}} |
{{!}}-  
{{!}}-  
! First in Location
! First in Location
{{!}} [[First in Location::{{{First in Location|}}}]] }}
{{!}} [[First in Location::{{{First in Location|}}}]] }} {{#if: {{{First in Location Note|}}} |
{{#if: {{{First in Location Note|}}} |
{{!}}-  
{{!}}-  
! First in Location Note
! First in Location Note
{{!}} [[First in Location Note::{{{First in Location Note|}}}]] }}
{{!}} [[First in Location Note::{{{First in Location Note|}}}]] }} {{#if: {{{Players Locality|}}} |
{{#if: {{{Players Locality|}}} |
{{!}}-  
{{!}}-  
! Players Locality
! Players Locality
{{!}} [[Players Locality::{{{Players Locality|}}}]] }}
{{!}} [[Players Locality::{{{Players Locality|}}}]] }} {{#if: {{{Entry Origin|}}} |
{{#if: {{{Entry Origin|}}} |
{{!}}-  
{{!}}-  
! Entry Origin
! Entry Origin
{{!}} [[Entry Origin::{{{Entry Origin|}}}]] }}
{{!}} [[Entry Origin::{{{Entry Origin|}}}]] }} {{#if: {{{Entry Origin Url|}}} |
{{#if: {{{Entry Origin Url|}}} |
{{!}}-  
{{!}}-  
! Entry Origin Url
! Entry Origin Url

Revision as of 12:26, 9 October 2012

This is the "Ballgame" template. It should be called in the following format:

{{Ballgame
|Name=
|Date of Game=
|Type of Date=Day, Month, Year, Circa, Decade
|Date Note=
|Field=
|Modern Address=
|City=
|State=
|Country=
|Coordinates=
|Home Team=
|Away Team=
|Home Score=
|Away Score=
|Innings=
|Innings Note=
|Number of Players=
|Game=
|NY Rules=
|Ballgame Tags=
|Description=
|Sources=
|Reviewed=
|Submitted by=
|First in Location=
|First in Location Note=
|Players Locality=
|Entry Origin=
|Entry Origin Url=
}}

Edit the page to see the template text.