Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Tag/doc: Difference between revisions

Template page
Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> This template provides a quick way to mention an XML-style tag ...'
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
{{Interwikitmp-grp|meta=Tag|wp=Tag|cms=Tag|wbk=Tag|wsp=Tag|wvy=Tag|mdw=Tag}}
This template provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages.
This template provides a quick way to mention an XML-style tag in a preformatted way. Mainly used in discussion/help pages.


=== Usage ===
== Usage ==


*'''first parameter''' — ''(mandatory)''  the name of the HTML tag
*'''first parameter''' — ''(mandatory)''  the name of the HTML tag
Line 15: Line 15:
*'''params=''' — any parameters to be included in the opening tag
*'''params=''' — any parameters to be included in the opening tag


====Examples====
=== Examples ===


* <code><nowiki>{{tag|ref}}</nowiki></code> → {{tag|ref}}
* <code><nowiki>{{tag|ref}}</nowiki></code> → {{tag|ref}}
Line 28: Line 28:
* <code><nowiki>{{tag|br|single}}</nowiki></code> → {{tag|br|single}}
* <code><nowiki>{{tag|br|single}}</nowiki></code> → {{tag|br|single}}


<includeonly>
== TemplateData ==
<!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE -->
{{TemplateData header}}
</includeonly>
<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."
},
"format": "inline",
"params": {
"1": {
"label": {
"en": "Tag"
},
"description": {
"en": "The name of the HTML tag."
},
"example": "span",
"default": "tag",
"required": true,
"type": "line"
},
"2": {
"label": {
"en": "Type"
},
"description": {
"en": "What type of tag to display."
},
"suggestedvalues": [
"p", "pair",
"o", "open",
"c", "close",
"s", "single"
],
"default": "pair",
"type": "string"
},
"params": {
"label": {
"en": "Parameters"
},
"description": {
"en": "Parameters to be included in the opening tag."
},
"example": {
"en": "foo=\"bar\""
},
"type": "line"
},
"content": {
"label": {
"en": "Content"
},
"description": {
"en": "The text content of the tags."
},
"default": {
"en": "\n; pair\n: ...\n\n; other\n"
},
"type": "content"
}
}
}
</templatedata>
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Formatting templates]]
[[Category:Semantic markup templates]]
}}</includeonly>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.