Template:Item: Difference between revisions

From STARDIT
Jump to navigation Jump to search
wikispore>Evolution and evolvability
No edit summary
(Store start_date in DB, for display.)
 
(48 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{form box|'''Description:''' {{{description_parameter}}}}}
<noinclude>{{#cargo_declare: _table = items
<div style = "display: flex; flex-direction: row-reverse; flex-wrap: wrap;">  
| title = String
<div style="flex:1 0 250px;max-width:100px;margin:2px;">
| start_date = Date
}}</noinclude><!--
--><includeonly>{{#cargo_store: _table = items
| title = {{{title|}}}
| start_date = {{{start_date_parameter|}}}
}}</includeonly><!--
 
-->{{DISPLAYTITLE:<span style="font-size:1rem">{{PAGENAME}}</span>}}
<templatestyles src="Template:Item/style.css" />
{{form box|{{#if:{{{title|}}}|<span class="tpl-item-title">{{{title}}} </span>}}'''Description:''' {{{description_parameter}}}{{#if:{{{title|}}}|<br>'''STARDIT ID:''' <code>{{PAGENAME}}</code>}}}}
<div style = "display: flex; flex-direction: row-reverse; flex-wrap: wrap;">
<div style="flex:1 0 auto;max-width:300px;margin:2px;">
{{#if:{{{Q<includeonly>|</includeonly>}}}|{{Qlink|{{{Q|1}}}}}}}
{{#if:{{{Q<includeonly>|</includeonly>}}}|{{Qlink|{{{Q|1}}}}}}}
</div>
</div>
<div style="flex:1 0 250px;max-width:250px;margin:2px;">
<div style="flex:1 0 auto;margin:2px;">
{{#ifexpr: {{#time: xNU |{{{start_date_parameter|0000-01-01}}}}} > {{#time: xNU |now}}
{{Flex segment|Dates|
  |'''Proposed'''
'''State'''        {{{state_parameter}}}<br>
  |{{#ifexpr: {{#time: xNU |{{{end_date_parameter|9999-01-01}}}}} > {{#time: xNU |now}}
'''Start'''        {{#time: Y-m-d |{{{start_date_parameter|}}}}}{{#if:{{{end_date_parameter<includeonly>|</includeonly>}}}|<br>
  |'''Commenced'''
'''End'''         {{#time: Y-m-d |{{{end_date_parameter|}}}}}}}<br>
  |'''Completed'''}}
'''Form updated''' {{#time: Y-m-d |{{REVISIONTIMESTAMP}}}}
}}
}}
<div style="padding:0px 5px;border-left:6px solid #ccc;">
{{Flex segment|Report authors   |{{{author_parameter<includeonly>|</includeonly>}}} }}
'''Start''' {{{start_date_parameter}}}{{#if:{{{end_date_parameter|}}}|<br>
{{Flex segment|Report validators|{{{validator_parameter<includeonly>|</includeonly>}}} }}
'''End''' {{{end_date_parameter}}}}}
</div>{{#if:{{{author_parameter|}}}|
'''Report authors'''<br>
<div style = "display: flex; flex-direction: row; flex-wrap: wrap; padding:0px 5px;border-left:6px solid #ccc">{{{author_parameter|}}}</div>
}}{{#if:{{{validator_parameter<includeonly>|</includeonly>}}}|<br>
'''Report validators'''<br>
<div style = "display: flex; flex-direction: row; flex-wrap: wrap; padding:0px 5px;border-left:6px solid #ccc">{{{validator_parameter|}}}</div>
}}
</div>
<div style="flex:1 0 250px;margin:2px;">
<div style = "display: flex; flex-direction: row; flex-wrap: wrap;">  
<div style="flex:1 0 250px;max-width:400px;margin:2px;">
'''Aims''' <div style = "display: flex; flex-direction: row; flex-wrap: wrap; padding:0px 5px;border-left:6px solid #ccc"> {{#arraymap:{{{aim_parameter}}}|delimiter=,|x|x|, |and}} </div>
</div>
<div style="flex:1 0 250px;max-width:400px;margin:2px;">
'''Keywords''' <div style = "display: flex; flex-direction: row; flex-wrap: wrap; padding:0px 5px;border-left:6px solid #ccc"> {{#arraymap:{{{keyword_parameter}}}|delimiter=,|x|x|, |and}} </div>
</div>
</div>
<div style="flex:1 1 auto;max-width:calc(100% - 4px); margin:2px;">
{{Flex segment|Location    |{{#arraymap:{{{location_parameter<includeonly>|</includeonly>}}}|;|x|<div style="word-wrap: break-word;">x</div>}} }}
{{Flex segment|Location link|{{#arraymap:{{{location_link_parameter<includeonly>|</includeonly>}}}|;|x|<div style="word-wrap: break-word;">x</div>}} }}
{{Flex segment|URL          |{{#arraymap:{{{URL_parameter<includeonly>|</includeonly>}}}|;|x|<div style="word-wrap: break-word;">x</div>}} }}
{{Flex segment|Other IDs    |{{#arraymap:{{{ID_parameter<includeonly>|</includeonly>}}}|,|x|x}} }}
</div>
</div>
<div style = "display: flex; flex-direction: row; flex-wrap: wrap;">
<div style="flex:1 1 auto;margin:2px;">
{{#if:{{{location_parameter<includeonly>|</includeonly>}}}|<div style="flex:1 0 250px;max-width:400px;margin:2px;">
{{Flex segment|Aims        |{{#arraymap:{{{aim_parameter<includeonly>|</includeonly>}}}|,|x|x}} }}
'''Location''' <div style="padding:0px 5px;border-left:6px solid #ccc">{{{location_parameter}}}</div>
{{Flex segment|Keywords    |{{#arraymap:{{{keyword_parameter<includeonly>|</includeonly>}}}|,|x|x}} |flex=true}}
</div>}}
{{Flex segment|Category    |{{{type_parameter|}}}}}
{{#if:{{{URL_parameter<includeonly>|</includeonly>}}}|<div style="flex:1 0 250px;max-width:400px;margin:2px;">
'''URL''' <div style="padding:0px 5px;border-left:6px solid #ccc">{{{URL_parameter}}}</div>
</div>}}
{{#if:{{{ID_parameter<includeonly>|</includeonly>}}}|<div style="flex:1 0 250px;max-width:400px;margin:2px;">
'''Other IDs''' <div style="padding:0px 5px;border-left:6px solid #ccc">{{{ID_parameter}}}</div>
</div>}}
</div>
</div>
</div>
</div>
Line 49: Line 43:
          flex-wrap: wrap;
          flex-wrap: wrap;
               border-left:6px solid #ccc">
               border-left:6px solid #ccc">
{{{contributor_parameter}}}
{{{contributor_parameter<includeonly>|</includeonly>}}}
{{{input_parameter}}}
{{{input_parameter<includeonly>|</includeonly>}}}
</div>
</div>
==Outputs==
==Outputs and impacts==
<div style = "display: flex;
<div style = "display: flex;
          flex-direction: row;
          flex-direction: row;
          flex-wrap: wrap;
          flex-wrap: wrap;
               border-left:6px solid #ccc">
               border-left:6px solid #ccc">
{{{output_parameter}}}
{{{output_parameter<includeonly>|</includeonly>}}}
</div>
</div>
<includeonly>
<includeonly>
[[Category:STARDIT forms]]
[[Category:STARDIT reports]]
[[Category:{{{type_parameter|}}} STARDIT reports]]
[[Category:STARDIT version beta reports]]
</includeonly><noinclude>[[Category:STARDIT parameter templates]]</noinclude>
</includeonly><noinclude>[[Category:STARDIT parameter templates]]</noinclude>

Latest revision as of 06:07, 1 November 2024

This template defines the table "items". View table.

Description: {{{description_parameter}}}


Q1

Dates

State {{{state_parameter}}}
Start 2024-11-27
End 2024-11-27
Form updated 2024-11-01

Report authors
{{{author_parameter}}}
Report validators
{{{validator_parameter}}}
Location
{{{location_parameter}}}
Location link
{{{location_link_parameter}}}
URL
{{{URL_parameter}}}
Other IDs
{{{ID_parameter}}}
Aims
{{{aim_parameter}}}
Keywords
{{{keyword_parameter}}}

Inputs

{{{contributor_parameter}}} {{{input_parameter}}}

Outputs and impacts

{{{output_parameter}}}