Template:News: Difference between revisions

From OpenCommons
Jump to navigation Jump to search
No edit summary
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 12: Line 12:
|Display=
|Display=
|Tag=
|Tag=
|chapter=
|Release=
|Release=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{| class="wikitable" style="float:right;width:700px"
</noinclude><includeonly>
{{#seo:
|title_mode=replace
|title={{PAGENAMEE}}
|keywords=Digital Infrastructure
|description={{PAGENAMEE}}
|image={{#if:{{{largeimage|}}}|{{filepath:{{{largeimage}}}}}|{{filepath:{{{Image}}}}}}}
|image_alt={{PAGENAMEE}}
|site_name=OpenCommons
|locale=en_US
|type=https://opencommons.org/
|modified_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}
}}
__NOEDITSECTION__
{{#default_form:News}}
{| class="wikitable" style="float:right;width:500px;border-spacing:20px;margin-left: 40px;"
| colspan="2" style="background:ltgrey;font-size:16pt" | News [[File:Envelope-Icon.svg|x24px|link=mailto:?subject=Best%20Practices%20trip%20to%20{{#replace:{{PAGENAMEE}}|_|%20}}&body=Interesting%20report%20on%20the%20State%20of%20Oregon's%20recent%20Best%20Practices%20trip%20to%20{{#replace:{{PAGENAMEE}}|_|%20}}%20https://{{SERVERNAME}}/{{PAGENAMEE}}]] [[File:bluesky-icon.svg|x20px|link=https://bsky.app/intent/compose?text=Check%20out%20this%20article%20on%20{{#replace:{{PAGENAMEE}}|_|%20}}%20Best%20Practices%3A%0Ahttps%3A//{{SERVERNAME}}/{{PAGENAMEE}}]] [[File:linkedin-icon.svg|x20px|link=https://www.linkedin.com/shareArticle?url=https%3A%2F%2F{{SERVERNAME}}/{{PAGENAMEE}}&mini=true&title={{PAGENAMEE}}%Best%20Practices&summary=Best%20Practices%20trip%20to%20{{#replace:{{PAGENAMEE}}|_|%20}}&body=Interesting%20report%20on%20the%20State%20of%20Oregon's%20recent%20Best%20Practices%20trip%20to%20{{#replace:{{PAGENAMEE}}|_|%20}}&source={{SERVERNAME}}/{{PAGENAMEE}}]]
|-
!Image
!Image
|[[File:{{{Image|}}}|x600px|link={{{Link|}}}|Logo]] {{#set: Has image={{{Image}}}}} {{#set: Has URL={{{link}}} }}
|[[File:{{{Image|}}}|x600px|link={{{Link|}}}|Logo]] {{#set: Has image={{{Image}}}}} {{#set: Has URL={{{Link}}} }}
|-
|-
! Published
! Published
| [[Has date published::{{{Published|}}}]]
| [[Has date published::{{{Published|}}}]]
|-
|-
! Organization
! Point(s) of Contact
| {{#if: {{{poc|}}} | {{#arraymap:{{{poc}}}|,|x|{{#set: Has contact=x}}|}}  | }} {{#arraymap:{{{poc|}}}|,|x|x|<br>}}
|-
! Organization(s)
| {{#arraymap:{{{Organization|}}}|,|x|[[Has team members::x]]| <br> }}
| {{#arraymap:{{{Organization|}}}|,|x|[[Has team members::x]]| <br> }}
|-
|-
! Where
! Where
| [[From location::{{{Where|}}}]] [[Property:Has coordinates | ]] [[Has coordinates::{{#Geocode:{{{Where|}}}}}|]]
| [[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}}|}}
|-
! Summary
| [[Has summary::{{{Summary|}}}]]
|-
|-
! Display
! Display
| [[Is displayed::{{{Display|Yes}}}]]
| [[Is displayed::{{{Display|Yes}}}]]  
|-
|- {{#if: {{{Release|}}} | | style="display: none;" }} {{#if {{{Release|}}} | {{#set: Has pdf={{{Release}}} }} | }}
! Tags
| colspan="2" style="text-align:center;font-size:9pt" | [[File:{{{Release}}}|500px|Press Release]]  
| {{#arraymap:{{{Tag|}}}|,|x|[[Has tag::x]]| <br> }}
|-
| colspan="2" style="text-align:center;font-size:9pt" | [[File:{{{Release}}}|700px|Press Release]] {{#set: Has pdf={{{Release}}} }}
|}
|}
{{{Summary}}}
<!--[[File:{{{Image|}}}|x600px|Logo]]
<!--[[File:{{{Image|}}}|x600px|Logo]]


'''{{{Published|}}}'''
'''{{{Published|}}}'''
{{{Summary}}}


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

Latest revision as of 06:20, June 12, 2025

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.