Template:Ballgame: Difference between revisions

From Protoball
Jump to navigation Jump to search
No edit summary
(just white-space to trigger reprocessed)
 
(62 intermediate revisions by the same user not shown)
Line 5: Line 5:
{{Ballgame
{{Ballgame
|Name=
|Name=
|Date of Game=
|Date=
|Type of Date=Day, Month, Year, Circa, Decade
|Type of Date=Day, Month, Year, Circa, Decade
|Date Note=
|Date Note=
Line 11: Line 11:
|Modern Address=
|Modern Address=
|City=
|City=
|Borough=
|State=
|State=
|Country=
|Country=
Line 18: Line 19:
|Home Score=
|Home Score=
|Away Score=
|Away Score=
|Game Number=
|Innings=
|Innings=
|Innings Note=
|Innings Note=
|Number of Players=
|Number of Players=
|Game=
|Game Official=
|NY Rules=
|NY Rules=
|Ballgame Tags=
|Ballgame Tags=
|Description=
|Description=
|Sources=
|Sources=
|Source Image=
|Source Image 2=
|Source Image 3=
|Source Image 4=
|Source Image 5=
|Has Source On Hand=
|Comment=
|Query=
|Reviewed=
|Reviewed=
|Submitted by=
|Submitted by=
|Submission Note=
|Entered by=
|First in Location=
|First in Location=
|First in Location Note=
|First in Location Note=
Line 34: Line 46:
|Entry Origin Url=
|Entry Origin Url=
|Championship=
|Championship=
|Type=
|Society=
|Duplicate=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{{Ballgame Box}}{{#set:Country={{{Country|}}}|State={{{State|}}}|City={{{City|}}}|Name={{{Name|}}}|Reviewed={{{Reviewed|}}}|Championship={{{Championship|}}}}} {{Reviewed|{{{Reviewed|}}}|Ballgame}}
</noinclude><includeonly>{{#if:{{{Championship|}}}|{{#default_form:Championship}}|{{#default_form:Ballgame}}}}{{Ballgame Box|City={{{City|}}}|Borough={{{Borough|}}}|State={{{State|}}}|Country={{{Country|}}}}}{{#set:Type=Ballgame|Country={{{Country|}}}|State={{{State|}}}|Borough={{{Borough|}}}|City={{{City|}}}|Name={{{Name|}}}|Coordinates={{{Coordinates|}}}|Reviewed={{{Reviewed|}}}|Championship={{{Championship|}}}|Duplicate={{{Duplicate|}}}}} {{Reviewed|{{{Reviewed|}}}|Ballgame}}
{|
{| class="stats"
! Date of Game  {{#set:Date of Game={{{Date of Game|}}}|Type of Date={{{Type of Date|}}}}}
! Date of Game  {{#set:Date={{{Date|}}}|Type of Date={{{Type of Date|}}}}}
| {{Typed Date|{{{Date of Game|}}}|{{{Type of Date|}}}}} {{{Date Note|}}}
| {{Typed Date|{{{Date|}}}|{{{Type of Date|}}}}} {{{Date Note|}}}
|-
|-
! Location
! Location
| {{#if: {{{City|}}}|[[{{{City}}}{{#if: {{{State|}}}|, {{{State}}}}}{{#ifeq:{{{Country|}}}|United States||, {{{Country}}}}}|{{{City}}}]],}} {{#if: {{{State|}}}|[[{{{State}}}{{#ifeq: {{{Country}}}|United States||, {{{Country}}}}}|{{{State}}}]],}} [[{{{Country}}}]]
| {{#if: {{{City|}}}|[[{{{City}}}{{#if: {{{State|}}}|, {{{State}}}}}{{#ifeq:{{{Country|}}}|United States||, {{{Country}}}}}|{{{City}}}]],}} {{#if: {{{Borough|}}}|[[{{{Borough|}}}]],}} {{#if: {{{State|}}}|[[{{{State}}}{{#ifeq: {{{Country}}}|United States||, {{{Country}}}}}|{{{State}}}]],}} [[{{{Country}}}]]
|-
|- {{#if: {{{Modern Address|}}}||class=hidden}}
! {{#if: {{{Modern Address|}}} | Modern Address}}
! Modern Address
| [[Modern Address::{{{Modern Address|}}}]]
| [[Modern Address::{{{Modern Address|}}}]]
|-
|- {{#if: {{{Field|}}}||class=hidden}}
! {{#if: {{{Field|}}} | 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|}}}]]
| class=nowrap | {{#ifexist: {{{Field|}}} | | <span class="a_bit_right float_right new">{{#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: {{{Home Team|}}}||class=hidden}}
! {{#if: {{{Home Team|}}} | 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|}}}]]
| class=nowrap |  {{#ifexist: {{{Home Team|}}} | | <span class="a_bit_right float_right new">{{#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|}}}||class=hidden}}
! {{#if: {{{Away Team|}}} | 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|}}}]]
{{!}} class=nowrap {{!}}  {{#ifexist: {{{Away Team|}}} | | <span class="a_bit_right float_right new">{{#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 Score|}}}||class=hidden}}
! {{#if: {{{Home Team Score|}}} | Score }}
! Score
| [[Home Team Score::{{{Home Team Score|}}}]] [[Away Team Score::{{{Away Team Score|}}}]]
| [[Home Score::{{{Home Score|}}}]] {{#if: {{{Away Score|}}}|-}} [[Away Score::{{{Away Score|}}}]]
|-  
|- {{#if: {{{Game Number|}}}||class=hidden}}
! {{#if: {{{Innings|}}} | Innings }}
! Game Number
| [[Game Number::{{{Game Number|}}}]]
|- {{#if: {{{Innings|}}}|{{#ifeq:{{{Innings|}}}|9|class=hidden}}|class=hidden}}
! Innings
| [[Innings::{{{Innings|}}}]] [[Innings Note::{{{Innings Note|}}}]]
| [[Innings::{{{Innings|}}}]] [[Innings Note::{{{Innings Note|}}}]]
|-  
|- {{#if: {{{Number of Players|}}}||class=hidden}}
! {{#if: {{{Number of Players|}}} | Number of Players }}
! Number of Players
| [[Number of Players::{{{Number of Players|}}}]]
| [[Number of Players::{{{Number of Players|}}}]]
|-
|- {{#if: {{{Game Official|}}}||class=hidden}}
! {{#if: {{{Game|}}} | Game }}
! Game Officials
| [[Game::{{{Game|}}}]]
| [[Game Official::{{{Game Official|}}}]]
|-
|- {{#if: {{{NY Rules|}}}|{{#ifeq:{{{NY Rules|}}}|Yes|class=hidden}}|class=hidden}}
! {{#if: {{{NY Rules|}}} | NY Rules }}
! NY Rules
| [[NY Rules::{{{NY Rules|}}}]]
| [[NY Rules::{{{NY Rules|}}}]]
|-
|- {{#if: {{{Baseball Tags|}}}||class=hidden}}
! {{#if: {{{Baseball Tags|}}} | Tags }}
! Tags
| {{#arraymap:{{{Baseball Tags|}}}|,|x|[[Baseball Tags::x]]}}
| {{#arraymap:{{{Baseball Tags|}}}|,|x|[[Baseball Tags::x]]}}
|-
|- {{#if: {{{Description|}}}||class=hidden}}
! {{#if: {{{Description|}}} | Description }}
! Description
| [[Description::{{{Description|}}}]]
| [[Description::{{{Description|}}}]]
|-  
|- {{#if: {{{Sources|}}}||class=hidden}}
! {{#if: {{{Sources|}}} | Sources }}
! Sources
| [[Sources::{{{Sources|}}}]]
| [[Sources::{{{Sources|}}}]]
|-  
|- {{#if: {{{Source Image|}}} || class=hidden }}
! {{#if: {{{Submitted by|}}} | Submitted by }}
! Source Image
| [[Submitted by::{{{Submitted by|}}}]]
| [[Image:{{{Source Image|}}}|left|thumb]]
|-  
|- {{#if: {{{Source Image 2|}}} || class=hidden }}
! {{#if: {{{First in Location|}}} | First in Location }}
! Source Image
| [[First in Location::{{{First in Location|}}}]]
| [[Image:{{{Source Image 2|}}}|left|thumb]]
|-  
|- {{#if: {{{Source Image 3|}}} || class=hidden }}
! {{#if: {{{First in Location Note|}}} | First in Location Note }}
! Source Image
| [[First in Location Note::{{{First in Location Note|}}}]]
| [[Image:{{{Source Image 3|}}}|left|thumb]]
|-  
|- {{#if: {{{Source Image 4|}}} || class=hidden }}
! {{#if: {{{Players Locality|}}} | Players Locality }}
! Source Image
| [[Image:{{{Source Image 4|}}}|left|thumb]]
|- {{#if: {{{Source Image 5|}}} || class=hidden }}
! Source Image
| [[Image:{{{Source Image 5|}}}|left|thumb]]
|- {{#ifeq: {{{Has Source On Hand|}}}|Yes||class=hidden}}
! Has Source On Hand
| [[Has Source On Hand::{{{Has Source On Hand|}}}]]
|-
! Comment
| [[Comment::{{{Comment|}}}]] {{CommentPrompt|{{{Comment|}}}}}
|-
! Query
| [[Query::{{{Query|}}}]] {{QueryPrompt|{{{Query|}}}}}
|- {{#if: {{{Submitted by|}}}||class=hidden}}
! Found by
| {{#arraymap:{{{Submitted by|}}}|,|x|[[Submitted by::x]]}}
|- {{#if: {{{Submission Note|}}} || class=hidden }}
! Submission Note
| [[Submission Note::{{{Submission Note|}}}]]
|- {{#if: {{{Entered by|}}} || class="hidden" }}
! Entered by
| {{#set:Entered by={{{Entered by|}}}}}{{#if:{{{Entered by|}}}|{{#ifexist:{{{Entered by|}}}|[[{{{Entered by|}}}]]|{{{Entered by|}}}}}}}
|- {{#if: {{{First in Location|}}}||class=hidden}}
! First in Location
| [[First in Location::{{{First in Location|}}}]] [[First in Location Note::{{{First in Location Note|}}}]]
|- {{#if: {{{Players Locality|}}}||class=hidden}}
! Players Locality
| [[Players Locality::{{{Players Locality|}}}]]
| [[Players Locality::{{{Players Locality|}}}]]
|-  
|- {{#if: {{{Entry Origin|}}}||class=hidden}}
! {{#if: {{{Entry Origin|}}} | Entry Origin }}
! Entry Origin
| [[Entry Origin::{{{Entry Origin|}}}]]
| [[Entry Origin::{{{Entry Origin|}}}]]
|-  
|- {{#if: {{{Entry Origin Url|}}}||class=hidden}}
! {{#if: {{{Entry Origin Url|}}} | Entry Origin Url }}
! Entry Origin Url
| [[Entry Origin::{{{Entry Origin Url|}}}]]
| [[Entry Origin Url::{{{Entry Origin Url|}}}]]
|- {{#if: {{{Society|}}}||class=hidden}}
! Local-Origins Study Groups
| {{#arraymap:{{{Society|}}}|,|x|[[Society::x]]}}
|}
|}
{{Related Essays}}
{{Related Essays}}
{{Discussion}}
{{Discussion}}


[[Category:Ballgames]]
[[Category:Ballgames]][[Category:Pre-pro]]
{{#if:{{{First in Location|}}}|
{{#if:{{{First in Location|}}}|
{{#ifeq:{{#ask:[[Category:Countries]][[{{{First in Location}}}]]|format=count}}|1|[[Category:First in {{{First in Location}}}]]}}
{{#ifeq:{{#ask:[[Category:Countries]][[{{{First in Location}}}]]|format=count}}|1|[[Category:First in {{{First in Location}}}]][[Category: First in a Country]]}}
{{#ifeq:{{#ask:[[Category:States]][[{{{First in Location}}}]]|format=count}}|1|[[Category:First in {{{First in Location}}}]][[Category:First in a {{{Country}}} State]]}}
{{#ifeq:{{#ask:[[Category:States]][[{{{First in Location}}}]]|format=count}}|1|[[Category:First in {{{First in Location}}}]][[Category:First in a {{{Country}}} State]]}}
{{#ifeq:{{#ask:[[Category:Cities]][[{{{First in Location}}}]]|format=count}}|1|[[Category:First in {{{First in Location}}}]][[Category:First in a {{#if:{{{State|}}}|{{{State}}}{{#ifeq:{{{Country|}}}|United States||, {{{Country}}}}}|{{{Country}}}}} City]]}}
{{#ifeq:{{#ask:[[Category:Boroughs]][[{{{First in Location}}}]]|format=count}}|1|[[Category:First in {{{First in Location}}}]][[Category:First in a Borough]]}}
}}
{{#ifeq:{{#ask:[[Category:Cities]][[{{{First in Location}}}]]|format=count}}|1|[[Category:First in {{{First in Location}}}]][[Category:First in a {{#if:{{{State|}}}|{{{State}}}{{#ifeq:{{{Country|}}}|United States||, {{{Country}}}}}|{{{Country}}}}} City]]{{#if:{{{Borough|}}}|[[Category:First in a {{{Borough}}} City]]}}}}
}} {{#if:{{{Championship|}}}|[[Category:Championship]]}}
</includeonly>
</includeonly>

Latest revision as of 04:28, 17 July 2024

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

{{Ballgame
|Name=
|Date=
|Type of Date=Day, Month, Year, Circa, Decade
|Date Note=
|Field=
|Modern Address=
|City=
|Borough=
|State=
|Country=
|Coordinates=
|Home Team=
|Away Team=
|Home Score=
|Away Score=
|Game Number=
|Innings=
|Innings Note=
|Number of Players=
|Game Official=
|NY Rules=
|Ballgame Tags=
|Description=
|Sources=
|Source Image=
|Source Image 2=
|Source Image 3=
|Source Image 4=
|Source Image 5=
|Has Source On Hand=
|Comment=
|Query=
|Reviewed=
|Submitted by=
|Submission Note=
|Entered by=
|First in Location=
|First in Location Note=
|Players Locality=
|Entry Origin=
|Entry Origin Url=
|Championship=
|Type=
|Society=
|Duplicate=
}}

Edit the page to see the template text.