Difference between revisions of "Form:Project"

From Hollywood in Pixels Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
{{{info|page name=<Project[Title]> {{#if:<Project[Original Release Year]>|(<Project[Original Release Year]>)}} }}}
 
{{{info|page name=<Project[Title]> {{#if:<Project[Original Release Year]>|(<Project[Original Release Year]>)}} }}}
 
{{{for template|Project}}}
 
{{{for template|Project}}}
 +
{{#vardefine: year|{{#expr: {{CURRENTYEAR}} + 2}}}}
 
<p class="small">YEAR:</p>
 
<p class="small">YEAR:</p>
 
{{{field
 
{{{field
 
  |Original Release Year
 
  |Original Release Year
 
  |input type=dropdown
 
  |input type=dropdown
  |values={{CURRENTYEAR}}
+
  |values={{#arraydefine: years|{{#while:
 +
      |{{#ifexpr: {{#var: year}} > 1994 | true }}
 +
      |{{#var: year}},{{#vardefine: year | {{#expr: {{#var: year}} - 1 }} }}
 +
    }}
 +
    |,
 +
    |unique, print=list
 +
  }}
 
  |default={{CURRENTYEAR}}
 
  |default={{CURRENTYEAR}}
 
  |mandatory
 
  |mandatory
 
}}}
 
}}}
{{CURRENTYEAR}}
+
 
 
{{{end template}}}
 
{{{end template}}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>

Revision as of 16:38, September 7, 2021