Note
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 16: | Line 16: | ||
<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}} = | ||
{{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}{{#set:Summary={{{Summary|}}}|News Category={{{News Category|}}}|Publication Status={{{Publication Status|}}}|Icon={{{Icon|}}}|Publication Date={{{Publication Date|}}}}} | |||
{{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}{{#set:Summary={{{Summary|}}}|News Category={{{News Category|}}}|Publication Status={{{Publication Status|}}}|Icon={{{Icon|}}}|Publication Date={{{Publication Date|}}}}}{{# | {{#set:Author=User:{{{Author|}}}|Gravatar MD5={{#show: User:{{{Author}}} | ?Gravatar MD5}}}} | ||
__NOTITLE__ | __NOTITLE__ | ||
</div></div><div class="row"><div class="col-xs-12 col-sm-4 col-sm-push-8"> | </div></div><div class="row"><div class="col-xs-12 col-sm-4 col-sm-push-8"> | ||
<p><b>{{{Publication Date|}}}</b></p> | |||
<p>{{#show: User:{{{Author|}}} | ?Bio }}</p> | |||
< | |||
< | |||
</div><div class="col-xs-12 col-sm-8 col-sm-pull-4"> | </div><div class="col-xs-12 col-sm-8 col-sm-pull-4"> | ||
</includeonly> | </includeonly> |
Revision as of 04:48, October 20, 2014
Use like so:
{{News |Summary=Test News Item |News Category=General |Author=Drobbins |Publication Status=Draft |Publication Date=2014/10/16 |Icon=File:foobar.jpg }}