es


Wiki Macros

Macros provide a quick and easy method for substituting a short function name (macro) with dynamic content. The following list provides information regarding the macros that are currently supported. All macros begin with an "at" symbol (@) and may contain 0 or more arguments enclosed in parenthesis after the macro name. * TableOfContents ** TableOfContents will insert a table of contents at the macro location. The table is generated with the names of all of the heading tags in the article. The table of content items are also hyperlinked to the section that they reference. ** Example: @@TableOfContents() ** If you notice the table of contents is beginning to look too crowded with subheads, use @@tableOfContents(omitlevel1) to remove the heading 2 titles from list. (Please put this macro after the title of the guide.) * slurp ** slurp gets the text from another wiki article and inserts it where the macro is. It will only pull from public articles. ** Syntax: @@slurp('article name') *** '''''article name''''' name of existing wiki article to insert. ** Example: @@slurp(User:bob) * popular ** popular adds links to the most popular articles. ** Syntax: @@popular('''''number of articles''''') *** '''''number of articles''''' number of popular articles to insert. ** Example: @@popular(5) * articleName ** articleName inserts the current wiki article name. ** Example: @@articleName() * timeAndDate ** timeAndDate inserts the specified time and date. The format of the time and date is specific to each users local time and date format. ** Syntax: @@timeAndDate(''''' seconds ''''') *** '''''seconds''''' number of seconds since January 1, 1970 (UTC) that the time represents. ** Example: @@timeAndDate(1117056350) ** Due to the fact that the argument is specified in seconds, this macro is difficult to use and mostly for internal use. For help in calculating the number of seconds for the macro, see this conversion page.
Wiki World