Difference between revisions of "Template:Commons and category-inline/doc"
Jump to navigation
Jump to search
imported>Funandtrvl (→Usage: wl) |
imported>Jdaloner m (Made a couple minor capitalization and spacing adjustments.) |
||
| Line 2: | Line 2: | ||
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE --> | ||
| − | == Purpose == | + | ==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:Commons:Galleries|Commons gallery]] and a [[commons:Commons:Categories|Commons category]]. It is intended for use in the "[[Wikipedia:External links|External links]]" section of an article. | Sometimes articles have both Commons articles (galleries) and categories about them. This template can be used to generate an inline link to a [[commons:Commons:Galleries|Commons gallery]] and a [[commons:Commons:Categories|Commons category]]. It is intended for use in the "[[Wikipedia:External links|External links]]" section of an article. | ||
| − | == Usage == | + | ==Usage== |
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}}. | 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=== | ||
| − | :{{tlx| | + | :{{tlx|Commons and category-inline|<var>CommonsArticleName</var>|<var>CommonsCategoryName</var>}} |
===Example=== | ===Example=== | ||
| − | *{{tlx| | + | *{{tlx|Commons and category-inline|<var>Ursus maritimus</var>|<var>Ursus maritimus</var>}} |
yields: | yields: | ||
| − | *{{ | + | *{{Commons and category-inline|Ursus maritimus|Ursus maritimus}} |
| − | == See also == | + | ==See also== |
* [[Template:Commons]] | * [[Template:Commons]] | ||
* [[Template:Commons-inline]] - shows Commons gallery inline | * [[Template:Commons-inline]] - shows Commons gallery inline | ||
* [[Template:Commons category]] | * [[Template:Commons category]] | ||
* [[Template:Commons category-inline]] - shows Commons category inline | * [[Template:Commons category-inline]] - shows Commons category inline | ||
| − | * [[Template:Commons category multi]] - to list up to 6 categories | + | * [[Template:Commons category multi]] - to list up to 6 categories |
* [[Template:Commons and category]] - shows Commons gallery and category | * [[Template:Commons and category]] - shows Commons gallery and category | ||
* [[Template:Sister project links]] - to link all Wikinews, Wikisource, etc. | * [[Template:Sister project links]] - to link all Wikinews, Wikisource, etc. | ||
| Line 34: | Line 34: | ||
* {{tl|Wiktionary-inline}} | * {{tl|Wiktionary-inline}} | ||
* [[Wikipedia:Manual of Style/Layout#External links]] | * [[Wikipedia:Manual of Style/Layout#External links]] | ||
| + | |||
<includeonly> | <includeonly> | ||
Revision as of 23:20, 26 March 2015
| 40px | This is a documentation subpage for Template:Commons and category-inline. It contains usage information, categories and other content that is not part of the original template page. |
Contents
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
{{Commons and category-inline|Ursus maritimus|Ursus maritimus}}
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
- Template:Commons
- Template:Commons-inline - shows Commons gallery inline
- Template:Commons category
- Template:Commons category-inline - shows Commons category inline
- Template:Commons category multi - to list up to 6 categories
- Template:Commons and category - shows Commons gallery and category
- Template:Sister project links - to link all Wikinews, Wikisource, etc.
- {{Wikibooks-inline}}
- {{Wikinews-inline}}
- {{Wikiquote-inline}}
- {{Wikisource-inline}}
- {{Wikispecies-inline}}
- {{Wikiversity-inline}}
- {{Wiktionary-inline}}
- Wikipedia:Manual of Style/Layout#External links