No edit summary
Tags: Manual revert Reverted
No edit summary
 
(15 intermediate revisions by 2 users not shown)
Line 2: Line 2:
{{#template_params:
{{#template_params:
Body
Body
|Description (label=Description)
|URL (label=Source URL)
|URL (label=Source URL)
|Subject (label=Category/Subject)
|Subject (label=Category/Subject)
Line 9: Line 10:
|Tags (label=Tags)
|Tags (label=Tags)
|Media_URL (label=Media URL)
|Media_URL (label=Media URL)
|Image_Caption (label=Image Caption)
|File (label=File)
|File (label=File)
}}
}}
{{#cargo_declare:
{{#cargo_declare:
_table=Articles
_table=Articles
|Description=Text
|Body=Text
|Body=Text
|URL=URL
|URL=URL
Line 22: Line 25:
|Media_URL=URL
|Media_URL=URL
|File=File
|File=File
|Image_Caption=Text
}}
}}
</noinclude>
</noinclude>
Line 27: Line 31:
{{#cargo_store:_table=Articles}}
{{#cargo_store:_table=Articles}}


{{{Body}}}
{{{Body|}}}


===File===
{{#arraydefine:subjects| {{{Subject|}}} }}
{{#if:{{{File|}}}|[[File:{{{File|}}}|800px|center]]|}}


===Subject(s)===
{{#arraydefine:countries| {{{Country|}}} }}
{{#arraymap:{{{Subject|}}}|,|x|{{#formredlink:target=x|form=Subject|}}}}


===Country===
{{#arraydefine:regions| {{{Region |}}} }}
{{#arraymap:{{{Country|}}}|,|x|{{#formredlink:target=x|form=Country|}}}}


===Region===
{{#arraydefine:sdgs| {{{SDG|}}} }}
{{#arraymap:{{{Region|}}}|,|x|[[x]]|\s}}


===Sustainable Development Goal(s)===
{{#arraymap:{{{SDG|}}}|,|x|[[x]]|\s}}
===Tags===
{{#arraymap:{{{Tags|}}}|,|x|[[x]]|\s}}
===Media URL===
{{#if:{{{Media_URL|}}}|{{#evu:{{{Media_URL|}}}}}|}}
===Source URL===
{{{URL|}}}


[[Category:Articles]]
[[Category:Articles]]

Latest revision as of 06:45, 13 September 2023

This is the "PostForm" template.

It should be called in the following format:

{{PostForm
|Body=
|Description=
|URL=
|Subject=
|Country=
|Region=
|SDG=
|Tags=
|Media_URL=
|Image_Caption=
|File=
}}

Edit the page to see the template text.

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