Template:Page warning: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><templatestyles src="Page warning/styles.css" /> | ||
<templatestyles src="Page warning/styles.css" /> | |||
<div class="template_pageWarning"> | <div class="template_pageWarning"> | ||
<div class="icon">[[File:Quest done icon.gif|link=]]</div> | <div class="icon">[[File:Quest done icon.gif|link=]]</div> | ||
<div class="content"> | <div class="content"> | ||
<div class="header">Warning:</div> | <div class="header">Warning:</div> | ||
<div class="message">{{{message|This page is in draft.}}}</div> | <div class="message">{{#if:{{{message|}}}|{{#switch:{{lc:{{{message}}}}} | ||
</div> | |draft=This page is in draft.[[Category:Pages with a page warning]] | ||
</div> | |delete=This page can be deleted.[[Category:Pages marked for deletion]] | ||
</includeonly> | |#default={{{message}}}[[Category:Pages with a page warning]] | ||
}}|This page is in draft.[[Category:Pages with a page warning]]}}</div></div></div></includeonly> | |||
<noinclude> | <noinclude> | ||
This is the "{{PAGENAME}}" template. It should be transcluded in the following format: | This is the "{{PAGENAME}}" template. It should be transcluded in the following format: | ||
Line 16: | Line 16: | ||
}} | }} | ||
</pre> | </pre> | ||
== Parameters == | |||
;message : Optional. Provide message to display in warning box. Preset messages include: | |||
:: draft | |||
:: delete | |||
:: Otherwise, displays chosen message if provided. Defaults to "draft" if left blank. | |||
== Example == | == Example == |
Latest revision as of 20:50, 11 October 2024
This is the "Page warning" template. It should be transcluded in the following format:
{{Page warning |message= }}
Parameters
- message
- Optional. Provide message to display in warning box. Preset messages include:
- draft
- delete
- Otherwise, displays chosen message if provided. Defaults to "draft" if left blank.
Example
{{Page warning|message={{Lorem}}}}
Warning: