Template:News Link: Difference between revisions

From Indian River Lagoon Project
mNo edit summary
mNo edit summary
 
(13 intermediate revisions by the same user not shown)
Line 43: Line 43:
<div class="irlbody irlnews">
<div class="irlbody irlnews">
{{#ifeq:{{NAMESPACE}}|IRLNews|{{IRL_header|cat=News|toc=no}} }}
{{#ifeq:{{NAMESPACE}}|IRLNews|{{IRL_header|cat=News|toc=no}} }}
<div class="irlnewstop">{{#if:{{{Image|}}} | <div class="irlnewsimage">[[File:{{{Image|}}}|480px|thumb|left|alt={{{Description|}}}|Indian River Lagoon News]]</div>}}</div>
<div class="irlnewstop">{{#if:{{{Image|}}} | <div class="irlnewsimage">[[File:{{{Image|}}}|640px|thumb|left|alt={{{Description|}}}|'''Indian River Lagoon News''']]</div>}}</div>
<div class="irlnewsmiddle"><div class="irlnewstitle">{{{Title|}}}</div>
<div class="irlnewsmiddle"><div class="irlnewstitle">{{{Title|}}}</div>
{{#if:{{{Author_Last|}}} | <div class="irlnewsauthor">{{#if:{{{Author_First|}}}|{{{Author_First|}}} |}} {{{Author_Last|}}}, Author</div> |}}
{{#if:{{{Author_Last|}}} | <div class="irlnewsauthor">{{#if:{{{Author_First|}}}|{{{Author_First|}}} |}} {{{Author_Last|}}}, Author</div> |}}
Line 52: Line 52:
{{#if:{{{Region|}}}|<div class="irlnewsregion"><span class="irlnewslabel">Location: </span>{{#if:{{{Water_Body|}}}|{{{Water_Body|}}}:|}} {{#if:{{{Location|}}}|{{{Location|}}}:|}} {{{Region|}}}</div>}}
{{#if:{{{Region|}}}|<div class="irlnewsregion"><span class="irlnewslabel">Location: </span>{{#if:{{{Water_Body|}}}|{{{Water_Body|}}}:|}} {{#if:{{{Location|}}}|{{{Location|}}}:|}} {{{Region|}}}</div>}}
{{#if:{{{ShowMap|}}} | {{#if:{{{Coordinates|}}}| <div class="irlnewsmap"><div class="toccolours mw-collapsible" data-expandtext="Show Map" data-collapsetext="Hide Map"><span class="irlnewslabel">Coordinates: </span>({{{Coordinates|}}})  
{{#if:{{{ShowMap|}}} | {{#if:{{{Coordinates|}}}| <div class="irlnewsmap"><div class="toccolours mw-collapsible" data-expandtext="Show Map" data-collapsetext="Hide Map"><span class="irlnewslabel">Coordinates: </span>({{{Coordinates|}}})  
<div class="mw-collapsible-content">{{#cargo_display_map:point= {{{Coordinates|}}}|service=googlemaps|width=inherit|height=380px|zoom=12|map type=satellite}}</div></div></div>}}|}}
<div class="mw-collapsible-content">{{#cargo_display_map:point= {{{Coordinates|}}}|service=googlemaps|width=inherit|height=380px|zoom=11|map type=satellite}}</div></div></div>}}|}}
{{#if:{{{Type|}}}  
{{#if:{{{Type|}}}  
| <div class="irlnewstype"><span class="irlnewslabel">Source: </span>
| <div class="irlnewstype"><span class="irlnewslabel">Source: </span>
Line 62: Line 62:
  | Press Release = {{#if:{{{Url|}}} | [{{{Url}}} {{{Type}}}] | {{{Type}}} }}.
  | Press Release = {{#if:{{{Url|}}} | [{{{Url}}} {{{Type}}}] | {{{Type}}} }}.
  | Social Media = {{#if:{{{Social_Type|}}} | <span class="irlnewssocial">{{{Social_Type}}} post {{#if:{{{Social_Name|}}} | from {{#if:{{{Social_Url|}}} | [{{{Social_Url}}} {{{Social_Name}}}] | {{{Social_Name}}} }} |}}.</span> |}}.
  | Social Media = {{#if:{{{Social_Type|}}} | <span class="irlnewssocial">{{{Social_Type}}} post {{#if:{{{Social_Name|}}} | from {{#if:{{{Social_Url|}}} | [{{{Social_Url}}} {{{Social_Name}}}] | {{{Social_Name}}} }} |}}.</span> |}}.
  | #default = }}{{#if:{{{Publisher|}}} | Published by {{#if:{{{Publisher_Url|}}} | [{{{Publisher_Url}}} {{{Publisher}}}] | {{{Publisher}}} }} |}} {{#if:{{{Published_Date|}}} | &nbsp;on {{#time:F d, Y|{{{Published_Date}}} }}. |}}{{#if:{{{Access_Date|}}} | &nbsp;Retrieved on {{#time:F d, Y|{{{Access_Date}}} }}. |}}</div> |}}
  | #default = }}{{#if:{{{Publisher|}}} | &nbsp;Published by {{#if:{{{Publisher_Url|}}} | [{{{Publisher_Url}}} {{{Publisher}}}] | {{{Publisher}}} }} |}} {{#if:{{{Published_Date|}}} | on {{#time:F d, Y|{{{Published_Date}}} }}. |}}{{#if:{{{Access_Date|}}} | &nbsp;Retrieved on {{#time:F d, Y|{{{Access_Date}}} }}. |}}</div> |}}
{{#if:{{{Topic|}}}|<div class="irlnewstopic"><span class="irlnewslabel">Topic:</span> [[:Category:{{{Topic|}}}{{!}}{{{Topic|}}}]]</div>}}
{{#if:{{{Topic|}}}|<div class="irlnewstopic"><span class="irlnewslabel">Topic: </span>{{{Topic|}}}</div>}}
{{#if:{{{Page|}}}|<div class="irlnewspage"><span class="irlnewslabel">Related Article:</span> [[{{{Page|}}}]]</div>}}
{{#if:{{{Page|}}}|<div class="irlnewspage"><span class="irlnewslabel">Related Article:</span> [[{{{Page|}}}]]</div>}}
</div>
</div>

Latest revision as of 08:11, October 19, 2023

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

{{News_Link
|Title=
|Url=
|Description=
|Image=
|Region=
|Water_Body=
|Location=
|ShowMap=
|Coordinates=
|People=
|Access_Date=
|Publication=
|Published_Date=
|Publisher=
|Publisher_Url=
|Type=
|SubTitle=
|Author_Last=
|Author_First=
|Work=
|Section=
|AV_Format=
|AV_Run_Time=
|Social_Type=
|Social_Name=
|Social_Url=
|Keywords=
|Topic=
|Page=
|Text_Body=
|Poster=
|Posted=
}}

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

Template documentation[view] [edit] [history] [purge]

This News Link Template displays a news article page. Uses News Link Form.

Template parameters

ParameterDescriptionTypeStatus
TitleTitle

no description

Unknownoptional
UrlUrl

no description

Unknownoptional
DescriptionDescription

no description

Unknownoptional
ImageImage

no description

Unknownoptional
RegionRegion

no description

Unknownoptional
Water_BodyWater_Body

no description

Unknownoptional
LocationLocation

no description

Unknownoptional
ShowMapShowMap

no description

Unknownoptional
CoordinatesCoordinates

no description

Unknownoptional
PeoplePeople

no description

Unknownoptional
Access_DateAccess_Date

no description

Unknownoptional
PublicationPublication

no description

Unknownoptional
Published_DatePublished_Date

no description

Unknownoptional
PublisherPublisher

no description

Unknownoptional
Publisher_UrlPublisher_Url

no description

Unknownoptional
TypeType

no description

Unknownoptional
SubTitleSubTitle

no description

Unknownoptional
Author_LastAuthor_Last

no description

Unknownoptional
Author_FirstAuthor_First

no description

Unknownoptional
WorkWork

no description

Unknownoptional
SectionSection

no description

Unknownoptional
AV_FormatAV_Format

no description

Unknownoptional
AV_Run_TimeAV_Run_Time

no description

Unknownoptional
Social_TypeSocial_Type

no description

Unknownoptional
Social_NameSocial_Name

no description

Unknownoptional
Social_UrlSocial_Url

no description

Unknownoptional
KeywordsKeywords

no description

Unknownoptional
TopicTopic

no description

Unknownoptional
PagePage

no description

Unknownoptional
Text_BodyText_Body

no description

Unknownoptional
PosterPoster

no description

Unknownoptional
PostedPosted

no description

Unknownoptional