Difference between revisions of "Template:AboutPerformance"

From MansonWiki, the Marilyn Manson encyclopedia
Jump to: navigation, search
m
 
(109 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The performance on '''{{#switch: {{{month|}}}
+
<div style="display: none;">
|  1 = January |  2 = February |  3 = March
+
|  4 = April  |  5 = May      |  6 = June
+
|  7 = July    |  8 = August  |  9 = September
+
| 10 = October | 11 = November | 12 = December
+
| ''unknown month''
+
}} {{{day}}}, {{{year}}}''' took place at {{{venue}}} in {{{city}}}, {{{country|}}} {{#if: {{{state}}} | {{#switch: {{{state|}}}
+
| AL = Alabama      | AK = Alaska      | AZ = Arizona        | AR = Arkansas      | CA = California
+
| CO = Colorado      | CT = Connecticut | DE = Delaware      | FL = Florida      | GA = Georgia
+
| HI = Hawaii        | ID = Idaho      | IL = Illinois      | IN = Indiana      | IA = Iowa
+
| KS = Kansas        | KY = Kentucky    | LA = Louisiana      | ME = Maine        | MD = Maryland
+
| MA = Massachusetts | MI = Michigan    | MN = Minnesota      | MS = Mississippi  | MO = Missouri
+
| MT = Montana      | NE = Nebraska    | NV = Nevada        | NH = New Hampshire | NJ = New Jersey
+
| NM = New Mexico    | NY = New York    | NC = North Carolina | ND = North Dakota  | OH = Ohio
+
| OK = Oklahoma      | OR = Oregon      | PA = Pennsylvania  | RI = Rhode Island  | SC = South Carolina
+
| SD = South Dakota  | TN = Tennessee  | TX = Texas          | UT = Utah          | VT = Vermont
+
| VA = Virginia      | WA = Washington  | WV = West Virginia  | WI = Wisconsin    | WY = Wyoming
+
| ''unknown state''
+
}} }}.
+
  
[[Category:Templates]]
+
{{#if: {{{day|}}} {{{month|}}} {{{year|}}} | }}
 +
 
 +
{{#if: {{{date|}}}
 +
| {{#vardefine: day  | <!-- JUST TRIM LEAD ZERO -->
 +
    {{#ifeq: {{#sub: {{#explode: {{{date|}}}|/|2}} | 0 | 1}} | 0
 +
      | {{#sub: {{#explode: {{{date|}}}|/|2}} | 1}}
 +
      | {{#explode: {{{date|}}}|/|2}}
 +
    }}   
 +
  }}
 +
  {{#vardefine: month | {{#explode: {{{date|}}}|/|1}} }}
 +
  {{#vardefine: year  | {{#explode: {{{date|}}}|/|0}} }}
 +
| {{#vardefine: day  | {{{day|}}}}}
 +
  {{#vardefine: month | {{{month|}}}}}
 +
  {{#vardefine: year  | {{{year|}}}}}
 +
}}
 +
 
 +
{{#vardefine:day | {{#var: day}} }}
 +
{{#vardefine:month | {{#switch: {{#var: month}} | 1 = January | 2 = February | 3 = March | 4 = April | 5 = May | 6 = June | 7 = July | 8 = August | 9 = September | 10 = October | 11 = November | 12 = December | ''unknown month {{#var: month}}'' }} }}
 +
{{#vardefine:year | {{#var: year}} }}
 +
{{#vardefine:venue | {{{venue}}} }}
 +
{{#vardefine:city | {{{city}}} }}
 +
{{#vardefine:state | {{{state|}}} }}
 +
 
 +
{{#if: {{{unit|}}} |
 +
  {{#vardefine:unit_COUNTRY | {{#sub:{{{unit|}}} | -2}} }}
 +
  {{#vardefine:unit_UNIT | {{#sub:{{{unit|}}} | 0 | 2}} }}
 +
  {{#vardefine:country_DELEGATE | {{#var:unit_COUNTRY}} }}
 +
  {{#vardefine:state | {{UnitName|{{{unit|}}}}}}}
 +
  {{#vardefine:country | {{CountryName|{{#var:country_DELEGATE}}}}}}
 +
}}
 +
 
 +
{{#if: {{{country|}}} |
 +
  {{#vardefine:country | {{CountryName | {{{country}}} }} }}
 +
}}
 +
{ { Flag | { { { country | { { # v a r : c o u n t r y _ D E L E G A T E } } } } } } }
 +
</div><includeonly><span class="x-debug">The performance on '''{{#var:month}} {{#var:day}}, {{#var:year}}'''{{#if: {{{alias|}}}|&#32;(also known as {{{alias}}})}} took place at {{#var:venue}} in {{#var:city}}, {{#if: {{#var:state}} | {{#var:state}},}} {{#var:country}}{{#if: {{{suffix|}}} | &#32;{{{suffix|}}} | }}.</span></includeonly><noinclude>Sample usage:<br/><code><nowiki>{{AboutPerformance | day = 1 | month = 6 | year = 1990 | venue = the Squeeze | city = Fort Lauderdale | unit = FL.us}}</nowiki><br/><nowiki>{{AboutPerformance | day = 19 | month = 12 | year = 1998 | venue = Le Zenith | city = Paris | country = fr}}</nowiki><br/><nowiki>{{AboutPerformance | date = 2014/08/06 | venue = Ronda TivoliVredenburg | city = Utrecht | country = nl}}</nowiki></code></noinclude>

Latest revision as of 22:46, 21 March 2016








{ { Flag | { { { country | { { # v a r : c o u n t r y _ D E L E G A T E } } } } } } }

Sample usage:
{{AboutPerformance | day = 1 | month = 6 | year = 1990 | venue = the Squeeze | city = Fort Lauderdale | unit = FL.us}}
{{AboutPerformance | day = 19 | month = 12 | year = 1998 | venue = Le Zenith | city = Paris | country = fr}}
{{AboutPerformance | date = 2014/08/06 | venue = Ronda TivoliVredenburg | city = Utrecht | country = nl}}