ವಿಷಯಕ್ಕೆ ಹೋಗು

ಟೆಂಪ್ಲೇಟ್:Tag/doc

ವಿಕಿಪೀಡಿಯ, ಒಂಜಿ ಸೊತಂತ್ರ ವಿಶ್ವಕೋಶ
{{tag|tagname [|type] [|content=text] [|attribs=attributes and values]}}

A markup tag is an open < and a close > angle brackets and the content within them, in a markup language, as XML or HTML:

For example, the <title> tag provides a title for the Web page.

This template provides a quick way to mention a markup-style tag in a preformatted way. Mainly used in discussion/help pages.

This template is for 'displaying' HTML/XML tags for elements with code markup. It can contain contents between the start and end tags, as well as attributes for the tag. (Note: To add markup tags, use the #tag magic word.)

Template parameters

This template prefers inline formatting of parameters.

ಪರಿಮಿತಿಇವರೊಇದೊಸ್ತಿತಿ
Tag name1

XML/HTML tag's name. Use !-- for an HTML comment.

ಉದಾಹರ್ಮೆಲು
includeonly
ನೂಲುಬೋಡಾಯಿನ
Type2

To indicate which of the tag's types is/are presented. For example, using "open" → <span>; "close" → </span>; "empty" → <br />. To suppress the ellipsis ("...") between the tags, add an empty "content" parameter → <span></span>

Suggested values
pair open close empty void single p o c e v s
ಮೂಲೊಸ್ಥಿತಿ
pair
ಉದಾಹರ್ಮೆಲು
open
ನೂಲುತೋಜ್ಪಾಯಿನ
Disable nowrapwrap

Disable nowrap for long samples, so allowing wraps (line breaks or newlines).

ಮೂಲೊಸ್ಥಿತಿ
no
Auto value
yes
Booleanಐಚಿಕೊ
CSS stylestyle

Replace the default CSS style: border:none; background:transparent.

ಮೂಲೊಸ್ಥಿತಿ
border:none; background:transparent;
ಉದಾಹರ್ಮೆಲು
background: cornsilk
ನೂಲುಐಚಿಕೊ
Link?link

Link to the element's entry in the [[HTML element]] article, For example: {{Tag | del | link=y}} produces: "<[[HTML element#del | del]]>...</del>". This is only for HTML elements; the page for the link is hard-coded.

Suggested values
yes y
ಗೊತ್ತಿಜ್ಜಾಂದಿನಐಚಿಕೊ
paramsparams

no description

ಗೊತ್ತಿಜ್ಜಾಂದಿನಐಚಿಕೊ
Attributes and valuesattribs params

[[Attributes and values]] to be included as part of an open/start tag

ಉದಾಹರ್ಮೆಲು
class="plainlinks"
ನೂಲುತೋಜ್ಪಾಯಿನ
Contentcontent

Text to place between open/start and close/end tags.

ನೂಲುತೋಜ್ಪಾಯಿನ

Global use and documentation

[ಸಂಪೊಲಿಪುಲೆ]

For a global use of this template in other sister or Wikimedia projects, after copying it to paste in the destination project, remember to change in the code:

|p|pair = <{{#if:{{{link|}}}|[[HTML element#

by this one:

|p|pair = <{{#if:{{{link|}}}|[[Wikipedia:en:HTML element#

Remark that the code Wikipedia:en: has been added.

For template documentation in the sister project, you can use Template:Wikipedia doc.

Other formatting templates

[ಸಂಪೊಲಿಪುಲೆ]
Templates producing specialised formatting effects for given templates, modules or parameters
Code example Effect Notes
<syntaxhighlight lang="wikitext">
{{Hatnote
   | Some text
   | selfref = yes
   | category = no
   | lang = fr
}}
</syntaxhighlight>
{{Hatnote
    | Some text
    | selfref = yes
    | category = no
    | lang = fr
}}
Same as above
<syntaxhighlight lang="wikitext" inline>{{Hatnote|Some text|selfref=yes|category=no|lang=fr}}</syntaxhighlight> {{Hatnote|Some text|selfref=yes|category=no|lang=fr}} Same as above
{{tl2|Hatnote|lang=fr}} {{hatnote}}Supports linking to sister projects (e.g., fr:Hatnote)
{{demo|<nowiki>{{Hatnote|Some text}}</nowiki>}}
{{hatnote|Some text}}
Shows code and example
{{tln|Hatnote}} Template:HatnoteProduces a normal link to the template
{{elc|Template:Example}}
{{elc|Template:Example|Text|suffix}}
[[Template:Example]]
[[Template:Example|Text]]suffix
Shows how wikilink would be entered in wiki markup, with optional link text and suffix
{{ml|Example|hello}} {{#invoke:Example|hello}}Counterpart to {{tl}} for linking to Lua modules
{{mlx|Example|hello}} {{#invoke:Example|hello}}Counterpart to {{tlx}} for linking to Lua modules
{{ml-lua|Module:Example}} require('Module:Example')Link to Lua modules and built-in libraries, showing Lua code.
{{para|title|<var>book title</var>}} |title=book titleFormats template parameters for display, with or without values
{{sclx|LASTING}} [[WP:LASTING]]Takes a shortcut suffix in project namespace and displays it with brackets and the WP: alias in a <code>...</code> tag.
{{tag|ref}}
{{xtag|templatedata}}
<ref>...</ref>
<templatedata>
Formats [X]HTML tags; can add content, choose opening, closing, or self-closing
{{dtl|Ping project}} {{d:Ping project}}Wikidata counterpart to {{tl}}
{{mwl|#if}}
{{mwl|#if|{{{1}}}|true|false}}
{{#if}}
{{#if:{{{1}}}|true|false}}
Magic word links
{{pf|if}}
{{pf|if|{{{1}}}|true|false}}
{{#if}}
{{#if:{{{1}}}|true|false}}
Parser function equivalent to {{tl}}
{{magic word|uc:}} {{uc:}}Magic word links