Template:AllUpdates: Difference between revisions

Content deleted Content added
Created page with "<noinclude> template for displaying updates</noinclude> <includeonly> {{#cargo_query: tables={{table|}}} |format=template |template=UpdateTile | |fields=_pageName=link, {{#if:..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
template for displaying updates</noinclude>
template for displaying updates

<includeonly>
example:

<pre><nowiki>{{AllUpdates|table=section_meta|datefield=field_date|tags=field_topics|updater=field_participants}}
</nowiki></pre>
</noinclude>
<includeonly><div class="updates-scroller">
{{#cargo_query:
{{#cargo_query:
tables={{table|}}}
tables={{{table|}}}
|format=template
|format=template
|template=UpdateTile
|template=UpdateTile
|
|fields=_pageName=link,
|fields=_pageName=link,
{{#if:{{{tags|}}}|{{{tags}}}=tags,}}
{{#if:{{{tags|}}}|{{{tags}}}=tags,}}
Line 13: Line 18:
{{#if:{{{content|}}}|{{{content}}}=readmore,}}
{{#if:{{{content|}}}|{{{content}}}=readmore,}}
{{#if:{{{filesfield|}}}|{{{filesfield}}}=attachments,}}
{{#if:{{{filesfield|}}}|{{{filesfield}}}=attachments,}}
|group by={{table|}}}._pageName
|group by={{{table|}}}._pageName
|named args=yes
|order by=date DESC
}}
</includeonly>
<noinclude>
<templatedata>
{
"params": {
"table": {
"label": "Cargo table name",
"type": "string",
"required": true
},
"titlefield": {
"label": "Cargo title field name",
"type": "string",
"required": true,
"suggested": true
},
"contentfield": {
"label": "Cargo content field name",
"type": "string",
"required": true,
"suggested": true
},
"where": {
"label": "where",
"type": "string",
"suggested": true
}
},
"description": "template for embeding email updates "
}
</templatedata>
</noinclude>
<noinclude>
template for displaying updates</noinclude>
<includeonly>
{{#cargo_query:
tables=dkvn
|format=template
|template=UpdateTile
|fields=field_138l8U=date,_pageName=link,field_161cv1=readmore-title,535xgg=readmore,974ani=project,742nh1=updater,517pow=attachments,
|named args=yes
|named args=yes
|order by=date DESC
|order by=date DESC
}}</div></includeonly>
}}
</includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"table": {
"table": {},
"label": "Cargo table name",
"tags": {},
"type": "string",
"datefield": {},
"required": true
"userfield": {},
},
"content": {},
"titlefield": {
"filesfield": {}
}
"label": "Cargo title field name",
"type": "string",
"required": true,
"suggested": true
},
"contentfield": {
"label": "Cargo content field name",
"type": "string",
"required": true,
"suggested": true
},
"where": {
"label": "where",
"type": "string",
"suggested": true
}
},
"description": "template for embeding updates "
}
}
</templatedata>
</templatedata>

Latest revision as of 16:37, 25 August 2022

template for displaying updates

example:

{{AllUpdates|table=section_meta|datefield=field_date|tags=field_topics|updater=field_participants}}


No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
tabletable

no description

Unknownoptional
tagstags

no description

Unknownoptional
datefielddatefield

no description

Unknownoptional
userfielduserfield

no description

Unknownoptional
contentcontent

no description

Unknownoptional
filesfieldfilesfield

no description

Unknownoptional