Template:C/doc: Difference between revisions

From HIBIKIFORUM
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
__NOTOC__


== Usage ==
== Usage ==
: {{tlc|c|''category name''}}
: {{tji|c|category name}}
: {{tlc|c|''category name''|''link text''}}
: {{tji|c|category name|link text}}


Use {{tlb|c}} to create a [[Wikipedia:Namespace|namespace]]-free link to a category, e.g. {{c|Some Category}} rather than [[:Category:Some Category]]
Use {{tl|c}} to create a [[Wikipedia:Namespace|namespace]]-free link to a category, e.g. {{c|Some Category}} rather than {{Cat|Category:Some Category}}.


== Examples ==
== Examples ==
Line 17: Line 18:
== See Also ==
== See Also ==
* {{tl|Cat}}
* {{tl|Cat}}
== Template Data ==
<templatedata>
{
"description": "Creates links to categories without the namespace prefix.",
"params": {
"1": {
"label": "Category name",
"description": "The name of the category to link to, with or without the Category: prefix",
"type": "string",
"required": true
},
"2": {
"label": "Link text",
"description": "Text of the actual link, if you want to override it",
"type": "string"
}
}
}
</templatedata>


<includeonly>{{sandbox other||{{testcases other||
<includeonly>{{sandbox other||{{testcases other||


<!-- Categories below this line, please -->
<!-- Categories below this line, please -->
[[Category:Templates]]
[[Category:General use templates]]
[[Category:General Use Templates]]
}}}}</includeonly>
}}}}</includeonly>

Latest revision as of 02:35, 20 August 2023

Light bulb.png }}
It contains usage information, categories and other content that is not part of the original template page.


Usage

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

Use {{c}} to create a namespace-free link to a category, e.g. Some Category rather than Category:Some Category.

Examples

{{c|Enzou}}Enzou
{{c|Category:Enzou}}Enzou

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

{{c|Enzou|Enzou (エンゾウ)}}Enzou (エンゾウ)
{{c|Category:Enzou|Enzou (エンゾウ)}}Enzou (エンゾウ)

See Also

Template Data

Creates links to categories without the namespace prefix.

Template parameters

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