Difference between revisions of "Template:News"

From Funtoo
Jump to navigation Jump to search
m (ssl compliance)
 
Line 36: Line 36:
{{#if:{{{Deprecated By|}}}|{{Important|This news item is not current. You can find updated information on this topic at [[:News:{{{Deprecated By}}}|{{{Deprecated By}}}]].}}}}{{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}
{{#if:{{{Deprecated By|}}}|{{Important|This news item is not current. You can find updated information on this topic at [[:News:{{{Deprecated By}}}|{{{Deprecated By}}}]].}}}}{{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}
{{#ifeq:{{{News Format|}}}|Extended|
{{#ifeq:{{{News Format|}}}|Extended|
{{#widget:NewsInfo|body={{{Summary|}}}|user={{{Author|}}}|icon_url={{#if:{{{Icon|}}}|{{filepath:{{#sub:{{{Icon}}}|5}}|80}}|http://www.gravatar.com/avatar/{{#var:grav}}/?s=80&d=retro&r=g}}|date={{#time:F j, Y|{{{Publication Date}}}}}
{{#widget:NewsInfo|body={{{Summary|}}}|user={{{Author|}}}|icon_url={{#if:{{{Icon|}}}|{{filepath:{{#sub:{{{Icon}}}|5}}|80}}|//www.gravatar.com/avatar/{{#var:grav}}/?s=80&d=retro&r=g}}|date={{#time:F j, Y|{{{Publication Date}}}}}
}}}}{{#cargo_store:
}}}}{{#cargo_store:
_table=news
_table=news

Latest revision as of 18:19, October 15, 2017

Use like so:

{{News
|Summary=Test News Item
|News Category=General
|Author=Drobbins
|Publication Status=Draft
|Publication Date=2014/10/16
|Deprecated By=News:NewsPageThatContainsNewerInfo
|Icon=File:foobar.jpg
|News Format=Short (or Extended)
}}

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