Template:News Link: Difference between revisions
From Indian River Lagoon Project
mNo edit summary |
mNo edit summary |
||
(38 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"> | <div class="irlnewstop">{{#if:{{{Image|}}} | <div class="irlnewsimage">[[File:{{{Image|}}}|640px|thumb|left|alt={{{Description|}}}|'''Indian River Lagoon News''']]</div>}}</div> | ||
{{#if:{{{Image|}}} | <div class="irlnewsimage">[[File:{{{Image|}}}|640px| | <div class="irlnewsmiddle"><div class="irlnewstitle">{{{Title|}}}</div> | ||
</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> |}} | ||
<div class="irlnewspubdate">{{#if:{{{Published_Date|}}} | {{#time: F j, Y |{{{Published_Date|}}} }} | {{#time: F j, Y|{{{Posted|}}} }} }}</div> | <div class="irlnewspubdate">{{#if:{{{Published_Date|}}} | {{#time: F j, Y |{{{Published_Date|}}} }} | {{#time: F j, Y|{{{Posted|}}} }} }}</div>{{#ifeq:{{{Type|}}} | Opinion-Editorial | <div class="irlnewseditorial">{{{Type|}}}</div> |}}{{#ifeq:{{{Type|}}} | Link | <div class="irlnewsheadline">{{#if:{{{Url|}}} | [{{{Url}}} News Headline] | News Headline}}</div> |}}{{#if:{{{SubTitle}}} | <div class="irlnewssubtitle">{{{SubTitle|}}}</div> |}}<div class="irlnewstext">{{#if:{{{Location|}}}|<span class="irlnewslocation">{{{Location|}}} - </span>}}<span class="irlnewstextbody">{{{Text_Body|}}}</span></div> | ||
{{#ifeq:{{{Type|}}} | Opinion-Editorial | <div class="irlnewseditorial">{{{Type|}}}</div> |}} | |||
{{#if:{{{SubTitle | |||
<div class="irlnewstext">{{#if:{{{Location|}}}|<span class="irlnewslocation">{{{Location|}}} - </span>}}<span class="irlnewstextbody">{{{Text_Body|}}}</span></div> | |||
</div> | </div> | ||
<div class="irlnewsmiddle"> | <div class="irlnewsmiddle"> | ||
Line 58: | 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= | <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|}}} | <div class="irlnewstype"><span class="irlnewslabel">Source: </span>{{#switch: {{{Type}}} | {{#if:{{{Type|}}} | ||
| | | <div class="irlnewstype"><span class="irlnewslabel">Source: </span> | ||
| | {{#switch: {{{Type}}} | ||
| Opinion-Editorial = {{{Publication|}}} {{#if:{{{Work|}}} | {{{Work|}}} |}} {{{Type}}}. The views and opinions expressed in this article are those of the guest authors and do not necessarily reflect the policy or position of Indian River Lagoon News or it's editors. | | Link = {{#if:{{{Url|}}} | [{{{Url}}} News Headline Link] | News Headline}} | ||
| | | Article = {{{Publication|}}} {{#if:{{{Work|}}} | {{{Work}}} |}} {{#if:{{{Url|}}} | [{{{Url}}} {{{Type}}}] | {{{Type}}} }} | ||
| Multimedia = {{{Publication|}}} {{#if:{{{AV_Format|}}} | {{{AV_Format}}} File {{#if:{{{AV_Run_Time|}}} | ({{{AV_Run_Time}}}) |}} |}} | |||
| Opinion-Editorial = {{{Publication|}}} {{#if:{{{Work|}}} | {{{Work}}} |}} {{#if:{{{Url|}}} | [{{{Url}}} {{{Type}}}] | {{{Type}}} }}. The views and opinions expressed in this article are those of the guest authors and do not necessarily reflect the policy or position of Indian River Lagoon News or it's editors. | |||
| #default = }}{{#if:{{{Publisher|}}} | | | Press Release = {{#if:{{{Url|}}} | [{{{Url}}} {{{Type}}}] | {{{Type}}} }}. | ||
{{#if:{{{Topic|}}}|<div class="irlnewstopic"><span class="irlnewslabel">Topic:</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|}}} | on {{#time:F d, Y|{{{Published_Date}}} }}. |}}{{#if:{{{Access_Date|}}} | Retrieved on {{#time:F d, Y|{{{Access_Date}}} }}. |}}</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>}} | |||
</div> | </div> | ||
<div class="irlnewsbottom noprint"> | <div class="irlnewsbottom noprint"> |
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.
This News Link Template displays a news article page. Uses News Link Form.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Title | Title | no description | Unknown | optional |
Url | Url | no description | Unknown | optional |
Description | Description | no description | Unknown | optional |
Image | Image | no description | Unknown | optional |
Region | Region | no description | Unknown | optional |
Water_Body | Water_Body | no description | Unknown | optional |
Location | Location | no description | Unknown | optional |
ShowMap | ShowMap | no description | Unknown | optional |
Coordinates | Coordinates | no description | Unknown | optional |
People | People | no description | Unknown | optional |
Access_Date | Access_Date | no description | Unknown | optional |
Publication | Publication | no description | Unknown | optional |
Published_Date | Published_Date | no description | Unknown | optional |
Publisher | Publisher | no description | Unknown | optional |
Publisher_Url | Publisher_Url | no description | Unknown | optional |
Type | Type | no description | Unknown | optional |
SubTitle | SubTitle | no description | Unknown | optional |
Author_Last | Author_Last | no description | Unknown | optional |
Author_First | Author_First | no description | Unknown | optional |
Work | Work | no description | Unknown | optional |
Section | Section | no description | Unknown | optional |
AV_Format | AV_Format | no description | Unknown | optional |
AV_Run_Time | AV_Run_Time | no description | Unknown | optional |
Social_Type | Social_Type | no description | Unknown | optional |
Social_Name | Social_Name | no description | Unknown | optional |
Social_Url | Social_Url | no description | Unknown | optional |
Keywords | Keywords | no description | Unknown | optional |
Topic | Topic | no description | Unknown | optional |
Page | Page | no description | Unknown | optional |
Text_Body | Text_Body | no description | Unknown | optional |
Poster | Poster | no description | Unknown | optional |
Posted | Posted | no description | Unknown | optional |
The above documentation is transcluded from Template:News Link/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |