Difference between revisions of "Template:Books-inline"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(add notext option)
imported>Thumperward
(fix)
Line 1: Line 1:
[[File:Office-book.svg|16x16px|link=|alt=Book icon]] [[Book:{{{1|{{PAGENAME}}}}}|{{{2|{{{1|{{#if:{{{notext|}}}|Book|{{PAGENAME}}}}}}}}}}]] {{#if:{{{notext|}}}||at [[Wikipedia:Books|Wikipedia books]]}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>
+
[[File:Office-book.svg|16x16px|link=|alt=Book icon]] [[Book:{{{1|{{PAGENAME}}}}}|{{#if:{{{notext|}}}|Book|{{{2|{{{1|{{PAGENAME}}}}}}}}}}]] {{#if:{{{notext|}}}||at [[Wikipedia:Books|Wikipedia books]]}}<noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>

Revision as of 19:05, 27 November 2012

Book icon Books-inline at Wikipedia books

Template documentation[view] [edit] [history] [purge]

Link to books created via Wikipedia:Books.

Usage

The {{books-inline}} template accepts two optional parameters for linking to books.

The first parameter is the name of the book within the Wikipedia:Books project. If omitted the template will use the name of the page.

The second parameter is the text to use for the wikilink. If omitted the template will either use the name of the book given as the first parameter or the name of the page.

{{books-inline|book name|link text}}

Example:

{{books-inline|Technology|Technology}}

Appears as:

Book icon Technology at Wikipedia books

If notext=yes is specified, only the word "Book" is displayed:

Book icon Book

See also