From DevSummit
< Template:Book
Revision as of 06:53, 20 November 2020 by Rob (talk | contribs) (→‎Example One: adding example of the new comment parameter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Book/en contains the English-language documentation for Template:Book.


Example One

This is an example for using "Template:Book"

* {{Book
|author=Daniel J. Barrett
|comment=available to borrow from OpenLibrary.org

Result One

Example Two

It's even possible to use this template on a single line of wikitext:

* {{Book|title=MediaWiki|author=Daniel J. Barrett}}

Result Two

  • MediaWiki (timeless) by Daniel J. Barrett (<FIXME>, )

Leaving parameters out (as above) will just cause the resulting text to look a little weird. But it's a wiki; things often look weird.

Example Three

This template is "forgiving". It's possible to leave all of the parameters off:

* {{Book}}


  • some silly book (timeless) by someone (<FIXME>, )

When the "title" parameter is omitted, some filler text (e.g. "some silly book") is inserted. When the "author" parameter is omitted, different filler text is inserted.