注意:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Template:News"

From Funtoo
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
|Icon=File:foobar.jpg
}}
}}
</pre>
</pre>
Line 16: Line 17:
= {{PAGENAME}} =
= {{PAGENAME}} =
<span style="font-size: 1.5em; color: #888; font-variant: small-caps;">News: {{{News Category}}}</span>
<span style="font-size: 1.5em; color: #888; font-variant: small-caps;">News: {{{News Category}}}</span>
{{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}{{#set:Summary={{{Summary|}}}|News Category={{{News Category|}}}|Publication Status={{{Publication Status|}}}|Publication Date={{{Publication Date|}}}}}{{#arraymap:{{{Author|}}}|,|x|{{#set:Author=User:x|Gravatar MD5={{#show: User:x | ?Gravatar MD5}}}}}}
{{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}{{#set:Summary={{{Summary|}}}|News Category={{{News Category|}}}|Publication Status={{{Publication Status|}}}|Icon={{{Icon|}}}|Publication Date={{{Publication Date|}}}}}{{#arraymap:{{{Author|}}}|,|x|{{#set:Author=User:x|Gravatar MD5={{#show: User:x | ?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">

Revision as of 03: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
}}