Module talk:WikiProject banner/Archive 9: Difference between revisions

Content deleted Content added
MiszaBot II (talk | contribs)
m Archiving 2 thread(s) from Template talk:WPBannerMeta.
MiszaBot II (talk | contribs)
m Archiving 2 thread(s) from Template talk:WPBannerMeta.
Line 251:
:Taking usage first, if the banner is placed on a category/template talk page, the only way that it will show as start/stub/etc. is if the banner is explicitly given {{para|class|stub}} etc.; and the only way that it will show importance as low/mid/etc. is if the banner is explicitly given {{para|importance|low}} etc. If these parameters are omitted, then the class and importance are set automatically, to Category-class/NA-importance or Template-class/NA-importance.
:Considering the set-up: if the banner passes {{para|QUALITY_SCALE|standard}}, or omits that parameter, then Category-class and Template-class are disabled, and use of {{para|class|cat}} will result in NA-class, as will the omission of {{para|class}} when the banner is placed on a category talk page. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 17:39, 15 December 2010 (UTC)
== Redirect class articles become NA class ==
 
For some reason the [[:Category:Redirect-Class Dacia articles]] that we created end up in [[:Category:NA-Class Dacia articles]].
Unless we did something wrong, looks like a bug. We are using {{tl|WikiProject Dacia}} which is derived from WPBannerMeta --[[User:Codrinb|Codrinb]] ([[User talk:Codrinb|talk]]) 19:53, 27 December 2010 (UTC)
:I think I fixed it for ya. I added a custom class mask and a couple of other things. Let me know if you still need some help. --[[User:Kumioko|Kumioko]] ([[User talk:Kumioko|talk]]) 20:27, 27 December 2010 (UTC)
::Thanks a lot! --[[User:Codrinb|Codrin.B]] ([[User talk:Codrinb|talk]]) 04:28, 24 January 2011 (UTC)
 
== Portal switch question ==
 
Is there a way to add the "yesno" template to this code for the portal switch on {{tl|WikiProject United States}}, so that parameters with "DC=Yes" or "District of Columbia=Yes", which use the upper case "Yes", will also take on the switch from the USA portal to the Washington, D.C. portal? The template is only recognizing the switch when the lower case "yes" is used, and I'm not familiar enough with the coding needed to do the job. Thanks.
:<code><nowiki>|PORTAL = {{#ifeq:{{{District of Columbia|{{{DC|}}}}}}|yes|Washington, D.C.|United States}}</nowiki></code>
--[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 17:57, 4 January 2011 (UTC)
::<code><nowiki>|PORTAL = {{#ifeq:{{lc:{{{District of Columbia|{{{DC|}}}}}}}}|yes|Washington, D.C.|United States}}</nowiki></code>
:--[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 18:33, 4 January 2011 (UTC)
:::Thank you!! It worked!! Is there a page on WP or m: that explains how to use the "lc:" function? --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 18:41, 4 January 2011 (UTC)
:Why not just <code><nowiki>|PORTAL = {{yesno|{{{District of Columbia|{{{DC|}}}}}}|yes=Washington, D.C.|def=United States|no=United States}}</nowiki></code>? [[User:Happy-melon|<b style="color:forestgreen">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange">melon</b>]] 18:45, 4 January 2011 (UTC)
::Thanks, is there a difference between the results in using one or the other templates, or will there be an equal computational result? --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 18:48, 4 January 2011 (UTC)
:::Details of {{tlc|lc:}} are at [[WP:MAGIC#Formatting]].
:::{{tlx|yesno}} will be "hungrier" than just using {{tlc|lc:}}, because it not only pushes the value concerned through {{tlc|lc:}}, but also performs some other checks. It treats "n" and "0" as equivalent to "no"; "y" and "1" as equivalent to "yes"; it also recognises blank values as equivalent to "no"; and other values as equivalent to "yes". These last two can be configured to be treated differently. It can then (as Happymelon demonstrated) be used to yield ''any'' two result strings, not just "yes" or "no". Finally, it handles the special character "¬" as a separate case. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 20:36, 4 January 2011 (UTC)
::::Thx for the explanation & the pointer to the help pg! This is probably way beyond my comprehension. :) --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 21:08, 9 January 2011 (UTC)