Template:Note: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Tags: Blanking Rollback |
||
(8 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<mediawiki xmlns="http://www.mediawiki.org/xml/export-0.10/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.10/ http://www.mediawiki.org/xml/export-0.10.xsd" version="0.10" xml:lang="en"> |
|||
<siteinfo> |
|||
<sitename>MediaWiki</sitename> |
|||
<dbname>mediawikiwiki</dbname> |
|||
<base>https://www.mediawiki.org/wiki/MediaWiki</base> |
|||
<generator>MediaWiki 1.36.0-wmf.10</generator> |
|||
<case>first-letter</case> |
|||
<namespaces> |
|||
<namespace key="-2" case="first-letter">Media</namespace> |
|||
<namespace key="-1" case="first-letter">Special</namespace> |
|||
<namespace key="0" case="first-letter" /> |
|||
<namespace key="1" case="first-letter">Talk</namespace> |
|||
<namespace key="2" case="first-letter">User</namespace> |
|||
<namespace key="3" case="first-letter">User talk</namespace> |
|||
<namespace key="4" case="first-letter">Project</namespace> |
|||
<namespace key="5" case="first-letter">Project talk</namespace> |
|||
<namespace key="6" case="first-letter">File</namespace> |
|||
<namespace key="7" case="first-letter">File talk</namespace> |
|||
<namespace key="8" case="first-letter">MediaWiki</namespace> |
|||
<namespace key="9" case="first-letter">MediaWiki talk</namespace> |
|||
<namespace key="10" case="first-letter">Template</namespace> |
|||
<namespace key="11" case="first-letter">Template talk</namespace> |
|||
<namespace key="12" case="first-letter">Help</namespace> |
|||
<namespace key="13" case="first-letter">Help talk</namespace> |
|||
<namespace key="14" case="first-letter">Category</namespace> |
|||
<namespace key="15" case="first-letter">Category talk</namespace> |
|||
<namespace key="90" case="first-letter">Thread</namespace> |
|||
<namespace key="91" case="first-letter">Thread talk</namespace> |
|||
<namespace key="92" case="first-letter">Summary</namespace> |
|||
<namespace key="93" case="first-letter">Summary talk</namespace> |
|||
<namespace key="100" case="first-letter">Manual</namespace> |
|||
<namespace key="101" case="first-letter">Manual talk</namespace> |
|||
<namespace key="102" case="first-letter">Extension</namespace> |
|||
<namespace key="103" case="first-letter">Extension talk</namespace> |
|||
<namespace key="104" case="first-letter">API</namespace> |
|||
<namespace key="105" case="first-letter">API talk</namespace> |
|||
<namespace key="106" case="first-letter">Skin</namespace> |
|||
<namespace key="107" case="first-letter">Skin talk</namespace> |
|||
<namespace key="486" case="first-letter">Data</namespace> |
|||
<namespace key="487" case="first-letter">Data talk</namespace> |
|||
<namespace key="828" case="first-letter">Module</namespace> |
|||
<namespace key="829" case="first-letter">Module talk</namespace> |
|||
<namespace key="1198" case="first-letter">Translations</namespace> |
|||
<namespace key="1199" case="first-letter">Translations talk</namespace> |
|||
<namespace key="2300" case="first-letter">Gadget</namespace> |
|||
<namespace key="2301" case="first-letter">Gadget talk</namespace> |
|||
<namespace key="2302" case="case-sensitive">Gadget definition</namespace> |
|||
<namespace key="2303" case="case-sensitive">Gadget definition talk</namespace> |
|||
<namespace key="2600" case="first-letter">Topic</namespace> |
|||
<namespace key="5500" case="first-letter">Newsletter</namespace> |
|||
<namespace key="5501" case="first-letter">Newsletter talk</namespace> |
|||
</namespaces> |
|||
</siteinfo> |
|||
<page> |
|||
<title>Template:Note</title> |
|||
<ns>10</ns> |
|||
<id>10473</id> |
|||
<revision> |
|||
<id>4061184</id> |
|||
<parentid>4055182</parentid> |
|||
<timestamp>2020-08-27T20:47:23Z</timestamp> |
|||
<contributor> |
|||
<username>Krinkle</username> |
|||
<id>135822</id> |
|||
</contributor> |
|||
<comment>fix usage so that inline=0 works as expected. generally it's simply not specified if "no" is intended, but might as well be explicit.</comment> |
|||
<model>wikitext</model> |
|||
<format>text/x-wiki</format> |
|||
<text bytes="1868" xml:space="preserve"><languages/> |
|||
<onlyinclude>{{#switch:<translate></translate> |
|||
| = |
|||
{{#if: {{#if:{{{1|{{{text|}}}}}}|{{{1|{{{text|}}}}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch: {{{2|{{{type|}}}}}} |
|||
|gotcha=error |
|||
|=info |
|||
|#default={{{2|{{{type|}}}}}} |
|||
}} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div> |
|||
| [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|<translate><!--T:1--> Note</translate>|link=]]&nbsp;'''<translate><!--T:2--> Note:</translate>''' }} |
|||
| #default= |
|||
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}} |
|||
}}</onlyinclude> |
|||
{{documentation|content= |
|||
<translate> |
|||
== Usage == <!--T:3--> |
|||
</translate> |
|||
<pre> |
|||
{{Note|Foo}} |
|||
{{Note|Foo|info}} |
|||
{{Note|Foo|reminder}} |
|||
{{Note|Foo|warn}} |
|||
{{Note|Foo|error}} |
|||
{{Note}} <translate><!--T:6--> Loose test</translate> |
|||
* Text {{Note|Foo|inline=1}} |
|||
</pre> |
|||
{{Note|Foo}} |
|||
{{Note|Foo|info}} |
|||
{{Note|Foo|reminder}} |
|||
{{Note|Foo|warn}} |
|||
{{Note|Foo|error}} |
|||
{{Note}} <translate><!--T:4--> Loose test</translate> |
|||
* Text {{Note|Foo|inline=1}} |
|||
== Parameters == |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"inline": { |
|||
"label": "Inline formatting", |
|||
"description": "Show the template without line breaks before and after it", |
|||
"type": "boolean" |
|||
}, |
|||
"text": { |
|||
"aliases": [ |
|||
"1" |
|||
], |
|||
"label": "Text", |
|||
"type": "content", |
|||
"required": true |
|||
}, |
|||
"type": { |
|||
"aliases": [ |
|||
"2" |
|||
], |
|||
"label": "Type", |
|||
"description": "One of 'info', 'reminder', 'warn', or 'error'. This setting affects the color and icon.", |
|||
"type": "line", |
|||
"default": "info" |
|||
} |
|||
}, |
|||
"format": "inline", |
|||
"description": "Show a note in a box (e.g. a top-of-the-page warning).", |
|||
"paramOrder": [ |
|||
"type", |
|||
"text", |
|||
"inline" |
|||
] |
|||
} |
|||
</templatedata> |
|||
}} |
|||
[[Category:Templates{{#translation:}}|{{PAGENAME}}]]</text> |
|||
<sha1>eribhek7oaugs5gypxpxpvhf4do71je</sha1> |
|||
</revision> |
|||
</page> |
|||
</mediawiki> |