注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

阿弥陀佛

街树飘影未见尘 潭月潜水了无声 般若观照心空静...

 
 
 

日志

 
 
关于我

一直从事气象预报、服务建模实践应用。 注重气象物理场、实况场、地理信息、本体知识库、分布式气象内容管理系统建立。 对Barnes客观分析, 小波,计算神经网络、信任传播、贝叶斯推理、专家系统、网络本体语言有一定体会。 一直使用Java、Delphi、Prolog、SQL编程。

网易考拉推荐

RAMADDA Basic Wiki Properties  

2013-01-04 10:11:25|  分类: Ramadda |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
10.1.4 Basic Wiki Properties
The first set of property tags show some information for the entry. Note: the attributes are all optional.
  • {{name}}: Entry name
  • {{entryid}}: Entry ID
  • {{description}}: Entry description
  • {{fromdate format="date time format"}}, {{todate format="date time format"}}: From date/to date of entry. If specified, format the date with the given date time format. This follows the Java date format conventions.
  • {{information}}: The information tabs.
  • {{properties}}: Show the properties listing.
  • {{html}}: Shows the default html view of the entry. Note: this requires an entry="..." to specify a different entry.
  • {{map width="width of map" height="height of map"}}: Display a map. If the entry is a folder then display the children entries of the folder.
  • {{mapentry width="width of map" height="height of map"}}: Display a map just for a group. If you used the map tag with a folder then the children get mapped. The mapentry tag says to make a map for just the entry.
  • {{earth width="width of map" height="height of map"}}: If enabled, display the Google Earth plugin. To enable the Google Earth see the Admin help.
  • {{comments}}: Show the comments.
  • {{breadcrumbs}}: Show the breadcrumb path.
  • {{layout}}: This shows the "Layout:" toolbar bar for an entry.
  • {{toolbar}}: Show the entry toolbar.
  • {{image src="http://hxfcalf.blog.163.com/blog/image source" alt="alt text" width="image width" link="true|false" left="absolute position" top="absolute position" linkresource="true|false" alt="image alt label"}}: Include an image. If src is not given then this shows the image (if there is one) from the entry. If src is specified it can take on the form:
    src="http://hxfcalf.blog.163.com/blog/entry name" 
    to show an entry. This is equivalent to using entry="...". You can also specify the name of a file attachment to an entry with:
    entry="entryid" src="http://hxfcalf.blog.163.com/blog/::attachment name" 
    Or any attachment with:
    entry="entryid" src="http://hxfcalf.blog.163.com/blog/::*" 
    If link is true, the image displayed will be linked to the entry page, if linkresource is true, it will be linked to the full sized image (the entry resource). height and width can be used to scale the image, the alt attribute will be used in place of the entry id as a label on the image for accessibility.
  • {{menu popup="true|false" title="title to use" menus="file,edit,feeds,view,other"}}: Show the menu actions. If menus is not specified show all of the menus. If menus is specified only show those menus listed. Show all menus in a toggle block:
    {{menu}} 
    You can specify which menus to show with a comma separated list of menu names. Only show the file and view menu:
    {{menu menus="file,view"}} 
    Show the menu actions in a popup:
    {{menu popup="true" title="Click here"}} 
