Differenze tra le versioni di "Template:Ic"
(Creata pagina con '<noinclude>{{Template}} {{DISPLAYTITLE:Template:ic}} '''Inline code.''' * Use Template:bc for block code without header. * Use Template:hc for block code with header...') |
|||
Riga 6: | Riga 6: | ||
* Use [[Template:hc]] for block code with header. | * Use [[Template:hc]] for block code with header. | ||
− | == | + | ==Uso== |
{{bc|<nowiki>{{ic|code}}</nowiki>}} | {{bc|<nowiki>{{ic|code}}</nowiki>}} | ||
Riga 16: | Riga 16: | ||
{{Note|Please use the second argument only when strictly necessary, consider manually splitting the code in more parts instead.}}--> | {{Note|Please use the second argument only when strictly necessary, consider manually splitting the code in more parts instead.}}--> | ||
− | == | + | ==Esempio== |
{{ic|code}}</noinclude><includeonly><code{{{2| style="display:inline-block; padding: 0.1em 0.3em;"}}}>{{{code|{{{1|{{Error}}}}}}}}</code></includeonly><noinclude><!-- Note that using display:inline-block; is intentional, it allows easily selecting the whole code with a triple click in modern browsers. --></noinclude> | {{ic|code}}</noinclude><includeonly><code{{{2| style="display:inline-block; padding: 0.1em 0.3em;"}}}>{{{code|{{{1|{{Error}}}}}}}}</code></includeonly><noinclude><!-- Note that using display:inline-block; is intentional, it allows easily selecting the whole code with a triple click in modern browsers. --></noinclude> |
Versione attuale delle 18:08, 12 mag 2012
Inline code.
- Use Template:bc for block code without header.
- Use Template:hc for block code with header.
Uso
<pre<noinclude></noinclude>>{{ic|code}}</pre<noinclude></noinclude>>
Esempio
code