注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Template:News"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
|Publication Status=Draft | |Publication Status=Draft | ||
|Publication Date=2014/10/16 | |Publication Date=2014/10/16 | ||
|Deprecated By=News:NewsPageThatContainsNewerInfo | |||
|Icon=File:foobar.jpg | |Icon=File:foobar.jpg | ||
|News Format=Short (or Extended) | |News Format=Short (or Extended) | ||
Line 17: | Line 18: | ||
<div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12"> | <div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12"> | ||
= {{PAGENAME}} = | = {{PAGENAME}} = | ||
{{#if:{{{Deprecated By|}}}|{{Important|This news item is not current. You can find | {{#if:{{{Deprecated By|}}}|{{Important|This news item is not current. You can find updated information on this topic at [[Deprecated By::News:{{{Deprecated By}}}|{{{Deprecated By}}}]].}}}} | ||
{{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}{{#set:Summary={{{Summary|}}}|News Category={{{News Category|}}}|Publication Status={{{Publication Status|}}}|Icon={{{Icon|}}}|Publication Date={{{Publication Date|}}}|News Format={{{News Format}}}}} | {{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}{{#set:Summary={{{Summary|}}}|News Category={{{News Category|}}}|Publication Status={{{Publication Status|}}}|Icon={{{Icon|}}}|Publication Date={{{Publication Date|}}}|News Format={{{News Format}}}}} | ||
{{#set:Author=User:{{{Author|}}}|Gravatar MD5={{#show: User:{{{Author}}} | ?Gravatar MD5}}}} | {{#set:Author=User:{{{Author|}}}|Gravatar MD5={{#show: User:{{{Author}}} | ?Gravatar MD5}}}} |
Revision as of 19:29, November 6, 2014
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) }}