Difference between revisions of "Template:Category-inline"

From blackwiki
Jump to navigation Jump to search
imported>Reaper Eternal
m (Protected Template:Category-inline: Highly visible template ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
imported>Technical 13
(per Template talk:Category-inline edit request.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Icon|Category}} [[:Category:{{{1}}}|{{#if:{{{notext|}}}|Category|{{{2|Category: {{{1}}} }}} }}]]<noinclude>{{doc|content=
+
{{Icon|Category}}&nbsp;[[:Category:{{{1}}}|{{#if:{{{notext|}}}|Category|{{{2|Category: {{{1}}} }}} }}]]<noinclude>
  
Link to categories with an icon and accompanying text.
+
{{documentation}}
 
+
</noinclude>
== Usage ==
 
 
 
The <nowiki>{{category-inline}}</nowiki> template accepts two optional parameters for linking to books.
 
 
 
The first parameter is the name of the category. 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 category given as the first parameter or the name of the page.
 
 
 
<nowiki>{{category-inline|cat name|link text}}</nowiki>
 
 
 
Example:
 
 
 
<nowiki>{{category-inline|Technology|Technology}}</nowiki>
 
 
 
Appears as:
 
 
 
{{category-inline|Technology|Technology}}
 
 
 
If <code>notext</code> is specified, only the word "Book" is displayed:
 
 
 
{{category-inline|Technology|notext=yes}}
 
 
 
=== See also ===
 
 
 
* [[Template:Books-inline]]
 
 
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
[[Category:Internal link templates]]
 
 
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
}}</noinclude>
 

Latest revision as of 04:42, 29 December 2013

Category [[:Category:{{{1}}}|Category: {{{1}}}]]

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

Link to categories with an icon and accompanying text.

Usage

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

The first parameter is the name of the category. 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 category given as the first parameter or the name of the page.

{{category-inline|cat name|link text}}

Example:

{{category-inline|Technology|Technology}}

Appears as:

Category Technology

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

Category Category

See also