Difference between revisions of "Template:Book"

From DevSummit
Jump to navigation Jump to search
(Fixed up the "Book" template a little bit)
(Making the wikitext generated by this template a little more compact)
Line 32: Line 32:
 
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.
 
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.
  
</noinclude><includeonly>Book: "{{{title|}}}" by {{{author|}}} in the year {{{year|?}}}, available at {{{url|FIXME}}}</includeonly>
+
</noinclude><includeonly>Book: "{{{title|}}" ({{{year|timeless}}}) by {{{author|someone}}} ({{{url|FIXME}}})</includeonly>

Revision as of 05:28, 20 November 2020


Template:Book is a MediaWiki template

Examples

Example One

This is an example for using "Template:Book"

* {{Book
|title=MediaWiki
|author=Daniel J. Barrett
|year=2009
|url=https://openlibrary.org/works/OL17309374W/MediaWiki
}}

Result


Example Two

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

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

Result:

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.