Difference between pages "Template:Ebuild" and "Template:Article"

From Funtoo
(Difference between pages)
Jump to navigation Jump to search
 
 
Line 1: Line 1:
<noinclude>
<includeonly>{{#if:{{{Subtitle|}}}|'''{{{Subtitle|}}}'''}}
This is the "Ebuild" template.
<div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12 col-md-9">
It should be called in the following format:
{{#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|}}}|Previous in series: [[{{{Previous in Series}}}]]}}{{#if:{{{Next in Series|}}}|{{#if:{{{Previous in Series|}}}|<br>}}Next in series: [[{{{Next in Series}}}]]}}
<pre>
{{Ebuild
|Summary=
|CatPkg=
|Maintainer=
|Repository=
}}
</pre>
Edit the page to see the template text.
</noinclude><includeonly><div style="float: right; width: 30%; padding: 1em; margin-left: 1em; margin-bottom: 1em; border-radius: 10px; border: 1px solid #ddd; background-color: #efefef;" id="eb_infobox">
<b><tt>[[CatPkg::{{{CatPkg|}}}]]</tt></b>
<hr>
<table border="0" width="100%">
{{#if: {{{Maintainer|}}} |<tr><td><i>Current Maintainer(s):</i></td><td>{{#arraymaptemplate:{{{Maintainer|}}}|MaintainerDisplay|,|,}}</td></tr> |}}{{#if: {{{Repository|}}}|<tr><td><i>Source Repository:</i></td><td>[[Repository::Repository:{{{Repository}}}|{{{Repository}}}]] </td></tr>|}}</table><hr>
<b>Summary:</b> [[Summary::{{{Summary|}}}]]
</div><div id="ebuild_header"><div id="ebuild_logo" style="padding-bottom: 1em;">[[File:ebuild.png|link=|frameless]]</div><div id="ebuild_title">
= {{PAGENAME}} =
</div>
{{#vardefine:cat|{{#explode:{{{CatPkg}}|/|0}}
{{#vardefine:pkg|{{#explode:{{{CatPkg}}|/|1}}
{{#get_web_data:url=http://ports.funtoo.org/packages.xml|format=xml|use xpath|data=repo_id=/packages/category[@name='{{#var:cat}}']/package[@name='{{#var:pkg}}']/@repository}}


{{#set|RepoID={{#external_value:repo_id}}}}
{{Tip|[[Support Funtoo]] and help us grow! '''Donate $15 per month and get a free SSD-based [[Funtoo Hosting|Funtoo Virtual Container]].'''}}
</includeonly>
</includeonly>

Revision as of 01:13, January 2, 2015