Difference between revisions of "Template:Books-inline/doc"

From blackwiki
Jump to navigation Jump to search
(Replaced content with 'Ban')
imported>DivineAlpha
m (Reverted edits by 166.182.81.186 (talk) (HG))
Line 1: Line 1:
Ban
+
{{documentation subpage}}
 +
 
 +
Link to books created via [[Wikipedia:Books]].
 +
 
 +
== Usage ==
 +
The <nowiki>{{books-inline}}</nowiki> 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.
 +
 
 +
<nowiki>{{books-inline|book name|link text}}</nowiki>
 +
 
 +
Example:
 +
 
 +
<nowiki>{{books-inline|Technology|Technology}}</nowiki>
 +
 
 +
Appears as:
 +
 
 +
{{books-inline|Technology|Technology}}
 +
 
 +
If <code>notext</code> is specified, only the word "Book" is displayed:
 +
 
 +
{{books-inline|Technology|notext=yes}}
 +
 
 +
===See also===
 +
*[[Template:Book bar]]
 +
*[[Template:Wikipedia books]]
 +
 
 +
<includeonly>
 +
<!-- ADD CATEGORIES BELOW THIS LINE -->
 +
[[Category:Internal link templates]]
 +
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 +
</includeonly>

Revision as of 03:52, 18 May 2015

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:

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

See also