Difference between revisions of "User:Evon R'al/Sandbox template/doc"

From EVE University Wiki
Jump to: navigation, search
m (Working on template {{Deletion}})
m (Rewrite/update documentation.)
Line 1: Line 1:
<noinclude>{{main|Template:Deletion}}</noinclude>
+
; Description
;Description
+
: This template is used to indicate that the page may be deleted.  Pages may be marked for deletion if they are no longer relevant or are of limited utility. Putting this template on a page automatically adds it to [[:Category:Candidates for deletion]].
:This template is used to indicate that the current page may soon be deleted.  Pages may be marked for deletion if they are no longer relevant or are of limited utility.
+
: This template will automatically adapt its text based on the [[mediawikiwiki:Help:Namespaces|namespace]] in which it is used.
 +
:: {|
 +
!Namespace!!text
 +
|-
 +
|Main|| article
 +
|-
 +
|File||file
 +
|-
 +
|Template||template
 +
|-
 +
|Category||category
 +
|-
 +
|all other||page
 +
|}
 +
 
 
; Dependencies
 
; Dependencies
 
:: Uses:
 
:: Uses:
 
:: {{Tl|Banner}}
 
:: {{Tl|Banner}}
;Syntax
 
:Type <code>{{t|Deletion}}</code> at the top of the page.
 
;Sample output
 
:<code><nowiki>{{Deletion}}</nowiki></code> produces the banner as above
 
;Optional descriptor
 
:Type <code>{{t|Deletion|Example reason given}}</code> at the top of the page.
 
; Sample output <!--
 
  
Not using the actual template to avoid the automatic category assigning
+
; Syntax
 +
: {{T|Deletion|Reason for deletion}}
 +
 
 +
; Sample output
 +
: <code><nowiki>{{Deletion}}</nowiki></code> produces the banner as above.
 +
 
 +
: <code><nowiki>{{Deletion|Request of author.}}</nowiki></code> gives:<!--
 +
 
 +
Not using the actual template to avoid the automatic category assigning.
  
 
-->  
 
-->  
:<code><nowiki>{{Deletion|Request of author.}}</nowiki></code> produces this banner:
 
 
{{Banner|color= #990000|border= #990000
 
{{Banner|color= #990000|border= #990000
 
|'''This article is a candidate for deletion.'''<br> Reason: ''Request of author.''}}
 
|'''This article is a candidate for deletion.'''<br> Reason: ''Request of author.''}}
 
<!--Prevented to stop loopback. Telinchei 2015.
 
Sample output
 
:<code><nowiki>{{Deletion|Request of author.}}</nowiki></code> produces this banner:
 
:{{Deletion|Request of author.}}-->
 
 
Putting this template on a page also adds it to [[:Category:Candidates for deletion]].
 
  
 
<includeonly>[[Category:Maintenance templates]]</includeonly>
 
<includeonly>[[Category:Maintenance templates]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 09:59, 2 February 2022

Description
This template is used to indicate that the page may be deleted. Pages may be marked for deletion if they are no longer relevant or are of limited utility. Putting this template on a page automatically adds it to Category:Candidates for deletion.
This template will automatically adapt its text based on the namespace in which it is used.
Namespace text
Main article
File file
Template template
Category category
all other page
Dependencies
Uses:
{{Banner}}
Syntax
{{Deletion|<Reason for deletion>}}
Sample output
{{Deletion}} produces the banner as above.
{{Deletion|Request of author.}} gives:
This article is a candidate for deletion.
Reason: Request of author.