Content deleted Content added
m FennecBot moved page תבנית:AllUpdates to Template:AllUpdates without leaving a redirect |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> |
<noinclude> |
||
template for displaying updates |
template for displaying updates |
||
| ⚫ | |||
example: |
|||
<pre><nowiki>{{AllUpdates|table=section_meta|datefield=field_date|tags=field_topics|updater=field_participants}} |
|||
</nowiki></pre> |
|||
| ⚫ | |||
<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> |
|||
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 |
||
| ⚫ | |||
}} |
|||
</includeonly> |
|||
<noinclude> |
<noinclude> |
||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
"params": { |
"params": { |
||
"table": { |
"table": {}, |
||
"tags": {}, |
|||
"datefield": {}, |
|||
"userfield": {}, |
|||
}, |
"content": {}, |
||
" |
"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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| table | table | no description | Unknown | optional |
| tags | tags | no description | Unknown | optional |
| datefield | datefield | no description | Unknown | optional |
| userfield | userfield | no description | Unknown | optional |
| content | content | no description | Unknown | optional |
| filesfield | filesfield | no description | Unknown | optional |