FANDOM


m (Vandraedha moved page Template:Event to Template:Infobox-event)
Line 1: Line 1:
 
<onlyinclude>{{Infobox
 
<onlyinclude>{{Infobox
|name = Event
+
|name = infobox-event
 
|bodystyle = background: #BCDA9C;
 
|bodystyle = background: #BCDA9C;
 
|title = {{{title|{{FULLPAGENAME}}}}}
 
|title = {{{title|{{FULLPAGENAME}}}}}
Line 25: Line 25:
 
|header1 = Information<br />
 
|header1 = Information<br />
   
{{#if:{{{Caption|}}}{{{Cash|}}}{{{Coconut harvest|}}}{{{Coconuts|}}}{{{Coin harvest|}}}{{{Coin Harvest|}}}{{{Coins|}}}{{{Cost|}}}{{{End|}}}{{{end|}}}{{{Harvest|}}}{{{Image|}}}{{{Jade|}}}{{{Mastery Sign|}}}{{{Material|}}}{{{Resource|}}}{{{Sell|}}}{{{Start|}}}{{{start|}}}{{{Transformedfrom|}}}{{{Transformsinto|}}}|<span style="color: red; background: yellow;"><strong><nowiki>Warning!</nowiki> This template is using obsolete parameters! This may cause this or other pages to display inappropriately (or not at all). See the template page {{t|Event}} for more information.</strong></span>[[Category:out of date help]]}}
+
{{#if:{{{Caption|}}}{{{Cash|}}}{{{Coconut harvest|}}}{{{Coconuts|}}}{{{Coin harvest|}}}{{{Coin Harvest|}}}{{{Coins|}}}{{{Cost|}}}{{{dateend|}}}{{{datestart|}}}{{{End|}}}{{{end|}}}{{{Harvest|}}}{{{Image|}}}{{{Jade|}}}{{{Mastery Sign|}}}{{{Material|}}}{{{Resource|}}}{{{Sell|}}}{{{Start|}}}{{{start|}}}{{{Transformedfrom|}}}{{{Transformsinto|}}}|<span style="color: red; background: yellow;"><strong><nowiki>Warning!</nowiki> This template is using obsolete parameters! This may cause this or other pages to display inappropriately (or not at all). See the template page {{t|infobox-event}} for more information.</strong></span>[[Category:out of date help]]}}
   
 
|label1 =
 
|label1 =
Line 36: Line 36:
 
|header3 =
 
|header3 =
 
|label3 = Start Date:
 
|label3 = Start Date:
|data3 = {{#if: {{{datestart|}}} |{{#ifeq: {{#ifexpr: {{{datestart}}} | true|true}} | true | {{date|{{{datestart}}}}} | {{{datestart}}} }} |unknown}}
+
|data3 = {{#if: {{{first_available|}}} |{{#ifeq: {{#ifexpr: {{{first_available}}} | true|true}} | true | {{date|{{{first_available}}}}} | {{{first_available}}} }} |unknown}}
   
 
|header4 =
 
|header4 =
 
|label4 = End Date:
 
|label4 = End Date:
|data4 = {{#if: {{{dateend|}}} |{{#ifeq: {{#ifexpr: {{{dateend}}} | true|true}} | true | {{date|{{{dateend}}}}} | {{{dateend}}} }} |unknown}}
+
|data4 = {{#if: {{{last_available|}}} | {{#ifeq: {{#ifexpr: {{{last_available}}} | true | true}} | true | {{date|{{{last_available}}}}} | {{{last_available}}} }} | available}}
   
 
|header5 = Items released during this event
 
|header5 = Items released during this event
Line 47: Line 47:
   
 
|label6 = Animals
 
|label6 = Animals
|data6 = {{{Animals|}}}
+
|data6 = {{{animals|{{{Animals|0}}}}}}
   
 
|label7 = Buildings
 
|label7 = Buildings
|data7 = {{{Buildings|}}}
+
|data7 = {{{buildings|{{{Buildings|0}}}}}}
   
|label8 = Seeds
+
|label8 = Decorations
|data8 = {{{Seeds|}}}
+
|data8 = {{{decorations|{{{Decorations|0}}}}}}
   
|label9 = Decorations
+
|label9 = Seeds
|data9 = {{{Decorations|}}}
+
|data9 = {{{seeds|{{{Seeds|0}}}}}}
   
 
|label10 = Trees
 
|label10 = Trees
|data10 = {{{Trees|}}}
+
|data10 = {{{trees|{{{Trees|0}}}}}}
   
 
|header11 =
 
|header11 =
 
|label11 = Other
 
|label11 = Other
|data11 = {{{Other|}}}
+
|data11 = {{{other|{{{Other|0}}}}}}
   
 
|header12 =
 
|header12 =
 
|label12 = Total
 
|label12 = Total
|data12 = {{#expr:{{{Animals|}}}+{{{Buildings|}}}+{{{Decorations|}}}+{{{Seeds|}}}+{{{Trees|}}}+{{{Other|}}}+0}}
+
|data12 = {{#expr:{{{animals|{{{Animals|0}}}}}}+{{{buildings|{{{Buildings|0}}}}}}+{{{decorations|{{{Decorations|0}}}}}}+{{{seeds|{{{Seeds|0}}}}}}+{{{trees|{{{Trees|0}}}}}}+{{{other|{{{Other|0}}}}}}
   
 
|header13 =
 
|header13 =
 
|label13 = Description
 
|label13 = Description
|data13 = {{{Description|}}}
+
|data13 = {{{description|{{{Description|}}}}}}
   
 
|header14 ={{#if:{{{Last event|}}}{{{This event|}}}{{{Next event|}}}|[[Events]]}}
 
|header14 ={{#if:{{{Last event|}}}{{{This event|}}}{{{Next event|}}}|[[Events]]}}
Line 92: Line 92:
 
}}
 
}}
 
[[Category:Event]]
 
[[Category:Event]]
<includeonly>[[Category:Event {{#if: {{{dateend|}}}|{{#ifeq: {{#ifexpr: {{{dateend}}} | true|true}} | true | {{#ifexpr: {{{dateend}}} < {{CURRENTYEAR}}{{CURRENTMONTH}}{{CURRENTDAY2}} | no longer available|}} |}}|}}]]
+
<includeonly>[[Category:Event {{#if: {{{last_available|}}}|{{#ifeq: {{#ifexpr: {{{last_available}}} | true|true}} | true | {{#ifexpr: {{{last_available}}} < {{CURRENTYEAR}}{{CURRENTMONTH}}{{CURRENTDAY2}} | no longer available|}} |}}|}}]]
[[Category:Events {{#if: {{{datestart|}}}| by start date{{!}} {{{datestart}}}{{{name|{{PAGENAME}}}}}| missing start date}}]]
+
[[Category:Events {{#if: {{{first_available|}}}| by start date{{!}} {{{first_available}}}{{{name|{{PAGENAME}}}}}| missing start date}}]]
 
</includeonly></onlyinclude><noinclude>Use the following code:
 
</includeonly></onlyinclude><noinclude>Use the following code:
<pre><nowiki>{{Event
+
<pre><nowiki>{{infobox-event
| datestart =<!-- Use the format YYYYMMDD -->
+
| first_available =<!-- Use the format YYYYMMDD -->
| dateend =<!-- Use the format YYYYMMDD -->
+
| last_available =<!-- Use the format YYYYMMDD -->
 
| Last event =
 
| Last event =
 
| This event =
 
| This event =

Revision as of 11:03, July 21, 2013

{{Infobox |name = infobox-event |bodystyle = background: #BCDA9C; |title = Template:Infobox-event |titlestyle = |above = |abovestyle =

|imagestyle = background:#BED6A5; border: .1em solid #629C5F; |captionstyle =

|image = NoImage
Upload File:Infobox-event-icon.png

—Image © Zynga

|caption = |image2 = |caption2 =

|headerstyle = background: #8CBC77; border: .1em solid #629C5F; |labelstyle = background: #8CBC77; border: .1em solid #629C5F; text-align: right; |datastyle = background: #BCDA9C; border: .1em solid #629C5F;

|header1 = Information


|label1 = |data1 =

|header2 = |label2 = |data2 =

|header3 = |label3 = Start Date: |data3 = unknown

|header4 = |label4 = End Date: |data4 = available

|header5 = Items released during this event |label5 = |data5 =

|label6 = Animals |data6 = 0

|label7 = Buildings |data7 = 0

|label8 = Decorations |data8 = 0

|label9 = Seeds |data9 = 0

|label10 = Trees |data10 = 0

|header11 = |label11 = Other |data11 = 0

|header12 = |label12 = Total |data12 = 0 Use the following code:

{{infobox-event
| first_available      =<!-- Use the format YYYYMMDD -->
| last_available        =<!-- Use the format YYYYMMDD -->
| Last event     = 
| This event     = 
| Next event     = 
| Animals        =
| Buildings      =
| Decorations    =
| Seeds          =
| Trees          =
| Other          =
| Description    =
}}
Community content is available under CC-BY-SA unless otherwise noted.