본문으로 이동

둘러보기 메뉴

"틀:Note"의 두 판 사이의 차이

1,117 바이트 제거됨 ,  2021년 11월 15일 (월) 06:51
Imported from: https://www.mediawiki.org/wiki/Template:Note
Import>Shirayuki
(nowrap)
(Imported from: https://www.mediawiki.org/wiki/Template:Note)
 
(사용자 2명의 중간 판 3개는 보이지 않습니다)
1번째 줄: 1번째 줄:
<languages/>
<onlyinclude>{{#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|}}}}}}
<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
     |gotcha=error
     |=info
     |=info
     |#default={{{2|{{{type|}}}}}}
     |#default={{{2|{{{type|}}}}}}
     }} {{#ifeq:{{{inline|}}}|1|note-inline}}">{{{1|{{{text}}}}}}</div>
     }} {{#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>''' }}
   | [[File:OOjs UI icon lightbulb-20 fc3.svg|18px|Note|link=]]&nbsp;'''Note:''' }}<!--
| #default=
   --></onlyinclude>
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
== 사용예 ==
}}</onlyinclude>
{{documentation|content=
<translate>
== Usage == <!--T:3-->
</translate>
<pre>
<pre>
{{Note|Foo}}
{{Note|Foo}}
21번째 줄: 13번째 줄:
{{Note|Foo|warn}}
{{Note|Foo|warn}}
{{Note|Foo|error}}
{{Note|Foo|error}}
{{Note}} <translate nowrap><!--T:6--> Loose test</translate>
{{Note}} Loose test


* Text {{Note|Foo|inline=1}}
* Text {{Note|Foo|inline=1}}
30번째 줄: 22번째 줄:
{{Note|Foo|warn}}
{{Note|Foo|warn}}
{{Note|Foo|error}}
{{Note|Foo|error}}
{{Note}} <translate><!--T:4--> Loose test</translate>


* Text {{Note|Foo|inline=1}}
* 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}}]]