Template:Commons category: Difference between revisions

From Ikwipedia
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
| project  = commons
| project  = commons
| text    = Wikimedia Commons has {{{alt-term|media related to}}}  
| text    = Wikimedia Commons has {{{alt-term|media related to}}}  
<span style="font-weight: bold;{{#ifeq:{{{nowrap|no}}}|yes| white-space:nowrap;}}{{#ifeq:{{{italic|yes}}}|yes| font-style:italic;}}">
<includeonly><span style="font-weight: bold;">
[[commons:{{#if:{{{1|}}}|Category:{{{1}}}|Category:{{PAGENAME}}}}|{{#ifeq:{{{lcf|{{{lcfirst|no}}}}}}|yes|{{lcfirst:{{{2|{{{1|{{PAGENAME}}}}}}}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]
[[commons:{{#if:{{{1|}}}|Category:{{{1}}}|Category:{{PAGENAME}}}}|{{{2|{{{1|{{PAGENAME}}}}}}}}]]
</span>.
</span>.</includeonly>
}}
}}
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}
== Usage ==
This template links to a corresponding category on Wikimedia Commons.
== Parameters ==
* '''position''': Position of the link (optional).
* '''alt-term''': Alternate text for the phrase "media related to" (optional).
* '''nowrap''': Set to "yes" to prevent text wrapping (optional).
* '''italic''': Set to "yes" to italicize the link text (optional).
* '''1''': Category name on Commons (optional; defaults to current page name).
* '''2''': Display text (optional; defaults to current page name or specified category name).
== Example ==
<syntaxhighlight lang="wikitext">
{{Sister project
| position = left
| project = commons
| alt-term = images of
| nowrap = yes
| italic = yes
| 1 = Venus in fiction
| 2 = Venus in fiction media
}}
</syntaxhighlight>
This example would display:
''Wikimedia Commons has images of ''**Venus in fiction media**
== Notes ==
This template is designed for use on pages where a corresponding category exists on Wikimedia Commons.
</noinclude>
</noinclude>

Latest revision as of 19:41, 6 November 2024


Usage[edit source]

This template links to a corresponding category on Wikimedia Commons.

Parameters[edit source]

  • position: Position of the link (optional).
  • alt-term: Alternate text for the phrase "media related to" (optional).
  • nowrap: Set to "yes" to prevent text wrapping (optional).
  • italic: Set to "yes" to italicize the link text (optional).
  • 1: Category name on Commons (optional; defaults to current page name).
  • 2: Display text (optional; defaults to current page name or specified category name).

Example[edit source]

{{Sister project
| position = left
| project = commons
| alt-term = images of
| nowrap = yes
| italic = yes
| 1 = Venus in fiction
| 2 = Venus in fiction media
}}

This example would display: Wikimedia Commons has images of **Venus in fiction media**

Notes[edit source]

This template is designed for use on pages where a corresponding category exists on Wikimedia Commons.