Template:Page warning: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
<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.}}}[[Category:Page warning]]</div></div></div></includeonly>
<div class="message">{{#if:{{{message|}}}|{{#switch:{{lc:{{{message}}}}}
|draft=This page is in draft.[[Category:Pages with a page warning]]
|delete=This page can be deleted.[[Category:Pages marked for deletion]]
|#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 12: 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:
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.