Citation: Numeric referencesMy preferred reference style is numbered, rather than author–year. How do I do that? ![]() Detail of a scribe at work Wikipublisher provides 2 markup rules: cite is inline markup for referencing a citation; and bib (introduced in Tip of the Week 00002) is block markup for defining a list of citations. They work like this.
In cite(Morville:2005), we learn that finding things is useful.
(:bib page=TipOfTheWeek.00002 fmt=num:)
(:bibend:)
This produces: In the above markup clip, we are able to cite a book described on another page, by using the page=Name option to bring that page’s citation list into the current page.The bib directive also includes a fmt=num option to request numbered references. In addition, an administrator can set group- or site-wide defaults, using the $CiteOpt array. For example, to make numeric references the default, set:
$CiteOpt['fmt'] = 'num';
On this page, the list of references includes only those items cited on the page. We can include all references by specifying fmt=# (numbered) or fmt=* (author–year) in the bib directive. For many uses, cite(key) is all the writer needs. However, the cite markup offers a number of ways to vary the form of the body reference. For example:
The references are sorted into key order. To list them in the order cited, add sort=cite to the bib directive. For more information on the wiki citation features, see Bibliographies. 1 The (:markup:) block markup is not fully compatible with (:bib:) markup. This is a side-effect of the way PmWiki evaluates (:markup:) blocks. (↑) Category: markup References for 00008 [1] Benkler, Y. (2006). The Wealth of Networks: How Social Production Transforms Markets and Freedom. New Haven and London: Yale University Press. yalepress.yale.edu/YUPBOOKS/book.asp?isbn=0300110561, accessed on 30 May 2007. [2] Morville, P. (2005). Ambient Findability: what we find changes who we become. Sebastopol: O’Reilly Media, Inc. www.oreilly.com/catalog/ambient/, accessed on 10 June 2007. [3] Varney, D. (2006). Service transformation: A better service for citizens and businesses, a better deal for the taxpayer. UK: HM Treasury. www.hm-treasury.gov.uk/pre_budget_report/prebud_pbr06/other_docs/prebud_pbr06_varney.cfm, accessed on 11 June 2007. |