The nanoHUB web site and related services will be down on Monday, January 12 from 9:00am-5:00pm EST for hardware upgrades. All tool sessions will be terminated. We apologize for any inconvenience.

Online Simulation

And More

Top 25 Tags (all tags)

  1. algorithms
  2. aqme
  3. carbon nanotubes
  4. course lecture
  5. cyberinfrastructure
  6. devices
  7. education/outreach
  8. experiments
  9. material science
  10. molecular electronics
  11. nano/bio
  12. nanobio applications
  13. nano electro-mechanical systems
  14. nanoelectronics
  15. nanomedicine
  16. nanophotonics
  17. nano-transistors
  18. nanowires
  19. NEGF
  20. quantum dots
  21. quantum transport
  22. research seminar
  23. transistors
  24. tutorial
  25. uIllinois

Other

Trouble Report

For immediate assistance browse through our support center. You can find answers to many questions in just a few minutes.

If still experiencing problems, send us a report.

Sending report ...

Topics: Help: Wiki Macros

Table of Contents

A macro inserts dynamic HTML data in any context supporting Wiki Formatting.

Using Macros

Macro calls are enclosed in two square brackets.

Examples

[[Timestamp]]

Display: 2009-01-08 08:26:50

[[Resource(100)]]

Display: Curriculum on Nanotechnology

[[Tag(heattransfer)]]

Display: heat transfer

To add a footnote to text you use the footnote macro. [[FootNote(Footnotes are automatically linked)]] You use the same macro but with no text to display the accumulated list of footnotes. For example:

[[FootNote]]

Display: To add a footnote to text you use the footnote macro. [1] You use the same macro but with no text to display the accumulated list of footnotes. For example:

  1. Footnotes are automatically linked

Available Macros

[[BR]]
Insert a line break.
[[Span(content, attributes)]]
Wraps text or other elements inside a <span> tag.
[[Image(filename)]]
Embed an image in wiki-formatted text. The first argument is the filename of the image. The remaining arguments are optional and allow configuring the attributes and style of the rendered <img> element:
  • digits and unit are interpreted as the size (ex. 120, 25%) for the image
  • right, left, top or bottom are interpreted as the alignment for the image
  • nolink means without link to image source
  • key=value style are interpreted as HTML attributes or CSS style indications for the image.
    Valid keys are: align, border, width, height, alt, title, longdesc, class, id and usemap

[[Resource(id or alias)]]

This macro will insert a linked title to a resource. It can be passed wither an ID or alias. The remaining arguments are optional and allow for displaying various aspects of a resource:
  • [[Resource(101)]] generates a linked title to resource #101
  • [[Resource(101, nolink)]] generates the title for resource #101

[[Contributor(id,username,name)]
This macro will generate a link to a contributor’s page with the contributor’s name as the link text. It accepts either the contributor’s ID, username, or name. NOTE: to use a name, it must be identical to their contributor page.
[[Tag(tag)]]
This macro will generate a link to a Tag.
[[TitleIndex(prefix)]]
Inserts an alphabetic list of all wiki pages into the output. Accepts a prefix string as parameter: if provided, only pages with names that start with the prefix are included in the resulting list. If this parameter is omitted, all pages are listed.
[[FootNote(footnote text)]]
Add a footnote, or explicitly display collected footnotes when no args (footnote text) are given.
[[RandomPage]]
Generates a link to a random page.
[[Anchor(anchorname)]]
Inserts an anchor into a page.

Last modified: 19 Feb, 2008