Template:Page warning: Difference between revisions

From FHX Wiki
No edit summary
No edit summary
 
(9 intermediate revisions by 2 users 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">https://cdn.fhxrestoration.com/common/interface/icons/quest_done.gif</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}}}</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 ==
<pre>
<pre>
{{Page warning
{{Page warning|message={{Lorem}}}}
|message=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.
}}
</pre>
</pre>
{{Page warning
{{Page warning|message={{Lorem}}}}
|message=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.
}}
</noinclude>
</noinclude>

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.