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

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
Line 10: Line 10:
 
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.
 
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>
+
<nowiki>{{books-inline|book  
 +
G
 +
name|lin>
  
 
Example:
 
Example:
Line 30: Line 32:
 
<includeonly>{{Sandbox other||
 
<includeonly>{{Sandbox other||
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Internal link templates]]
+
<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
 
}}</includeonly>
 
}}</includeonly>

Revision as of 16:26, 2 May 2020

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 G name|lin> Example: <nowiki>{{books-inline|Technology|Technology}}

Appears as:

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

See also