注意:

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
(cargo-ify news, except for a small query for User data that is still in SMW)
Line 13: Line 13:
|News Format=Short (or Extended)
|News Format=Short (or Extended)
}}
}}
 
</pre>
{{#cargo_declare:
{{#cargo_declare:
table=_news
table=_news
Line 26: Line 26:
|News_Format=Text
|News_Format=Text
}}
}}
</pre>
 


</noinclude><includeonly>{{#widget:AddThis}}
</noinclude><includeonly>{{#widget:AddThis}}

Revision as of 06:58, June 23, 2015

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)
}}
Error: "table" cannot be used as a Cargo field name, because it is an SQL keyword.