Difference between revisions of "Template:Subarch"

 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#widget:AddThis}}{{#if:{{{title|}}}|
+
<noinclude>
 +
{{#cargo_declare:_table=subarch|CFLAGS=Text|CHOST=Text|CPU_FLAGS=Text|CPU_Family=Page|Description=Text|Release_Date=Date|Subarch=Text|Title=Text}}
 +
</noinclude><includeonly>{{#widget:AddThis}}{{#if:{{{title|}}}|
 
{{DISPLAYTITLE:Download - {{{title}}}}}
 
{{DISPLAYTITLE:Download - {{{title}}}}}
 
|
 
|
 
{{DISPLAYTITLE:Download - {{{subarch}}}}}
 
{{DISPLAYTITLE:Download - {{{subarch}}}}}
 
}}'''This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].'''  
 
}}'''This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].'''  
 
+
{{#get_web_data:url=http://build.funtoo.org/index.xml|format=xml|use xpath|data=builds=/subarches/subarch[@name='{{{subarch|}}}']/@builds,chost=/subarches/subarch[@name='{{{subarch|}}}']/@CHOST,cflags=/subarches/subarch[@name='{{{subarch|}}}']/@CFLAGS,cpu_flags_x86=/subarches/subarch[@name='{{{subarch|}}}']/@CPU_FLAGS_X86}}{{#vardefine:builds|{{#external_value:builds}}}}{{#vardefine:cflags|{{#external_value:cflags}}}}{{#vardefine:chost|{{#external_value:chost}}}}{{#vardefine:cpu_flags_x86|{{#external_value:cpu_flags_x86}}}}{{#vardefine:subarch|{{{subarch|}}}}}
 
{{{Description|}}}
 
{{{Description|}}}
 
{{#seo:
 
{{#seo:
Line 11: Line 13:
 
|description=This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].
 
|description=This page lists CPU-optimized builds of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]].
 
}}
 
}}
{{#set:CPU Family={{{CPU Family|}}}|subarch={{{subarch|}}}|CHOST={{{CHOST|}}}|CFLAGS={{{CFLAGS|}}}|USE={{{USE|}}}|CPU Features={{{CPU Features|}}}|Description={{{Description|}}}|title={{{title|}}}}}
+
{{#set:CPU Family={{{CPU Family|}}}|subarch={{{subarch|}}}|CHOST={{#var:chost|{{{CHOST|}}}}}|CFLAGS={{#var:cflags|{{{CFLAGS|}}}}}|||CPU_FLAGS={{#var:cpu_flags_x86|{{{USE|}}}}}|Description={{{Description|}}}|title={{{title|}}}|release date={{{release date|January 2000}}}}}{{#cargo_store:
=== Optimizations ===
+
_table=subarch
 +
|CFLAGS={{#var:cflags|{{{CFLAGS|}}}}}
 +
|CHOST={{#var:chost|{{{CHOST|}}}}}
 +
|CPU_FLAGS={{#var:cpu_flags_x86|{{{USE|}}}}}
 +
|CPU_Family={{{CPU Family|}}}
 +
|Description={{{Description|}}}
 +
|Release_Date={{{release date|}}}
 +
|Subarch={{{subarch|}}}
 +
|Title={{{title|}}}
 +
}}
 +
=== CPU Information ===
 
__NOTOC__
 
__NOTOC__
 
{{TableStart}}
 
{{TableStart}}
<tr><td>CHOST</td><td><code>{{{CHOST|}}}</code></td></tr>
+
{{#if:{{{release date|}}}|<tr><td>Processor Release Date</td><td>{{{release date}}}</td></tr>}}
<tr><td>CFLAGS</td><td><code>{{{CFLAGS|}}}</code></td></tr>
+
<tr><td>CHOST</td><td><code>{{#var:chost|{{{CHOST|}}}}}</code></td></tr>
<tr><td>USE (see [[CPU_FLAGS]] for more info)</td><td>{{#if:{{{USE|}}}|<code>{{{USE}}}</code>|(none)}}</td></tr>
+
<tr><td>CFLAGS</td><td><code>{{#var:cflags|{{{CFLAGS|}}}}}</code></td></tr>
{{TableEnd}}{{#vardefine:subarch|{{{subarch|}}}}}{{#get_web_data:url=http://build.funtoo.org/index.xml|format=xml|use xpath|data=builds=/subarches/subarch[@name='{{{subarch|}}}']/@builds}}{{#vardefine:builds|{{#external_value:builds}}}}
+
<tr><td>CPU_FLAGS (see [[CPU_FLAGS]] for more info)</td><td>{{c|{{#var:cpu_flags_x86|{{{USE|(none)}}}}}}}</td></tr>
 +
{{TableEnd}}
 
=== Download ===
 
=== Download ===
 
{{#if:{{#var:builds}}|This section lists the Funtoo Linux builds currently available for download for '''{{{subarch}}}'''.  A full list of Funtoo Linux builds can be found on the [[Subarches]] page.
 
{{#if:{{#var:builds}}|This section lists the Funtoo Linux builds currently available for download for '''{{{subarch}}}'''.  A full list of Funtoo Linux builds can be found on the [[Subarches]] page.

Latest revision as of 06:26, June 23, 2015

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