10.1.5 Collection Wiki Properties
The following properties display a collection of entries. By default they are the children entries of the wiki entry but you can specify other groups of entries with:
{{property entry="some other entry" folders="true" files="true"                 type="entries of a specific type" level="1 or 2"                 associations="true|false"                 entries="entryid1,entryid2,entryid3.."                 exclude="entryid1,entryid2,entryid3.."                  first="entryid1,entryid2,entryid3.."                  sort="name|date"  sortorder="up|down"                images="true" count="number of entries to use" }}
    • If folders is set then only show folder like entries.
    • If files is set then only show non folders.
    • If type is set then only show entries of that type.
    • The attribute level can be set to "1" (the default) or "2". Level 1 refers to the immediate children entries of the given entry. Level 2 refers to the grandchildren entries (i.e., the children of the children).
    • If associations is set to true then the entries that are used are those that the current entry has an association to. Associations are named and typed links between arbitrary entries.
    • If entries is set to a list of comma separated entry ids, then only those entrys are included.
    • Exclude any entries in the exclude comma separated list of entry ids.
    • Place any entries specified by first at the beginning of the list.
    • Sort entries by name or date with sort
    • If images is set to true then only entries that are image files are included
  • {{tree}}: The {{tree}} tag is used to display the children entries of a folder. It can take the form:
    {{tree title="Links" showtoggle="false" open="true"}}
    The title attribute is used in place of "Children". If showtoggle="false" then the show/hide toggle link is not shown.
  • {{grid}}: Show the children in a grid. e.g., show the grandchildren as a grid:
    {{grid level="2"}}
  • {{recent days="number of days to show"}}: Show the most recent N days in a list organized by day.
  • {{imageplayer width="image width"}}: Show images in an image player, e.g.
    {{imageplayer}}
  • {{gallery width="image width" columns="number of columns" }}: Show a 3 column gallery:
    {{gallery columns="3"}}
    Show a vertical listing of the grandchildren entry images:
    {{gallery level="2" columns="1"}}
    Set the image width and only show up to 5 images:
    {{gallery  width="300" count="5"}}
  • {{tabs}}: Show the children as tabs:
    {{tabs}}
    Show only the 3 specified entries in tabs:
    {{tabs entries="0af4d166-5723-4775-88fc-b83b72ab47a4,                  83539d5c-e9d9-408e-b0af-35f480000ae6,                  49684d25-6af1-4188-a0ae-4d5302d22f2a" }}
    Show only the children of type wikipage in tabs:
    {{tabs type="wikipage"}}
    Additional arguments:
    • usedescription="true|false" - show the description instead of the entry
    • wikify="true|false" - convert any wiki tags in the description (default: true)
    • showlink="true|false" - show a link to the entry (default: true)
    • linklabel="label" - if showlink is true, use label in place of the entry name
    • imagewidth="width" - width of images
    • maximageheight="max height" - maximum height of images
    • linkresource="true|false" - if true, link to the entry resource
    • includeicon="true|false" - if true, include the appropriate icon in the tab
  • {{accordian}}: Show the children in an accordian:
    {{accordian}}
    Uses the same arguments as tabs.
  • {{slideshow}}: Show the children in a slideshow:
    {{slideshow}}

    Uses the same arguments as tabs, plus:

    • autoplay="true|false" - if true, start the slideshow (default: false)
    • speed="secs" - number of seconds to pause on each entry in slideshow
    • border="pixs" - border size in pixels
    • bordercolor="color" - border color (name or hexadecimal value)
    • width="width" - width of the display
    • height="height" - height of the display

  • {{links separator="separator text to use" style="inline css style for the link" class="css class for the link" tagopen="html to prepend to the link - default is li" tagclose="close html" linkresource="true|false if true link to the entry's file or URL; If false link to the entry"}}: Layout links to the entries.
    This produces a set of links to the entries. A bulleted list:
    <ul> {{links}} </ul> 
    A bulleted list with the links to the entry's file:
    <ul> {{links linkresource="true"}} </ul> 
    If you wanted to make a vertical list do:
    {{links tagopen="<div>" tagclose="</div>"}} 
    You can create a header with wiki text like:
    <center> {{links separator="&nbsp;|&nbsp" tagopen=""}} </center> 
10.1.6 Hiding and showing content
The <block> tag allows you to easily create a toggle block and/or show or hide content based on the user's device. To show a simple toggle block just do:
<block>  any content here </block> 
You can specify the toggle label title with:
<block title="Click here to open">  any content here </block> 
You can specify whether the block is open or closed:
<block open="false">  any content here </block> 
You can specify whether to show the content or not:
<block show="mobile" decorate="false">   this will only show for mobile users </block> <block show="!mobile" decorate="false">   this will only show for non-mobile users </block> 
10.1.7 Importing any page
You can also import any of the views of an entry, e.g., the map view, the OPeNDAP view, the calendar view, etc., with the {{import}} tag:
{{import output=""}}

So, if you wanted to show the calendar view of an entry you would do:

{{import output="calendar.calendar"}}
To find the correct output identifier just navigate to the page you want to include and look at the url for the output=... url argument and use that.

  评论这张
 
阅读(493)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017