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

From blackwiki
Jump to navigation Jump to search
imported>Pppery
(The module bloat continues)
imported>Hike395
(→‎Usage: update)
Line 8: Line 8:
 
===Format===
 
===Format===
 
:{{tlx|Commons and category|<var>CommonsGalleryName</var>|<var>CommonsCategoryName</var>}}
 
:{{tlx|Commons and category|<var>CommonsGalleryName</var>|<var>CommonsCategoryName</var>}}
−
Please note that if the Commons gallery (1st parameter) or the Commons category (2nd parameter) is not the same as [[WP:PAGENAME|PAGENAME]], then it must be specified and not left blank. There is also an optional parameter for {{para|position}}.
+
Please note that if the Commons gallery (1st parameter) or the Commons category (2nd parameter) are optional: if left blank, the template will search for them in Wikidata. There is also an optional parameter for {{para|position}}.
  
 
==Example==
 
==Example==

Revision as of 07:05, 24 March 2020

Usage

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

Format

{{Commons and category|CommonsGalleryName|CommonsCategoryName}}

Please note that if the Commons gallery (1st parameter) or the Commons category (2nd parameter) are optional: if left blank, the template will search for them in Wikidata. There is also an optional parameter for |position=.

Example

{{Commons and category|Automobile|Automobiles}}

Template:Sister project

See also