Difference between revisions of "Template:Commons and category-inline/doc"

From blackwiki
Jump to navigation Jump to search
imported>Funandtrvl
(add)
imported>Funandtrvl
Line 6: Line 6:
  
 
== Usage ==
 
== Usage ==
This template takes one or two parameters; the Commons gallery and the category (if the category name differs from PAGENAME). Please note that if the Commons gallery (1st parameter) or the Commons category (2nd parameter) is not the same as PAGENAME, then it must be specified and not left blank. There is also an optional parameter for {{para|extratext}}.
+
This template takes one or two parameters; the Commons gallery and the category (if the category name differs from [[WP:PAGENAME|PAGENAME]]). Please note that if the Commons gallery (1st parameter) or the Commons category (2nd parameter) is not the same as PAGENAME, then it must be specified and not left blank. There is also an optional parameter for {{para|extratext}}.
  
 
===Format===
 
===Format===

Revision as of 17:38, 5 June 2013

Purpose

Sometimes articles have both Commons articles (galleries) and categories about them. This template can be used to generate an inline link to a Commons gallery and a Commons category. It is intended for use in the "External links" section of an article.

Usage

This template takes one or two parameters; the Commons gallery and the category (if the category name differs from PAGENAME). Please note that if the Commons gallery (1st parameter) or the Commons category (2nd parameter) is not the same as PAGENAME, then it must be specified and not left blank. There is also an optional parameter for |extratext=.

Format

{{commons and category-inline|CommonsArticleName|CommonsCategoryName}}

Example

yields:

  • 16x16px Media related to Lua error in Module:Commons_link at line 35: attempt to index field 'wikibase' (a nil value). at Wikimedia Commons

See also