Difference between revisions of "Template:UC"

From Team Fortress Wiki
Jump to: navigation, search
(Added note about 3= being required or else it all collapses :()
m (oops)
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{subst:</includeonly><includeonly>void|<span style="font-size: large; color: red">[[Category:Pages with incorrectly transcluded templates]]'''This template should always be substituted. Please change <nowiki>{{Template:uf}}</nowiki> to <nowiki>{{subst:uf}}</nowiki>'''</span>}}</includeonly>
+
<includeonly>{{subst:void| <!-- If correctly substituted, {{void}} will remove the warning below. -->
Hi {{#if:{{{1|}}}|{{{1}}}|<includeonly>{{subst:</includeonly>PAGENAME}}}},
+
<span style="font-size: large; color: red">'''<nowiki>This template should always be substituted. Please change {{UC}} to {{subst:UC}}</nowiki>'''</span>
 +
[[Category:Pages with incorrectly transcluded templates]]}}</includeonly>
 +
Hi {{{1|{{<includeonly>subst:</includeonly>PAGENAME}}}}},
  
Please add "User {{#if:{{{1|}}}|{{{1}}}|<includeonly>{{subst:</includeonly>PAGENAME}}}}" in front of any file you intend to use on your user space, such as "User {{#if:{{{1|}}}|{{{1}}}|<includeonly>{{subst:</includeonly>PAGENAME}}}} Profile Picture.png". {{#switch:{{{Category}}}|no=|Please also add <nowiki>[[Category:User images]]</nowiki>.}}
+
Please add "User {{{1|{{<includeonly>subst:</includeonly>PAGENAME}}}}}" in front of any file you intend to use on your user space, for example "User {{{1|{{<includeonly>subst:</includeonly>PAGENAME}}}}} Profile Picture.png". {{<includeonly>subst:</includeonly>#ifeq:{{{Category|{{{category|}}}}}}|no||Please also add [[:Category:User images]] to the image summary.}} {{<includeonly>subst:</includeonly>#ifeq:{{{Changed|{{{changed|}}}}}}|no||There is no need to upload the image again, I have already changed the file's name.}}<noinclude>{{doc begin}}
{{{3|}}}
+
This template is intended to be used to warn a user who did not include the "User" prefix for their images. This is only suitable for first-time offenders -- on subsequent violations feel free to mark the page for deletion/delete as necessary.
<noinclude>{{{3}}}</noinclude>
+
 
<noinclude>
+
Note: "UC" stands for User Content.
{{doc begin}}
 
This template is intended to be used for any user who does not include the prefix, rather than deleting it and not having them learn first. Only intended to be used the first time it happens, any time it happens after feel free to mark the page for deletion/delete as mentioned on upload page (UF = User File).
 
  
 
== Usage ==
 
== Usage ==
:<code><nowiki>{{subst:UF|1=<Username>|Category=no|3=<Custom message>}}</nowiki></code>
+
:<code><nowiki>{{subst:UC|Username|Category=no|Changed=no}}</nowiki></code>
;The first parameter is set to fetch the user's name by default and should primarily be used on "Flow" talk pages or in case <nowiki>{{PAGENAME}}</nowiki> fails.
+
{{c|Alert|This template should ''always'' be substituted!}}
;:This template should ''always'' be substituted
 
  
 
== Parameters ==
 
== Parameters ==
; Parameter 1
+
; Unnamed parameter 1
: Name of the user; if left blank it will use the page name.
+
: Overrides the username (by default this uses [[w:mw:Help:Magic words#Page names|<nowiki>{{PAGENAME}}</nowiki>]]).
 
; Category
 
; Category
: Defaults to yes. If no, removes the mention of adding the category.
+
: Set to "no" to suppress an extra suggestion to add [[:Category:User images]] to upload
; Parameter 3
+
; Changed
: Optional: Your own extra text, used for anything.
+
: Set to "no" to suppress a line saying you have already done this for me. '''Note:''' you should only exclude this if said image has been deleted, it is always expected that you correct the file name and category.
::Note that <code>3=</code> is required if the second parameter is used. Otherwise, it won't work <!-- Don't ask why just accept it -->
+
[[Category:Help templates|UC]]
 
</noinclude>
 
</noinclude>

Latest revision as of 21:21, 28 March 2023

Hi UC,

Please add "User UC" in front of any file you intend to use on your user space, for example "User UC Profile Picture.png". Please also add Category:User images to the image summary. There is no need to upload the image again, I have already changed the file's name.

Documentation for UC

This template is intended to be used to warn a user who did not include the "User" prefix for their images. This is only suitable for first-time offenders -- on subsequent violations feel free to mark the page for deletion/delete as necessary.

Note: "UC" stands for User Content.

Usage

{{subst:UC|Username|Category=no|Changed=no}}

Pictogram comment.png This template should always be substituted!

Parameters

Unnamed parameter 1
Overrides the username (by default this uses {{PAGENAME}}).
Category
Set to "no" to suppress an extra suggestion to add Category:User images to upload
Changed
Set to "no" to suppress a line saying you have already done this for me. Note: you should only exclude this if said image has been deleted, it is always expected that you correct the file name and category.