logtag.mdwn 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. This is a template for use in tag pages. It lists the pages tagged by the tag
  2. in chronological order. It's useful for filtering news feeds, blogs, etc. For
  3. general name-based listing, see the [[wikitag]] template. Parameters:
  4. - `settitle`: If set (e.g. to "yes"), the page title is set using the meta
  5. directive. If the template is the only thing only thing in the
  6. tag page, it's probably useful. Otherwise, probably not. If not
  7. set, the same text is inserted into the the page before the list,
  8. instead of in the title.
  9. (default: no)
  10. - `pages`: If set, pick only pages which patch this pagespec. Otherwise, take
  11. from the entire wiki. (default: entire wiki)
  12. [[!templatebody <<ENDBODY
  13. <TMPL_IF settitle>
  14. [[!meta title="Pages tagged <TMPL_VAR PAGE>"]]
  15. <TMPL_ELSE>
  16. Pages tagged <TMPL_VAR PAGE>:
  17. </TMPL_IF>
  18. [[!inline
  19. <TMPL_IF pages>
  20. pages="<TMPL_VAR raw_pages> and tagged(.)"
  21. <TMPL_ELSE>
  22. pages="tagged(.)"
  23. </TMPL_IF>
  24. actions=no
  25. archive=yes
  26. show=0
  27. feedshow=10]]
  28. ENDBODY]]