Template:Tag/doc: Difference between revisions

From Campaigns
Jump to navigation Jump to search
m 1 revision imported
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
<noinclude>{{Documentation subpage}}</noinclude>
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
{{Hatnote|For the [[Special:MyLanguage/Help:Page status indicators|page status indicator]] Phabricator tags, see: {{tl|Ptag}}.}}
{{TemplateData header}}
__NOTOC__
__NOTOC__
<templatedata>
{
"description": {
"en": "This template provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages.",
"tr": "Bu şablon, XML tarzı bir etiketi önceden biçimlendirilmiş bir şekilde belirtmenin hızlı bir yolunu sağlar. Esas olarak tartışma/yardım sayfalarında kullanılır."
},
"format": "inline",
"params": {
"1": {
"label": {
"en": "Tag",
"tr": "Etiket"
},
"description": {
"en": "The name of the HTML tag.",
"tr": "HTML etiketinin adı."
},
"example": {
"en": "span",
"tr": "span"
},
"type": "line",
"default": {
"en": "tag",
"tr": "tag"
},
"required": true
},
"2": {
"label": {
"en": "Type",
"tr": "Tür"
},
"description": {
"en": "What type of tag to display, see documentation for possible values.",
"tr": "Ne tür bir etiket görüntülenecek, olası değerler için belgelere bakın."
},
"suggestedvalues": [
"p",
"pair",
"o",
"open",
"c",
"close",
"s",
"single"
],
"default": {
"en": "pair",
"tr": "pair"
},
"type": "string"
},
"content": {
"label": {
"en": "Content",
"tr": "İçerik"
},
"description": {
"en": "The text content of the tag. By default “...” for pair type, empty for others; unused if type is single.",
"tr": "Etiketin metin içeriği. Çift tipi için varsayılan olarak “...”, diğerleri için boştur; tür tek ise kullanılmaz."
},
"type": "content"
},
"params": {
"label": {
"en": "Parameters",
"tr": "Parametreler"
},
"description": {
"en": "Parameters (attributes) for the opening tag, unused in close type.",
"tr": "Kapanış türünde kullanılmayan açılış etiketi için parametreler (öznitelikler)."
},
"example": {
"en": "foo=\"bar\"",
"tr": "foo=\"bar\""
},
"type": "line"
},
"plain": {
"label": {
"en": "Plain display",
"tr": "Düz görüntüleme"
},
"description": {
"en": "Avoid using monospace font and grey background for the tag.",
"tr": "Etiket için tek aralıklı yazı tipi ve gri arka plan kullanmaktan kaçının."
},
"type": "boolean"
},
"wrap": {
"label": {
"en": "Wrap?"
},
"description": {
"en": "Whether to not add `style=\"white-space: nowrap;\"` to the enclosing <code> tag."
},
"autovalue": "1",
"type": "boolean"
}
}
}
</templatedata>


== Usage ==
== Usage ==

Latest revision as of 05:11, 15 February 2022


Usage

Types

  • p or pair(default) display a matched pair of open-and-close tags: ‎<div>...‎</div>
  • o or open – display only the opening tag of an open-and-close pair: ‎<span>
  • c or close – display only the closing tag of an open-and-close pair: ‎</span>
  • s or single – display a single tag: ‎<br />

Examples

  • ‎<ref>...‎</ref>
  • ‎<ref>hello‎</ref>
  • ‎<span>foo‎</span>
  • ‎<span>
  • ‎<span>hello
  • hello‎</span>
  • ‎<span>hello‎</span>
  • ‎<ref group="note">
  • ‎<references />
  • ‎<br />

See also

  • (Extension Tag)