Content deleted Content added
Created page with "{{#if: {{{blcok|}}}|<syntaxhighlight lang="{{{lang|javascript}}}" line="1"> {{{1|}}} </syntaxhighlight> |<code style="direction: ltr">{{{1|}}}</code>}}" |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#if: {{{ |
<onlyinclude>{{#if: {{{block|}}}|<syntaxhighlight lang="{{{lang|javascript}}}" line="1"> |
||
{{{1|}}} |
{{{1|}}} |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
|<code style="direction: ltr">{{{1|}}}</code>}} |
|<span style="direction: ltr;"><code style="direction: ltr" {{#if: {{{copyme|}}}|class="copyme" data-toggle="tooltip" title="click to copy"}}>{{{1|}}}</code></span>}}</onlyinclude> |
||
<noinclude> |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": "code", |
|||
"type": "content", |
|||
"required": true, |
|||
"suggested": true |
|||
}, |
|||
"lang": { |
|||
"label": "code language", |
|||
"type": "string", |
|||
"suggested": true |
|||
}, |
|||
"block": { |
|||
"label": "code block (yes/empty)", |
|||
"type": "boolean", |
|||
"deprecated": true, |
|||
"suggested": true |
|||
}, |
|||
"copyme": { |
|||
"label": "Wheter to enable copy on click (yes or empty)", |
|||
"type": "boolean", |
|||
"suggested": true |
|||
} |
|||
}, |
|||
"description": "template for code lines and blocks", |
|||
"paramOrder": [ |
|||
"1", |
|||
"block", |
|||
"lang", |
|||
"copyme" |
|||
] |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
|||
Latest revision as of 14:24, 17 August 2021
template for code lines and blocks
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| code | 1 | no description | Content | required |
| code block (yes/empty) | block | no description | Boolean | deprecated |
| code language | lang | no description | String | suggested |
| Wheter to enable copy on click (yes or empty) | copyme | no description | Boolean | suggested |