Template:Warning
<languages/>
{{#if: |
<td style="padding-{{#switch:{{#if:||{{#if:{{#ifeq:lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted|en|{{#ifeq:{{#titleparts:warning||-1}}|en
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted
}}
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted }}|{{#ifeq:lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted|en |{{#ifeq:{{#titleparts:warning||-1}}|en
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted
}}
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted }}|⧼lang⧽}}}} |aeb|aeb-arab|aic|ar|arc|arq|ary|arz|azb|bcc|bgn|bqi|bqp|ckb|ckb-arab|dv|en-rtl|fa|fa-af|glk|ha-arab|haz|he|khw|kk-arab|kk-cn|ks|ks-arab|ku-arab|lki|lrc|luz|mzn|nqo|ota|phn|pnb|prd|prs|ps|sd|sdh|skr|skr-arab|tg-arab|tly|ug|ug-arab|ur|uz-arab|xpu|ydd|yi ={{#ifeq:|-||{{#ifeq:right|right|right|rtl}}}} |#default ={{#ifeq:|-||{{#ifeq:left|left|left|ltr}}}}
}}: 0.5em vertical-align: top;">}}
Lua error: Cannot create process: proc_open(/dev/null): Failed to open stream: Operation not permitted{{#if:<translate>
Usage
This template has two possible usages:
- Will have the text flow below when the warning text is too long</translate>
<translate>
- Uses a table to indent the text.
Method 1
</translate> <translate> The following displays the warning icon and the word "Warning:".</translate> <translate> You can follow this with whatever text/images/markup you like.</translate>
<translate> Wiki Code:</translate>
{{warning}} <translate> Don't do that!</translate>
{{#if: |
<td style="padding-{{#switch:{{#if:||{{#if:{{#ifeq:lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted|en|{{#ifeq:{{#titleparts:warning||-1}}|en
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted
}}
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted }}|{{#ifeq:lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted|en |{{#ifeq:{{#titleparts:warning||-1}}|en
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted
}}
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted }}|⧼lang⧽}}}} |aeb|aeb-arab|aic|ar|arc|arq|ary|arz|azb|bcc|bgn|bqi|bqp|ckb|ckb-arab|dv|en-rtl|fa|fa-af|glk|ha-arab|haz|he|khw|kk-arab|kk-cn|ks|ks-arab|ku-arab|lki|lrc|luz|mzn|nqo|ota|phn|pnb|prd|prs|ps|sd|sdh|skr|skr-arab|tg-arab|tly|ug|ug-arab|ur|uz-arab|xpu|ydd|yi ={{#ifeq:|-||{{#ifeq:right|right|right|rtl}}}} |#default ={{#ifeq:|-||{{#ifeq:left|left|left|ltr}}}}
}}: 0.5em vertical-align: top;">}} <translate> Don't do that!</translate>
<translate>
Method 2
The following includes the text passed to the template, and uses a table to stop the text flowing round the icon.
Wiki Code: </translate>
{{warning|1=<translate> Here is a long warning, which is sufficiently wordy to run onto a second line (unless you have a really large screen!), which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight.</translate>}}
{{#if: <translate> Here is a long warning, which is sufficiently wordy to run onto a second line (unless you have a really large screen!), which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight.</translate>|
<td style="padding-{{#switch:{{#if:||{{#if:{{#ifeq:lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted|en|{{#ifeq:{{#titleparts:warning||-1}}|en
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted
}}
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted }}|{{#ifeq:lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted|en |{{#ifeq:{{#titleparts:warning||-1}}|en
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted
}}
|lua error: cannot create process: proc_open(/dev/null): failed to open stream: operation not permitted }}|⧼lang⧽}}}} |aeb|aeb-arab|aic|ar|arc|arq|ary|arz|azb|bcc|bgn|bqi|bqp|ckb|ckb-arab|dv|en-rtl|fa|fa-af|glk|ha-arab|haz|he|khw|kk-arab|kk-cn|ks|ks-arab|ku-arab|lki|lrc|luz|mzn|nqo|ota|phn|pnb|prd|prs|ps|sd|sdh|skr|skr-arab|tg-arab|tly|ug|ug-arab|ur|uz-arab|xpu|ydd|yi ={{#ifeq:|-||{{#ifeq:right|right|right|rtl}}}} |#default ={{#ifeq:|-||{{#ifeq:left|left|left|ltr}}}}
}}: 0.5em vertical-align: top;"><translate> Here is a long warning, which is sufficiently wordy to run onto a second line (unless you have a really large screen!), which would normally cause it to wrap round the icon, but because we passed it as a parameter it keeps its left alignment straight.</translate>}}|
[[Category:Template documentation pages{{#translation:}}]] }} [[Category:Warning templates{{#translation:}}|Warning]]