Template:News Link Box: Difference between revisions

From Indian River Lagoon Project
mNo edit summary
mNo edit summary
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
This is the News_Link_Box template for use in News info boxes.
</noinclude>
<includeonly>
<includeonly>
<div class="irlnews" >
<templatestyles src="News_Link/styles.css" />
<div class="irlnews">
<div class="irlnewstop">
<div class="irlnewstop">
{{#if:{{{Title|}}}|<div class="irlnewstitle">
{{#if:{{{Image|}}} | <div class="irlnewsimage">[[File:{{{Image|}}}|640px|center|alt={{{Title|}}}|link={{{_pageName|}}}]]</div>}}
link: {{urlencode:{{{_pageName|}}}|PATH}}
{{#if:{{{Title|}}}|<div class="irlnewstitle" style="font-size:1.1em">[[{{{_pageName|}}}|{{{Title|}}}]]</div>}}
 
title: {{{Title|}}}</div>}}
{{#if:{{{Author_Last|}}} | <div class="irlnewsauthor">{{#if:{{{Author_First|}}}|{{{Author_First|}}} |}} {{{Author_Last|}}}, Author</div> |}}{{#if:{{{SubTitle|}}} | <div class="irlnewssubtitle">{{{SubTitle|}}}</div> |}}<div class="irlnewsdesc">{{{Description|}}}</div>
{{#if:{{{Author_Last|}}} | <div class="irlnewsauthor">{{#if:{{{Author_First|}}}|{{{Author_First|}}} |}} {{{Author_Last|}}}, Author</div> |}}{{#if:{{{SubTitle|}}} | <div class="irlnewssubtitle">{{{SubTitle|}}}</div> |}}<div class="irlnewsdesc">{{{Description|}}}</div>
</div>
</div>
{{#if:{{{Image|}}} | <div class="irlnewsimage">[[File:{{{Image|}}}|640px|thumb|left|alt={{{Title|}}}|link={{{Url|}}}]]</div>}}
{{#if:{{{Text_Body|}}}|<div class="irlnewsmiddle">{{#if:{{{Location|}}}|<span class="irlnewslocation">{{{Location|}}}</span>}}{{#if:{{{Published_Date|}}}|<span class="irlnewspubdate"> ({{{Published_Date|}}}) - </span>}}<span class="irlnewstext">{{{Text_Body|}}}</span></div>| }}
<!--
{{#if:{{{Url|}}} | <div class="irlnewsmiddle irlnewslink">Visit Link: [{{{Url|}}} {{{Title|}}}]</div>}}
<div class="irlnewsmiddle">
{{#if:{{{Location|}}}|<span class="irlnewslocation">{{{Location|}}}</span>}}{{#if:{{{Published_Date|}}}|<span class="irlnewspubdate"> ({{{Published_Date|}}}) - </span>}}<span class="irlnewstext">{{{Text_Body|}}}</span>
</div>
-->
<div class="irlnewsmiddle">
{{#if:{{{Url|}}} | <div class="irlnewslink">Visit Link: [{{{Url|}}} {{{Title|}}}]</div>}}
<!--
<div class="irlnewscredits">
{{#if:{{{Publisher|}}} |<div class="irlnewspub">{{#if:{{{Publisher_Url|}}}| Publisher: [{{{Publisher_Url|}}} {{{Publisher|}}}]| Publisher: {{{Publisher|}}} }}</div> |}}
{{#if:{{{People|}}}|<div class="irlnewspeople">Credit: {{{People|}}}</div>}}
-->
</div>
<!--
<div class="irlnewstype">Source Type: {{{Type|}}}{{#ifeq:{{{Type|}}}|Article|{{#if:{{{Work|}}}|<span class="irlnewswork">: {{{Work|}}}: Section: {{{Section|}}}</span>}} }} {{#ifeq:{{{Type|}}}|Audio-Visual|{{#if:{{{AV_Format|}}}|<span class="irlnewsav"> {{!}} Format: {{{AV_Format|}}}</span>}} {{#if:{{{AV_Run_Time|}}}|<span class="irlnewsruntime"> {{!}} Run Time: {{{AV_Run_Time|}}}</span>}} }}{{#ifeq:{{{Type|}}} | Social Media |{{#if:{{{Social_Type|}}}|<span class="irlnewssocial">: {{{Social_Type|}}}</span>}}{{#if:{{{Social_Name|}}}|<span class="irlnewssocialname">: {{#if:{{{Social_Url|}}}|[{{{Social_Url|}}} {{{Social_Name|}}}]|{{{Social_Name|}}} }}</span> }} }}
</div>
-->
</div>
<div class="irlnewsbottom">
<div class="irlnewsbottom">
<div class="irlnewstopicdiv">{{#if:{{{Topic|}}}|<span class="irlnewstopic">Topic: [[:Category:{{{Topic|}}}{{!}}{{{Topic|}}}]]</span>}}{{#if:{{{Page|}}}| {{#ifexist:{{{Page|}}}|<span class="irlnewspage">Related Article: [[{{{Page|}}}]]</span>}} }}</div>
{{#if:{{{Topic|}}}|<div class="irlnewstopicdiv"><span class="irlnewstopic">Topic: [[:Category:{{{Topic|}}}{{!}}{{{Topic|}}}]]</span></div>}}
<div class="irlnewspost"><span class="irlnewsposter">Poster: {{{Poster|}}}</span><span class="irlnewsposted">Posted: {{#time: Y-m-d|{{{Posted|}}} }}</span></div>
<div class="irlnewspost"><span class="irlnewsposter">Poster: {{{Poster|}}}</span><span class="irlnewsposted">Posted: {{#time: Y-m-d|{{{Posted|}}} }}</span></div>
<!--
{{#if:{{{ShowMap|}}} | {{#if:{{{Coordinates|}}}|<div class="irlnewsmap"><div class="toccolours mw-collapsible mw-collapsed" data-expandtext="Show Map" data-collapsetext="Hide Map">Coordinates: ({{{Coordinates|}}})
<div class="mw-collapsible-content">
{{#cargo_display_map:point= {{{Coordinates|}}}|service=googlemaps|width=inherit|height=380px|zoom=12}}
</div></div>|Missing Map Coordinates}} }}
</div>
</div>
-->
</div>
</div>
</includeonly>
</includeonly>
<noinclude>
This is the News_Link_Box template for use in News info boxes.
</noinclude>

Latest revision as of 07:22, December 6, 2020


This is the News_Link_Box template for use in News info boxes.