|
|
Line 1: |
Line 1: |
| {{#gravatar_md5:drobbins@funtoo.org}}
| | <noinclude> |
| {{filepath:Awesome.jpg|64}}
| | Use like so: |
| {{filepath:File:Awesome.jpg|128}}
| |
| {{#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=
| |
| 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 ==
| | <pre> |
| | | {{News |
| {{#ask: [[Category:News]] [[Publication Status::Published]] | | |Summary=Test News Item |
| | ?Publication Date | | |News Category=General |
| | ?News Category | | |Author=Drobbins |
| | ?Summary | | |Publication Status=Draft |
| | ?Author # -
| | |Publication Date=2014/10/16 |
| | ?Gravatar MD5 | | |Icon=File:foobar.jpg |
| | ?Icon # -
| | |News Format=Short (or Extended) |
| | ?News Format
| |
| | order=descending
| |
| | sort=Publication Date | |
| | format=template
| |
| | template=NewsDisplay
| |
| | limit=10
| |
| }}
| |
| | |
| == Other Stuff ==
| |
| | |
| {{Package|sys-apps/portage}}
| |
| | |
| == Badabing ==
| |
| | |
| {{#ask: [[Category:People]]
| |
| | limit=20 | |
| | order=random
| |
| | format=template
| |
| | template=GravatarDisplay
| |
| | link=none
| |
| | searchlabel=
| |
| }}
| |
| | |
| == Table test ==
| |
| <div class="table-responsive"><table class="table"><tr><td>Hello</td></tr><tr><td>Hello</td></tr><tr><td>Hello</td></tr></table></div>
| |
| | |
| == Testing error on Show ==
| |
| | |
| * {{#show:User:JanZhou|?full name}}
| |
| * {{#show:User:Drobbins|?full name}}
| |
| | |
| | |
| {{DISPLAYTITLE:Bob Boblaw}}
| |
| [[Category:Test]]
| |
| | |
| Adding some text
| |
| | |
| == Testing External Data ==
| |
| | |
| | |
| {{#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}}
| |
| | |
| {{#display_external_table:template=MemberDisplay|data=ircnick,fullname}}
| |
| | |
| Daniel Robbins:drobbins:bdfl
| |
| | |
| {{file|name=foobar|lang=python|desc=foobarosity|body=
| |
| import system
| |
| }} | | }} |
| | </pre> |
|
| |
|
| {{file|name=/etc/foo.conf|desc=My foo.conf file|body= | | </noinclude><includeonly> |
| # /etc/host.conf: | | <div class="container" style="margin-top: 20px;"><div class="row"><div class="col-xs-12"> |
| # $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/host.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $ | | = {{PAGENAME}} = |
| | | {{#ifeq:{{{Publication Status|}}|Draft|{{NotYetPublished}}}}{{#set:Summary={{{Summary|}}}|News Category={{{News Category|}}}|Publication Status={{{Publication Status|}}}|Icon={{{Icon|}}}|Publication Date={{{Publication Date|}}}|News Format={{{News Format}}}}} |
| # The file /etc/host.conf contains configuration information specific to
| | {{#set:Author=User:{{{Author|}}}|Gravatar MD5={{#show: User:{{{Author}}} | ?Gravatar MD5}}}} |
| # the resolver library. It should contain one configuration keyword per | | {{#ifeq:{{{News Format|}}}|Extended| |
| # line, followed by appropriate configuration information. The keywords
| | {{#widget:NewsInfo|body={{{Summary|}}}|user={{{Author|}}}|icon_url={{#if:{{{Icon|}}}|{{filepath:{{#sub:{{{Icon}}}|5}}|64}}|http://www.gravatar.com/avatar/{{#show: User:{{{Author}}} | ?Gravatar MD5}}/?s=64&d=retro&r=g}}|date={{#time:F j, Y|{{{Publication Date}}}}} |
| # recognized are order, trim, mdns, multi, nospoof, spoof, and reorder.
| | }}}} |
| | | </div></div><div class="row"><div class="col-xs-12"> |
| | | </includeonly> |
| | |
| # This keyword specifies how host lookups are to be performed. It
| |
| # should be followed by one or more lookup methods, separated by
| |
| # commas. Valid methods are bind, hosts, and nis.
| |
| #
| |
| order hosts, bind
| |
| | |
| | |
| # Valid values are on and off. If set to on, the resolv+ library
| |
| # will return all valid addresses for a host that appears in the
| |
| # /etc/hosts file, instead of only the first. This is off by
| |
| # default, as it may cause a substantial performance loss at sites
| |
| # with large hosts files.
| |
| #
| |
| multi on
| |
| }}
| |