Template

Difference between revisions of "Show news on main page row"

Line 1: Line 1:
 
<includeonly>*{{#time: d/m/y | {{{RSS pubdate|}}} }}: {{#switch: {{{Which table|}}}
 
<includeonly>*{{#time: d/m/y | {{{RSS pubdate|}}} }}: {{#switch: {{{Which table|}}}
|Cases = '''Case ({{#cargo_query:tables=Cases|fields=Sentence|where=_pageName="{{{Name|}}}"|default=}}).''' [[{{{Name|}}}]] — {{#cargo_query:table=Cases|fields=Summary|where=_pageName="{{{Name|}}}" }}
+
|Cases = '''Case ({{#cargo_query:tables=Cases|fields=Sentence|where=_pageName="{{{Name|}}}"|default=|format=template|template=Cargo trim}}).''' [[{{{Name|}}}]] — {{#cargo_query:table=Cases|fields=Summary|where=_pageName="{{{Name|}}}" |format=template|template=Cargo trim}}
 
|News = '''{{{RSS title|}}}''' — {{{RSS description}}}
 
|News = '''{{{RSS title|}}}''' — {{{RSS description}}}
 
|Legislation='''Legislation.''' [[{{{Name|}}}]] — {{#cargo_query:table=Legislation|fields=Summary|where=_pageName="{{{Name|}}}" }}
 
|Legislation='''Legislation.''' [[{{{Name|}}}]] — {{#cargo_query:table=Legislation|fields=Summary|where=_pageName="{{{Name|}}}" }}
|Resources='''{{#cargo_query:tables=Resources|fields=Sentence|where=Resources._pageName LIKE "{{#replace: {{{Name|}}} | " | _ }}"|outro=.|default=}}''' [[{{{Name|}}}]] — {{#cargo_query:table=Resources|fields=Abstract|where=Resources._pageName LIKE "{{#replace: {{{Name|}}} | " | _ }}" }}
+
|Resources='''{{#cargo_query:tables=Resources|fields=Sentence|where=Resources._pageName LIKE "{{#replace: {{{Name|}}} | " | _ }}"|outro=.|default=|format=template|template=Cargo trim}}''' [[{{{Name|}}}]] — {{#cargo_query:table=Resources|fields=Abstract|where=Resources._pageName LIKE "{{#replace: {{{Name|}}} | " | _ }}" |format=template|template=Cargo trim}}
|Consultations='''Consultation.''' [[{{{Name|}}}]] — {{#cargo_query:table=Consultations|fields=Description|where=_pageName="{{{Name|}}}" }}
+
|Consultations='''Consultation.''' [[{{{Name|}}}]] — {{#cargo_query:table=Consultations|fields=Description|where=_pageName="{{{Name|}}}" |format=template|template=Cargo trim}}
 
|Error: No table specified
 
|Error: No table specified
 
|Jobs='''Job advert.''' [[{{{Name|}}}]]. See [[Jobs]]
 
|Jobs='''Job advert.''' [[{{{Name|}}}]]. See [[Jobs]]

Revision as of 20:54, 13 February 2020