Difference between revisions of "Template:Subarch"

(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>{{#widget:AddThis}}{{#if:{{{title|}}}|
 
<includeonly>{{#widget:AddThis}}{{#if:{{{title|}}}|
{{DISPLAYTITLE:Funtoo Linux - {{{title}}}}}
+
{{DISPLAYTITLE:Download - {{{title}}}}}
 
|
 
|
{{DISPLAYTITLE:Funtoo Linux - {{{subarch}}}}}
+
{{DISPLAYTITLE:Download - {{{subarch}}}}}
 
}}This page describes a CPU-optimized build of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]]. {{{Description|}}}
 
}}This page describes a CPU-optimized build of Funtoo Linux for {{#if:{{{title|}}}|{{{title}}} ({{{subarch}}} subarch)|{{{subarch}}}}} [[{{{CPU Family}}}]]. {{{Description|}}}
 
{{#seo:
 
{{#seo:
Line 12: Line 12:
 
=== Optimizations ===
 
=== Optimizations ===
 
__NOTOC__
 
__NOTOC__
{{table|1=
+
{{TableStart}}
 
<tr><td>CHOST</td><td><code>{{{CHOST|}}}</code></td></tr>
 
<tr><td>CHOST</td><td><code>{{{CHOST|}}}</code></td></tr>
 
<tr><td>CFLAGS</td><td><code>{{{CFLAGS|}}}</code></td></tr>
 
<tr><td>CFLAGS</td><td><code>{{{CFLAGS|}}}</code></td></tr>
 
<tr><td>USE</td><td>{{#if:{{{USE|}}}|<code>{{{USE}}}</code>|(none)}}</td></tr>
 
<tr><td>USE</td><td>{{#if:{{{USE|}}}|<code>{{{USE}}}</code>|(none)}}</td></tr>
}}{{#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}}}}{{#if:{{#var:builds}}|
+
{{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}}}}
 
+
 
=== Download ===
 
=== Download ===
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.
 
{{table|1=
 
{{table|1=
<tr><td class="active">build</td><td class="active">variant</td><td class="active">latest build</td><td class="active">Download</td><td class="active">Browse Mirror</td></tr>
+
<tr><th class="active">Build</th><th class="active">Variant</th><th class="active">Latest Build</th><th class="active">Download</th><th class="active">Browse Mirror</th></tr>{{#arraymaptemplate:{{#var:builds}}|DisplayBuilds|,|}}}}|No downloadable stage builds are currently available for this sub-architecture.}}
{{#arraymaptemplate:{{#var:builds}}|DisplayBuilds|,|}}}}|No downloadable stage builds are currently available for this sub-architecture.}}
+
 
[[Category:Subarches]]
 
[[Category:Subarches]]
 
__NOEDITSECTION__
 
__NOEDITSECTION__
=== Description ===
+
=== Detailed Description ===
 
</includeonly>
 
</includeonly>

Revision as of 07:57, January 6, 2015