Difference between revisions of "Test"

From Funtoo
Jump to navigation Jump to search
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
[[TestProp::foo]]
[[TestProp::bar]]
[[TestProp::oni]]
<in/>
{{#subobject:foo|TestProp=blah}}
{{#subobject:bar|TestProp=blarg}}
{{#subobject:oni|TestProp=bleh}}
{{#subobject:ble|Country=#!/bin/bash
# -*-eselect-*-  vim: ft=eselect
# Copyright (c) 2005-2014 Gentoo Foundation
#
# This file is part of the 'eselect' tools framework.
#
# eselect is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 2 of the License, or (at your option) any later
# version.
#
# eselect is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# eselect.  If not, see <http://www.gnu.org/licenses/>.


<h2>foobar</h2>
# Where are our data?
ESELECT_DATA_PATH="/usr/share/eselect"


# Where are modules installed by default?
ESELECT_DEFAULT_MODULES_PATH="${ESELECT_DATA_PATH}/modules"


{{#gravatar_md5:drobbins@funtoo.org}}
# Look in these places for modules
{{filepath:Awesome.jpg|64}}
ESELECT_MODULES_PATH=( \
{{filepath:File:Awesome.jpg|128}}
        "${HOME}/.eselect/modules" \
{{#Widget:NewsDisplay|user=Drobbins|gravatar_url=http://www.gravatar.com/avatar/7490f23fe709b41d3be4f79549a679f8?s=80&d=retro&r=g|title=This is a news item!|format=Short|body=
        "${ESELECT_DEFAULT_MODULES_PATH}" )
blahasl adslfkas flasf lasdfksad lfasdlkf dsalfk dslfkasd lfdsakf als sadlfdsal f}}
{{#Widget:NewsDisplay|user=Drobbins|gravatar_url=http://www.gravatar.com/avatar/7490f23fe709b41d3be4f79549a679f8?s=80&d=retro&r=g|title=This is a news item!| body=
blahasl adslfkas flasf lasdfksad lfasdlkf dsalfk dslfkasd lfdsakf als sadlfdsal f}}


== News Items ==
# Look in this place for libraries
ESELECT_CORE_PATH="${ESELECT_DATA_PATH}/libs"


# Look here for the default contents of a module
ESELECT_DEFAULT_ACTIONS="${ESELECT_CORE_PATH}/default.eselect"
# Our program name and version
ESELECT_PROGRAM_NAME="eselect"
ESELECT_VERSION="1.4.3"
}}
{{#ask: [[-Has subobject::{{FULLPAGENAME}}]] }}
{{#ask: [[Category:News]] [[Publication Status::Published]]
{{#ask: [[Category:News]] [[Publication Status::Published]]
| ?#-
|  
| ?Publication Date
| ?News Category
| ?Summary
| ?Author # -
| ?Gravatar MD5
| ?Icon # -
| ?News Format
| order=descending
| order=descending
| sort=Publication Date
| sort=Publication Date
| format=template
| format=feed
| template=NewsDisplay
| page=full
| limit=10
| title=Funtoo Linux News
| mainlabel=-
| description=Latest Funtoo Linux news
}}
|type=atom
 
== Other Stuff ==
 
{{Package|sys-apps/portage}}
 
== Badabing ==
 
{{#ask: [[Category:People]]
| limit=20
| limit=20
| order=random
| format=template
| template=GravatarDisplay
| link=none
| searchlabel=
}}
}}


== Table test ==
{{#get_web_data:url=http://build.funtoo.org/index.xml|format=xml|use xpath|data=builds=/subarches/subarch[@name='amd64-bulldozer']/@builds}}
<div class="table-responsive"><table class="table"><tr><td>Hello</td></tr><tr><td>Hello</td></tr><tr><td>Hello</td></tr></table></div>
;Builds: {{#external_value:builds}}
 
== Testing error on Show ==
 
* {{#show:User:JanZhou|?full name}}
* {{#show:User:Drobbins|?full name}}
 
 
{{DISPLAYTITLE:Bob Boblaw}}
[[Category:Test]]


Adding some text
asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf
<div style="align: center;">
[[{{#show: Organization:Brownrice Internet| ?Logo|link=none}}|350px|class=img-orglogo|link=Organization:Brownrice Internet]]<br/>
[[Organization:Brownrice Internet|Learn about Funtoo-friendly organization: Brownrice Internet]]</div>
asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf
{{fullurl:News:The Many Builds of Funtoo Linux}}
{{#widget:AddThis}}


== Testing External Data ==
I like the {{f|/etc/make.conf}} file, which can also be referred to as {{f|/etc/portage/make.conf}}. It is a groovy file. Another cool file is {{f|/etc/fstab}}.


=== make.conf mentions ===


{{#get_web_data:url=http://auth.funtoo.org:9093/static/members.xml|format=xml|use xpath|data=ircnick=/members/user/ircnick,fullname=/members/user/fullname}}
{{#ask: [[Mentions file::make.conf]]
 
| format=category
{{#display_external_table:template=MemberDisplay|data=ircnick,fullname}}
 
Daniel Robbins:drobbins:bdfl
 
{{file|name=foobar|lang=python|desc=foobarosity|body=
import system
}}
}}


{{file|name=/etc/foo.conf|desc=My foo.conf file|body=
{{console|body=
# /etc/host.conf:
# ##i##bluetoothctl
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $
[##g##NEW##!g##] Controller 00:02:72:C9:62:65 antec [default]
 
##bl##[bluetooth]##!bl###power on
# The  file /etc/host.conf contains configuration information specific to
Changing power on succeeded
# the resolver library.  It should contain one configuration keyword  per
##bl##[bluetooth]##!bl### ##i##agent on
# line,  followed by appropriate configuration information.  The keywords
Agent registered
# recognized are order, trim, mdns, multi, nospoof, spoof, and reorder.
##bl##[bluetooth]##!bl### ##i##scan on
 
Discovery started
 
##bl##[bluetooth]##!bl### ##i##devices
 
Device 00:1F:20:3D:1E:75 Logitech K760
# This keyword specifies how host lookups are to be performed. It
##bl##[bluetooth]##!bl### ##i##pair 00:1F:20:3D:1E:75
# should be followed by one or more lookup methods, separated by
Attempting to pair with 00:1F:20:3D:1E:75
# commas.  Valid methods are bind, hosts, and nis.
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: yes
#
##r##[agent]##!r## Passkey: 454358
order hosts, bind
##r##[agent]##!r## Passkey: ##i##4##!i##54358
 
##r##[agent]##!r## Passkey: ##i##45##!i##4358
 
##r##[agent]##!r## Passkey: ##i##454##!i##358
# Valid  values are on and off.  If set to on, the resolv+ library
##r##[agent]##!r## Passkey: ##i##4543##!i##58
# will return all valid addresses for a host that appears  in  the
##r##[agent]##!r## Passkey: ##i##45435##!i##8
# /etc/hosts  file,  instead  of  only  the first.  This is off by
##r##[agent]##!r## Passkey: ##i##454358##!i##
# default, as it may cause a substantial performance loss at sites
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Paired: yes
# with large hosts files.
Pairing successful
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: no
##bl##[bluetooth]##!bl### ##i##connect 00:1F:20:3D:1E:75
Attempting to connect to 00:1F:20:3D:1E:75
[##y##CHG##!y##] Device 00:1F:20:3D:1E:75 Connected: yes
Connection successful
##bl##[bluetooth]##!bl### ##i##quit
[##r##DEL##!r##] Controller 00:02:72:C9:62:65 antec [default]
#
#
multi on
}}
}}

Revision as of 04:35, February 19, 2015

TestProp::foo TestProp::bar TestProp::oni <in/> {{#subobject:foo|TestProp=blah}} {{#subobject:bar|TestProp=blarg}} {{#subobject:oni|TestProp=bleh}} {{#subobject:ble|Country=#!/bin/bash

  1. -*-eselect-*- vim: ft=eselect
  2. Copyright (c) 2005-2014 Gentoo Foundation
  3. This file is part of the 'eselect' tools framework.
  4. eselect is free software: you can redistribute it and/or modify it under the
  5. terms of the GNU General Public License as published by the Free Software
  6. Foundation, either version 2 of the License, or (at your option) any later
  7. version.
  8. eselect is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  10. A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License along with
  12. eselect. If not, see <http://www.gnu.org/licenses/>.
  1. Where are our data?

ESELECT_DATA_PATH="/usr/share/eselect"

  1. Where are modules installed by default?

ESELECT_DEFAULT_MODULES_PATH="${ESELECT_DATA_PATH}/modules"

  1. Look in these places for modules

ESELECT_MODULES_PATH=( \

       "${HOME}/.eselect/modules" \
       "${ESELECT_DEFAULT_MODULES_PATH}" )
  1. Look in this place for libraries

ESELECT_CORE_PATH="${ESELECT_DATA_PATH}/libs"

  1. Look here for the default contents of a module

ESELECT_DEFAULT_ACTIONS="${ESELECT_CORE_PATH}/default.eselect"

  1. Our program name and version

ESELECT_PROGRAM_NAME="eselect" ESELECT_VERSION="1.4.3" }}

{{#ask: -Has subobject::Test }} {{#ask: Publication Status::Published | | order=descending | sort=Publication Date | format=feed | page=full | title=Funtoo Linux News | description=Latest Funtoo Linux news |type=atom | limit=20 }}

Exception parsing XML: String could not be parsed as XML.

Builds

asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf

[[{{#show: Organization:Brownrice Internet| ?Logo|link=none}}|350px|class=img-orglogo|link=Organization:Brownrice Internet]]

Learn about Funtoo-friendly organization: Brownrice Internet

asdflk asdlfk asdlf alsdf lasd flasd flasd flasd flasd flasd flasd flas dflasd flasdl flasdf lasdfl alsdf lasdf lasdflafsd la sdf https://www.funtoo.org/News:The_Many_Builds_of_Funtoo_Linux

I like the /etc/make.conf file, which can also be referred to as /etc/portage/make.conf. It is a groovy file. Another cool file is /etc/fstab.

make.conf mentions

{{#ask: Mentions file::make.conf | format=category }}

root # bluetoothctl 
[NEW] Controller 00:02:72:C9:62:65 antec [default]
root ##bl##[bluetooth]##!bl###power on
Changing power on succeeded
root ##bl##[bluetooth]##!bl### agent on
Agent registered
root ##bl##[bluetooth]##!bl### scan on
Discovery started
root ##bl##[bluetooth]##!bl### devices
Device 00:1F:20:3D:1E:75 Logitech K760
root ##bl##[bluetooth]##!bl### pair 00:1F:20:3D:1E:75
Attempting to pair with 00:1F:20:3D:1E:75
[CHG] Device 00:1F:20:3D:1E:75 Connected: yes
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
root ##r##[agent]##!r## Passkey: 454358
[CHG] Device 00:1F:20:3D:1E:75 Paired: yes
Pairing successful
[CHG] Device 00:1F:20:3D:1E:75 Connected: no
root ##bl##[bluetooth]##!bl### connect 00:1F:20:3D:1E:75
Attempting to connect to 00:1F:20:3D:1E:75
[CHG] Device 00:1F:20:3D:1E:75 Connected: yes
Connection successful
root ##bl##[bluetooth]##!bl### quit
[DEL] Controller 00:02:72:C9:62:65 antec [default]
root #