틀:Code/doc: 두 판 사이의 차이
Revi HQ
< 틀:Code
내용 추가됨 내용 삭제됨
(This is a documentation subpage for Template:Code. It contains usage information, categories and other content that is not part of the original template page.) |
(code |lang=javascript |code=var img =) |
||
8번째 줄: | 8번째 줄: | ||
If the content includes an equals sign (=), you must specify the parameter explicitly: <code><nowiki>{{code|1=date=30 Feb 2010}}</nowiki></code>. |
If the content includes an equals sign (=), you must specify the parameter explicitly: <code><nowiki>{{code|1=date=30 Feb 2010}}</nowiki></code>. |
||
The template uses the <code><nowiki><syntaxhighlight></nowiki></code> tag with the attribute <code>inline=1</code>. This works like the combination of the <code><nowiki><code></nowiki></code> and <code><nowiki><nowiki></nowiki></code> tags, applied to the expanded wikitext. For example, <code><nowiki>{{code|some '''wiki''' text}}</nowiki></code> will '''''not''''' render the word "wiki" in bold, and will render the tripled-single-quotes: |
The template uses the <code><nowiki><syntaxhighlight></nowiki></code> tag with the attribute <code>inline={{code|1=date=30 Feb 2010</code>. This works like the combination of the <code><nowiki><code></nowiki></code> and <code><nowiki><nowiki></nowiki></code> tags, applied to the expanded wikitext. For example, <code><nowiki>{{code|some '''wiki''' text}}</nowiki></code> will '''''not''''' render the word "wiki" in bold, and will render the tripled-single-quotes: |
||
:{{code|some '''wiki''' text}} |
:{{code|some '''wiki''' text}} |
||
44번째 줄: | 44번째 줄: | ||
|<nowiki>If the code contains an [[equals sign]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName("img");}}, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also [[:bugzilla:5138]].</nowiki> |
|<nowiki>If the code contains an [[equals sign]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName("img");}}, you must identify the first parameter explicitly as {{{1}}} or {{{code}}}; see also [[:bugzilla:5138]].</nowiki> |
||
|If the code contains an [[ |
|If the code contains an [[{{code|1=date=30 Feb 2010]], such as {{code |lang=javascript |code=var img = document.getElementsByTagName("img");}}, you must identify the first parameter explicitly as {{{1}}} or {{{code |lang=javascript |code=var img = }}}; see also [[:bugzilla:5138]]. |
||
}} |
}} |
||
2016년 7월 27일 (수) 13:52 판
This is a documentation subpage for 틀:Code. It contains usage information, categories and other content that is not part of the original 틀 page. |
}}</includeonly>