Difference between revisions of "HypertWiki:Code/lib/data"

From HypertWiki
Jump to navigation Jump to search
(reverted ShowRecentBlogEntries to working version)
(first attempt at Chriswaterguy's format)
Line 116: Line 116:
     <let name=e.out append copy=data[Title] />
     <let name=e.out append copy=data[Title] />
     <let name=e.out append>]] &sect; </let>
     <let name=e.out append>]] &sect; </let>
    <let name=text copy=data[TextAbove] />
    <if flag=text></if><else>
      <let name=text copy=data[TextBelow] len=200 />
    </else>
    <let name=e.out append copy=text trim />
    <let name=e.out append> ''[[</let>
    <let name=e.out append copy=pg_name />
    <let name=e.out append>|more...]]''</let>
</func>
<func GetBlogEntryBriefChrisFormat>
INPUT:
  data[*] - from blog entry page
  pg_name - full name of page being displayed (including namespace)
    <if not flag=noLoad>
      <load page=$pg_name />
    </if>
    <let name=e.out></let>
    <let name=e.out append><big>[[</let>
    <let name=e.out append copy=pg_name />
    <let name=e.out append>|</let>
    <let name=e.out append copy=data[Title] />
    <let name=e.out append>]]</big>, ''</let>
    <let name=e.out append copy=data[TimeStamp] />
    <let name=e.out append>''
</let>


     <let name=text copy=data[TextAbove] />
     <let name=text copy=data[TextAbove] />

Revision as of 13:06, 5 May 2010