Template:FileMngmnt: Difference between revisions
(by SublimeText.Mediawiker) |
(by SublimeText.Mediawiker) |
||
| (36 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<tr>{{#switch:{{{field|}}}|FileHaveAcceptLetter=|FileHaveRetreatBudgCost=|#default= | <tr {{{extrarowparam|}}}>{{#switch:{{{field|}}} | ||
<th> | |FileHaveAcceptLetter= | ||
|FileHaveRetreatBudgCost= | |||
|FileRecomOne= | |||
|FileRecomTwo= | |||
|#default= | |||
<th>{{#switch:{{{checkboxvalue|}}} | |||
|Yes | |Yes | ||
|true=<span style="color: green;">✓</span> | |true=[[{{{checkbox|}}}::{{{checkboxvalue|}}}| ]]<span style="color: green;">✓</span> | ||
|#default=<span style="color: red; font-weight: bold;">X</span> | |#default={{#if: {{#ask:[[Category: Application Files]] [[fieldtofill::{{{field|}}}]] [[applicationpage::{{{applicationpage|}}}]] OR [[Category: Application Files]] [[Category:{{PAGENAME}}]] [[filetype::{{{filetype|}}}]] }} | ||
| [[{{{checkbox|}}}::Yes| ]]<span style="color: green;">✓</span> | |||
| <span style="color: red; font-weight: bold;">X</span> | |||
}} | |||
}} | }} | ||
</th>}} | </th> }} | ||
< | <th>{{{label|}}} | ||
</ | </th> | ||
<td class="ellipsis" style="font-size: .8em; vertical-align: middle;">{{#if: {{{fieldvalue|}}} | <td class="ellipsis" style="font-size: .8em; vertical-align: middle; {{#ifeq: {{{label|}}} | File: | max-width: 300px;}}">{{#if: {{{fieldvalue|}}} | ||
| [[{{{field|}}}::{{{fieldvalue|}}}| ]][[Media:{{FileCheck|{{{fieldvalue|}}}}}|{{{fieldvalue|}}}]] | | [[{{{field|}}}::{{{fieldvalue|}}}| ]][[Media:{{FileCheck|{{{fieldvalue|}}}}}|{{{fieldvalue|}}}]] | ||
| | | {{#ask:[[Category: Application Files]][[fieldtofill::{{{field|}}}]][[applicationpage::{{{applicationpage|}}}]] | ||
|?fieldtofill | |||
|link=none | |||
|limit=1 | |||
|format=template | |||
|template=FileMgmtDisplay | |||
}} | |||
}} | }} | ||
</td> | </td> | ||
<td | <td class="black-links">{{#if: {{{fieldvalue|}}} | ||
| {{#if: {{#show: File:{{FileCheck|{{{fieldvalue|}}}}} |?filetype}} | | {{#if: {{#show: File:{{FileCheck|{{{fieldvalue|}}}}} |?filetype}} | ||
| {{#formlink:form=Documents | | {{#formlink:form=Documents | ||
| Line 24: | Line 38: | ||
| {{#autoedit:form=Documents | | {{#autoedit:form=Documents | ||
|target=File:{{FileCheck|{{{fieldvalue|}}}}} | |target=File:{{FileCheck|{{{fieldvalue|}}}}} | ||
|link text=< | |link text=<span style="color: red; font-weight: bold;">Click me!</span> | ||
|link type=link | |link type=link | ||
|summary=Added metadata to file page. | |summary=Added metadata to file page. | ||
|tooltip=Add metadata to file page | |tooltip=Add metadata to file page | ||
|query string=Filepage[filetype]={{{filetype|}}}&Filepage[firstname]={{{firstname|}}}&Filepage[lastname]={{{lastname|}}}&Filepage[submissionyear]={{{submissionyear|}}}&Filepage[applicant]={{{firstname|}}} {{{lastname|}}}&Filepage[filesubmitted]={{{submissiondate|}}}&Filepage[applicationpage]={{{applicationpage|}}}&Filepage[fieldtofill]={{{field|}}}&Filepage[boxtocheck]={{{checkbox|}}} | |query string=Filepage[filetype]={{{filetype|}}}&Filepage[firstname]={{{firstname|}}}&Filepage[lastname]={{{lastname|}}}&Filepage[submissionyear]={{{submissionyear|}}}&Filepage[applicant]={{{firstname|}}} {{{lastname|}}}&Filepage[filesubmitted]={{{submissiondate|}}}&Filepage[applicationpage]={{{applicationpage|}}}&Filepage[fieldtofill]={{{field|}}}&Filepage[boxtocheck]={{{checkbox|}}} | ||
}} | }} | ||
}} | }} | ||
| Line 37: | Line 50: | ||
|link=none | |link=none | ||
|format=template | |format=template | ||
|template= | |template=EditFileLink | ||
|default={{#formlink:form=Documents | |default={{#formlink:form=Documents | ||
|link text=<i class="fas fa-cloud-upload-alt fa-fw"></i> | |link text=<i class="fas fa-cloud-upload-alt fa-fw"></i> Upload File | ||
|link type=link | |link type=link | ||
|tooltip=Upload this file | |tooltip=Upload this file | ||
|query string=Filepage[filetype]={{{filetype|}}}&Filepage[firstname]={{{firstname|}}}&Filepage[lastname]={{{lastname|}}}&Filepage[submissionyear]={{{submissionyear|}}}&Filepage[applicant]={{{firstname|}}} {{{lastname|}}}&Filepage[filesubmitted]={{{ | |query string=Filepage[filetype]={{{filetype|}}}&Filepage[firstname]={{{firstname|}}}&Filepage[lastname]={{{lastname|}}}&Filepage[submissionyear]={{{submissionyear|}}}&Filepage[applicant]={{{firstname|}}} {{{lastname|}}}&Filepage[filesubmitted]={{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}&Filepage[applicationpage]={{{applicationpage|}}}&Filepage[fieldtofill]={{{field|}}}&Filepage[boxtocheck]={{{checkbox|}}} | ||
|new window | |new window | ||
}} | }} | ||
}} | }} | ||
}} | }} | ||
</td> | </td> | ||
</tr> | </tr> | ||
Latest revision as of 12:32, 6 February 2023
[[::Yes| ]]✓ Some use of "" in your query was not closed by a matching "". Upload FileSome use of "" in your query was not closed by a matching "".