Template talk:Na'vi

This template is designed for the book Na'vi. It formats interlinear glosses and links them to the appropriate entry in the appendix of that book. —Kwami (talk) 11:25, 7 February 2010 (UTC)


 * I expanded the template to support arbitrary cross-chapter references. I kept everything backwards compatible, so calling it with just a single argument is the special case of using it for glossing abbreviations (pointing to the appropriate Appendix entry and formatting the wikilink in small caps).
 * In regular usage, the template expects either two or three arguments. The first argument is the page within the Na'vi book, e.g., Glossary or Appendix (or any other page). The second argument is the anchor name within that page – in case this is defined but left empty, a link to the top of that page or chapter is created. The third argument is optional: if given, it will be used for formatting the wikilink. The wikilink defaults to the anchor name when the third argument is not defined (or to the chapter name when no anchor is used). As with regular wikilinks, additional characters immediately following the template will be included in the link's text.
 * Some examples:
 * {| class=wikitable

! colspan=2 style="text-align:left" | Abbreviations used in interlinear gloss
 *   ||
 *  ‹›  || ‹›
 *  []  || []
 * }
 * {| class=wikitable
 *  []  || []
 * }
 * {| class=wikitable

! colspan=2 style="text-align:left" | Arbitrary cross-chapter links
 *   ||
 *   ||
 *  s  || s
 *   ||
 * }
 * {| class=wikitable
 * <tt> </tt> ||
 * }
 * {| class=wikitable
 * {| class=wikitable

! colspan=2 style="text-align:left" | Links to top of chapter
 * <tt> </tt> ||
 * <tt> </tt> ||
 * }
 * Hope this helps. Sebastian… talk 01:04, 8 February 2010 (UTC)
 * }
 * Hope this helps. Sebastian… talk 01:04, 8 February 2010 (UTC)


 * The template now also allows the use of an empty anchor, i.e., the second template argument is defined but left empty (this is not the same as undefined). This is used to create links to entire chapters, without the use of a separate section anchor. The wikilink text will be equivalent to the chapter name, or, if given, the explicit link name (third template argument). I incorporated this addition into the documentation given above. Sebastian… talk 04:58, 8 February 2010 (UTC)


 * Great! This works beautifully. Thanks for setting it up. —Kwami (talk) 22:11, 9 February 2010 (UTC)


 * I'm glad I could help. Keep up the great work on this book! :) Sebastian… talk 22:18, 9 February 2010 (UTC)