Difference between revisions of "Form:Project"
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={{ | + | |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 | ||
}}} | }}} | ||
− | + | ||
{{{end template}}} | {{{end template}}} | ||
</includeonly><noinclude> | </includeonly><noinclude> |