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

(Difference between pages)
 
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "Repository" template.
+
This is the "Ebuild" template.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{Repository
+
{{Ebuild
|Repository ID=
+
|Summary=
|Repository Type=
+
|CatPkg=
 
|Maintainer=
 
|Maintainer=
|Organization=
+
|Repository=
|Homepage=
+
|Source URI=
+
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
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="ov_infobox">
+
</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%">
 
<table border="0" width="100%">
<tr><td><i>Repository Type:</i></td><td>[[Repository Type::{{{Repository Type|}}}]]</td></tr>
+
{{#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>
<tr><td><i>Repository ID:</i></td><td>[[Repository ID::{{{Repository ID|}}}]]</td></tr>
+
<b>Summary:</b> [[Summary::{{{Summary|}}}]]
{{#if: {{{Maintainer|}}} |<tr><td><i>Current Maintainer(s):</i></td><td>{{#arraymaptemplate:{{{Maintainer|}}}|MaintainerDisplay|,|<br>}}</td></tr> |}}
+
</div><div id="ebuild_header"><div id="ebuild_logo" style="padding-bottom: 1em;">[[File:ebuild.png|link=|frameless]]</div><div id="ebuild_title">
<tr><td><i>Organization:</i></td><td>[[Organization::Organization:{{{Organization|}}}|{{{Organization|}}}]]</td></tr>
+
<tr><td><i>Links:</i></td><td>[[Homepage::{{{Homepage|}}}|Home Page]]</td></tr>
+
{{#if:{{{Source URI|}}}|<tr><td></td><td>[[Source URI::{{{Source URI|}}}|Source Repository URL]]</td></tr>|}}
+
</table>
+
</div>
+
 
= {{PAGENAME}} =
 
= {{PAGENAME}} =
 +
</div>
 
</includeonly>
 
</includeonly>
 +
{{#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}}
 +
{{#vardefine:cat|{{#explode:{{{CatPkg}}|/|0}}
 +
{{#vardefine:pkg|{{#explode:{{{CatPkg}}|/|1}}
 +
{{#set|RepoID={{#external_value:repo_id}}}}

Revision as of 00:47, June 25, 2014

This is the "Ebuild" template. It should be called in the following format:

{{Ebuild
|Summary=
|CatPkg=
|Maintainer=
|Repository=
}}

Edit the page to see the template text.


{{#vardefine:cat|{Template:CatPkg {{#vardefine:pkg| {{#set|RepoID=}}