Template:News: Difference between revisions

From OpenCommons
Jump to navigation Jump to search
en>Pinfold
No edit summary
 
No edit summary
 
(30 intermediate revisions by the same user not shown)
Line 4: Line 4:
<pre>
<pre>
{{News
{{News
|Image=
|Published=
|Published=
|Organization=
|Where=
|Summary=
|Summary=
|Link=
|Link=
|Display=
|Display=
|Tag=
|chapter=
|Release=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{| class="wikitable"
</noinclude><includeonly>
__NOEDITSECTION__
{{#default_form:News}}
{| class="wikitable" style="float:right;width:500px;border-spacing:20px;margin-left: 40px;"
! colspan="2" style="background:ltgrey;font-size:10pt" | News
|-
!Image
|[[File:{{{Image|}}}|x600px|link={{{Link|}}}|Logo]] {{#set: Has image={{{Image}}}}} {{#set: Has URL={{{Link}}} }}
|-
! Published
! Published
| [[Has date published::{{{Published|}}}]]
| [[Has date published::{{{Published|}}}]]
|-
|-
! Summary
! Point(s) of Contact
| [[Has summary::{{{Summary|}}}]]
| {{#if: {{{poc|}}} | {{#arraymap:{{{poc}}}|,|x|{{#set: Has contact=x}}|}}  | }} {{#arraymap:{{{poc|}}}|,|x|x|<br>}}
|-
! Organization(s)
| {{#arraymap:{{{Organization|}}}|,|x|[[Has team members::x]]| <br> }}
|-
|-
! Link
! Where
| [[Has URL::{{{Link|}}}]]
| [[From location::{{{Where|}}}]] {{#set: Has summary={{{Summary|}}} }} {{#if: {{{sector|}}} | {{#arraymap:{{{sector|}}}|,|x|{{#set: Has sector=x }}|}} | }} {{#if: {{{Tag|}}} | {{#arraymap:{{{Tag|}}}|,|x|{{#set: Has tag=x }}|}} | }} {{#arraymap:{{{chapter|}}}|,|x|{{#set: In chapter=x}}|}}
|-
|-
! Display
! Display
| [[Is displayed::{{{Display|Yes}}}]]
| [[Is displayed::{{{Display|Yes}}}]]
|- {{#if: {{{Release|}}} | | style="display: none;" }} {{#if {{{Release|}}} | {{#set: Has pdf={{{Release}}} }} | }}
| colspan="2" style="text-align:center;font-size:9pt" | [[File:{{{Release}}}|500px|Press Release]]  
|}
|}
{{{Summary}}}
<!--[[File:{{{Image|}}}|x600px|Logo]]
'''{{{Published|}}}'''


'''[{{{Link}}} ...source article]'''-->
[[Category:News]]
[[Category:News]]
</includeonly>
</includeonly>

Latest revision as of 15:06, August 24, 2023

This is the "News" template. It should be called in the following format:

{{News
|Image=
|Published=
|Organization=
|Where=
|Summary=
|Link=
|Display=
|Tag=
|chapter=
|Release=
}}

Edit the page to see the template text.