Difference between revisions of "Template:Article"

(use vardefine to pass info to footer, rather than semantic queries)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<noinclude>
 +
{{#cargo_declare:
 +
_table=articles
 +
|Subtitle=Wikitext
 +
|Summary=Wikitext
 +
|Icon=File
 +
|Author=Page
 +
|Next_in_Series=Page
 +
|Previous_in_Series=Page
 +
|Keywords=List (,) of Text
 +
}}
 +
</noinclude>
 
<includeonly>{{#if:{{{Subtitle|}}}|<div style="margin-left: 15px;">
 
<includeonly>{{#if:{{{Subtitle|}}}|<div style="margin-left: 15px;">
 
==={{{Subtitle|}}}===
 
==={{{Subtitle|}}}===
</div>}}<div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12 col-md-9">{{#if:{{{Summary|}}}|{{{Summary}}}
+
</div>}}<div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12 col-md-9">{{#if:{{{Summary|}}}|{{{Summary}}}}}{{#widget:AddThis}}
 
+
 
+
}}{{#widget:AddThis}}
+
{{#if:{{{Author|}}}|{{#set:Author=User:{{{Author|}}}}}}}{{#set:Gravatar MD5={{#show: User:{{{Author}}} | ?Gravatar MD5}}|Subtitle={{{Subtitle|}}}|Summary={{{Summary|}}}|Icon={{{Icon|}}}|Next in Series={{{Next in Series|}}}|Previous in Series={{{Previous in Series|}}}}}{{#if:{{{Previous in Series|}}}|<br>''Previous in series: [[{{{Previous in Series}}}]]''}}{{#if:{{{Next in Series|}}}|'''<br>Next in series: [[{{{Next in Series}}}]]'''}}
+
 
{{#seo:
 
{{#seo:
 
|title={{PAGENAME}}{{#if:{{{Subtitle|}}}|: {{{Subtitle}}}}}
 
|title={{PAGENAME}}{{#if:{{{Subtitle|}}}|: {{{Subtitle}}}}}
|keywords={{#if:{{{Author|}}}|{{#if: {{#show:User:{{{Author}}}|? Full name}}|{{#show:User:{{{Author}}}|?Full name}}  }} }},article,linux{{#if|{{{Keywords|}}},{{{Keywords}}}}}
+
|keywords=article,linux{{#if:{{{Keywords|}}}|,{{{Keywords}}}}}
 
|description={{{Summary|}}}
 
|description={{{Summary|}}}
 
}}
 
}}
{{Tip|[[Support Funtoo]] and help us grow! '''Donate $15 per month and get a free SSD-based [[Funtoo Hosting|Funtoo Virtual Container]].'''}}
+
{{Announce|{{SupportBlurb}}}}{{#cargo_store:
 +
_table=articles
 +
|Subtitle={{#vardefineecho:subtitle|{{{Subtitle|}}}}}
 +
|Summary={{#vardefineecho:summary|{{{Summary|}}}}}
 +
|Icon={{#vardefineecho:icon|{{{Icon|}}}}}
 +
|Author={{#vardefineecho:author|{{#if:{{{Author|}}}|{{Userify|{{{Author|}}}}}}}}}
 +
|Next_in_Series={{#vardefineecho:next|{{{Next in Series|}}}}}
 +
|Previous_in_Series={{#vardefineecho:prev|{{{Previous in Series|}}}}}
 +
|Keywords={{#vardefineecho:keywords|{{{Keywords|}}}}}
 +
}}
 
</includeonly>
 
</includeonly>

Latest revision as of 06:49, June 28, 2015

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