Template:Item: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Store start_date in DB, for display.) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:<span style="font-size:1rem">{{PAGENAME}}</span>}} | <noinclude>{{#cargo_declare: _table = items | ||
| title = String | |||
| 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" /> | <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>}}}} | {{form box|{{#if:{{{title|}}}|<span class="tpl-item-title">{{{title}}} </span>}}'''Description:''' {{{description_parameter}}}{{#if:{{{title|}}}|<br>'''STARDIT ID:''' <code>{{PAGENAME}}</code>}}}} | ||
Line 18: | Line 27: | ||
<div style="flex:1 1 auto;max-width:calc(100% - 4px); margin:2px;"> | <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 |{{#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;"> | {{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;"> | {{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}} }} | {{Flex segment|Other IDs |{{#arraymap:{{{ID_parameter<includeonly>|</includeonly>}}}|,|x|x}} }} | ||
</div> | </div> |
Latest revision as of 06:07, 1 November 2024
This template defines the table "items". View table.
Description: {{{description_parameter}}}
Dates
State {{{state_parameter}}}
Start 2024-11-23
End 2024-11-23
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}}}