Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Category link without namespace

Permanently protected template
From Wikipedia, the free encyclopedia

[[:Category:|]]

Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 758,000 pages, or roughly 1% of all pages.
To avoid major disruption and server load, any changes should be tested in the template's/sandbox or/testcases subpages, or in your ownuser subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on thetalk page before implementing them.
Not to be confused withTemplate:Circa.

Usage

{{|category name}}
{{|category name |link text}}

Use{{c}} to create anamespace-free link to a category, e.g.Philosophy rather thanCategory:Philosophy,Category:Philosophy:

{{c|Philosophy}} produces:Philosophy
{{c|Category:philosophy}} produces:Philosophy

To specify the text used for the link – e.g. "Philosophy category" in place of "Philosophy" – add it as the next parameter:

{{c|Philosophy|Philosophy category}} produces:Philosophy category
{{c|Category:philosophy|Philosophy category}} produces:Philosophy category

See also

TemplateExample output
{{c}}Example
{{cl}}Category:Example
{{cconly}}9
TemplateExample output
{{clc}}Category:Example (9)
{{lc}}Category:Example (edit |talk |history |links |watch |logs)
{{lcs}}Category:Example(edit talk links history)

Template data

This is theTemplateData for this template used byTemplateWizard,VisualEditor and other tools.See a monthly parameter usage report forTemplate:Category link without namespace in articles based on its TemplateData.

TemplateData for Category link without namespace

Creates links to categories without the namespace prefix.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Category name1

The name of the category to link to, with or without the Category: prefix

Stringrequired
Link text2

Text of the actual link, if you want to override it

Stringoptional
The abovedocumentation istranscluded fromTemplate:Category link without namespace/doc.(edit |history)
Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Category_link_without_namespace&oldid=1226904918"
Category:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp