Difference between pages "Package:Whiskermenu" and "Template:Ebuild"

(Difference between pages)
 
(testing something...)
 
Line 1: Line 1:
 +
<noinclude>
 +
This is the "Ebuild" template.
 +
It should be called in the following format:
 +
<pre>
 
{{Ebuild
 
{{Ebuild
|Summary=This package installs the Whiskermenu plugin for xfce4, which serves as an alternative to the default application menu.
+
|Summary=
|CatPkg=xfce-extra/xfce4-whiskermenu-plugin
+
|CatPkg=
 
|Maintainer=
 
|Maintainer=
|Homepage=http://gottcode.org/xfce4-whiskermenu-plugin/
+
|Homepage=
|Repository=Gentoo Portage Tree
+
 
}}
 
}}
The Whiske Menu homepage states that:
+
</pre>
<br>
+
Edit the page to see the template text.
"Whisker Menu is an alternate application launcher for Xfce. When you open it you are shown a list of applications you have marked as favorites. You can browse through all of your installed applications by clicking on the category buttons on the side. Top level categories make browsing fast, and simple to switch between. Additionally, Whisker Menu keeps a list of the last ten applications that you’ve launched from it."
+
</noinclude><includeonly>__NOTOC__<div style="float: right; clear: both; width: 30%; padding: 1em; margin-left: 1em; margin-bottom: 1em; border-radius: 10px; border: 1px solid #ddd; background-color: #efefef;" id="eb_infobox">
== Install ==
+
<b><tt>[[CatPkg::{{{CatPkg|}}}]]</tt></b>
To install Whisker Menu, emerge it:
+
<hr>{{#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}}{{#vardefine:repoid|{{#if:{{#external_value:repo_id}}|{{#external_value:repo_id}}|gentoo}}}}{{#set:RepoID={{#var:repoid}}}}
<console>
+
<table border="0" width="100%">
###i## emerge xfce4-whiskermenu-plugin
+
{{#if: {{{Maintainer|}}} |<tr><td><i>Current Maintainer(s):</i></td><td>{{#arraymaptemplate:{{{Maintainer|}}}|MaintainerDisplay|,|<br>}}</td></tr> |}}{{#if: {{{Homepage|}}} |<tr><td></td><td><tr><td><i>Source Repository:</i></td><td>{{#ask:[[Category:Repositories]] [[Repository ID::{{#var:repoid}}]]}}</td></tr>[[Homepage::{{{Homepage|}}}|Homepage]]</td></tr> |}}</table><hr>
</console>
+
<b>Summary:</b> [[Summary::{{{Summary|}}}]]
 
+
</div>
After Whisker Menu has been emerged, we must enable it. To do this:  
+
{{#get_web_data:url=http://ports.funtoo.org/packages.xml|format=xml|use xpath|data=use=/packages/category[@name='{{#var:cat}}']/package[@name='{{#var:pkg}}']/@use}}
# Right click on the panel that you want to add Whisker Menu to, select panel, and then panel preferences.
+
{{#set:Use={{#external_value:use}}}}
# Click on the items tab.
+
{{#if: {{#external_value:use}}|<div style="float: right; clear: both; width: 30%; padding: 1em; margin-left: 1em; margin-bottom: 1em; border-radius: 10px; border: 1px solid #ddd; background-color: #efefef;" id="eb_infobox">
# Click the plus button on the right-hand side of the window to add a new plugin to the panel.
+
== Use Flags ==
# Scroll down the list and select 'Whisker Menu', then click 'Add'.
+
{{#arraymaptemplate:{{#external_value:use}}|ExternUse|,|}}
 
+
</div>
While you are in the panel editing mode, Whisker Menu can be moved around to your liking by dragging it with the mouse.
+
}}
 
+
<div id="ebuild_header"><div id="ebuild_logo" style="padding-bottom: 1em;">[[File:ebuild.png|link=|frameless]]</div><div id="ebuild_title">
== Configuration ==
+
= {{PAGENAME}} =
To configure Whisker Menu, right click on its icon in the panel, then select 'Properties'.
+
</div></includeonly>
{{EbuildFooter}}
+

Revision as of 22:30, 18 September 2014

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

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

Edit the page to see the template text.