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

Content deleted Content added
m commenting out unsupported parameters in {{WikiProject New Zealand}}
m Obsolete HTML tags "tt" swapped out for "code", "font" changed to "span style". Project Lint
Line 135:
::the second {{para|class}} overrides the first, so the talk page goes in the "unassessed tulips articles" category.
::Most, if not all, project banners are completely tolerant about the capitalisation of parameter ''values''; so {{para|class|c}} is treated as if it were {{para|class|C}}; but I don't know of any that would allow {{para|Class|C}}. There seems to be a convention that parameter names are almost always entirely lowercase, with the capitalised form only used for proper names: for example, {{tlx|WikiProject Trains}} has {{para|Scotland}}, but not {{para|scotland}}. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 21:02, 3 September 2010 (UTC)
:::I don't think this is an issue; template parameters are generally assumed to be lower-case. Changing them to recognize upper-case and lower-case (i.e., {{code|1=class=}} versus {{code|1=Class=}}) has no purpose, in my opinion. <fontspan style="font-family: 'Times New Roman'">[[User:Intelligentsium|<span style="color:#013220">Intelligent</span>]]'''[[User_talk:Intelligentsium|<span style="color:Black">sium</span>]]'''</fontspan> 00:15, 4 September 2010 (UTC)
:::The parameter is lower case but the value is not. It's correct to have class=C. I also don't think it's an issue but perhaps some WikiProjects have an issue like the above Scotland= example WikiProject Trains. Regards, [[User:SunCreator|SunCreator]] <sup>([[User talk:SunCreator|talk]])</sup> 00:26, 4 September 2010 (UTC)
::::It is only an issue at WP banner templates that use the upper case for parameters, and don't remember to double-code it to take both uc and lc characters. Maybe this could be pointed out in the TF setup instructions, somewhere? --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 20:19, 7 September 2010 (UTC)
Line 513:
* This banner template includes a link to Portal:Internet. The name of the accompanying image is held here.
* The following categories are required for the banner to work correctly. Please either create these categories or adjust the banner so that they are not required. [[:Category:Semantic Web articles]]
<span style="border:2px solid red;padding:1px;background:navy">[[User:Senator2029|<span style="color:yellow;">'''Senator2029'''</span>]]&nbsp;<fontspan colorstyle="color: white">&#124;</fontspan>&nbsp;[[User talk:Senator2029|<span style="color:lime;">'''talk'''</span>]]</span> 18:43, 19 October 2011 (UTC)
:The first two are informative, not errors; no action is needed.
:The third merely means that one of the categories required by the project banner hasn't been created. This is the category declared by the {{para|TF_1_ASSESSMENT_CAT|Semantic Web articles}} and {{para|TF_1_MAIN_CAT|Semantic Web articles}} parameters to {{tlx|WPBannerMeta}} within [[Template:WikiProject Internet]]. --[[User:Redrose64|<span style="color:#d30000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 19:15, 19 October 2011 (UTC)
{{Thank you}}
<span style="border:2px solid red;padding:1px;background:navy">[[User:Senator2029|<span style="color:yellow;">'''Senator2029'''</span>]]&nbsp;<fontspan colorstyle="color: white">&#124;</fontspan>&nbsp;[[User talk:Senator2029|<span style="color:lime;">'''talk'''</span>]]</span> 21:51, 19 October 2011 (UTC)
== Template:WikiProject Food and drink/sandbox ==
 
Line 589:
It would be useful to have a link to the template page on every banner template, in the same way as {{tl|infobox}} (with its "View", "Talk", and "Edit" links, although I think only a "View" is necessary). This is useful in order to see what parameters it accepts, such as task force assignments, without having to edit the page, see its name, and looking it up.
 
Thank you! [[User:InverseHypercube|<fontspan colorstyle="color: blue" size="2px">Inverse</fontspan><fontspan colorstyle="color: #6495ED" size="2px">Hypercube</fontspan>]] <small>([[User talk:InverseHypercube|talk]])</small> 03:42, 6 April 2012 (UTC)
 
:The feature is already there but hidden by default. See [[Template talk:WPBannerMeta/Archive 2#Editlinks]]. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 07:38, 6 April 2012 (UTC)
::Great, thank you! Maybe this should be mentioned in the documentation? [[User:InverseHypercube|<fontspan colorstyle="color: blue" size="2px">Inverse</fontspan><fontspan colorstyle="color: #6495ED" size="2px">Hypercube</fontspan>]] <small>([[User talk:InverseHypercube|talk]])</small> 20:34, 6 April 2012 (UTC)
== WikiProject Carrom template ==
 
Line 814:
 
:Fairly sure this doesn't require anything more than changing
::<ttcode>|MAIN_CAT = WikiProject Categories articles</ttcode>
:to
::<ttcode>|MAIN_CAT = WikiProject Categories pages</ttcode>
:On {{tlx|WikiProject Categories}}. [[User:Happy-melon|<b style="color:forestgreen">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange">melon</b>]] 18:06, 10 February 2013 (UTC)
::Thanks! Done that. --[[User:BrownHairedGirl|<span style="color:#663200;">Brown</span>HairedGirl]] <small>[[User talk:BrownHairedGirl|(talk)]] • ([[Special:Contributions/BrownHairedGirl|contribs]])</small> 18:13, 10 February 2013 (UTC)
Line 829:
== |category=no conflict with FQS ==
 
I was just doing some cleanup and came across [[Wikipedia_talk:WikiProject_Law/Archive_13#Changing_the_WP_Law_template_to_include_a_link_to_Portal:Law_of_England_and_Wales | an example]] of someone trying to use the <ttcode>|category=no</ttcode> switch with a WPBM-based banner. AFAICT, the problem is that {{tl|WikiProject Law}} uses a custom class list with {{tl|class mask}} <ttcode>|FQS=yes</ttcode>. What seems to be happening is that <ttcode>|category=no</ttcode> seems to be applied by {{tl|class mask}} to stop the category class being used, rather than applying to WPBM to stop the article being included in a category. Am I right in that interpretation? It's obviously not ideal having the same parameter being used by two parts of the same template, particularly when the less important bit is "winning" the battle to use that parameter. I'm not sure what is the least bad way to fix this, perhaps we need two new versions of FQS in {{tl|class mask}}, one where <ttcode>category=yes</ttcode> is assumed, and one with <ttcode>category=no</ttcode> implied, so that {{tl|class mask}} doesn't need a separate <ttcode>category</ttcode> parameter? (I did search the archives to see if this had come up before, apologies if it has) [[User:Le Deluge|Le Deluge]] ([[User talk:Le Deluge|talk]]) 19:55, 24 February 2013 (UTC)
 
:It's fine. The {{para|category}} parameters are used in the different templates in different ways and one does not affect the other. For example: {{tlx|WikiProject Law|2=class=category|3=category=no}}
{{WikiProject Law|class=category|category=no}}
:-- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 20:12, 24 February 2013 (UTC)
::Ach, sorry to bother you like that. I've now realised that the sandbox version of the template had a not-very-obvious transclusion that applied a category and was ignoring <ttcode>category=no</ttcode>. My fault, apologies again. [[User:Le Deluge|Le Deluge]] ([[User talk:Le Deluge|talk]]) 00:44, 25 February 2013 (UTC)
:::Hmm, altering the WPLAW banner so that it would take an optional additional portal link was an idea I had, but I never got round to taking it live. Does the code you've now tweaked fix a problem I didn't even know I had?! Can you see anything stopping the revised code being used? Thanks for looking at this. [[User:Bencherlite|Bencherlite]][[User talk:Bencherlite|<i><sup>Talk</sup></i>]] 08:30, 25 February 2013 (UTC)
::::I thought it was working, but now it's definitely not. I've tried to simplify it (take it out of the EW detection etc) just for now but it still doesn't seem to be picking up the <ttcode>{{{category}}}</ttcode> correctly. I'm very much a beginner at template synbtax, if anyone wants to have a look the relevant transclude is at [[Template:WikiProject Law/sandbox/portalbox‎]], the rest of it is at [[Template:WikiProject Law/sandbox]] and a test is at [[Template talk:WikiProject Law/sandbox ‎]] - one thing I did find is that it works much better if you test the version you've been editing in the sandbox rather than the "live" one that's not been touched!!! [[User:Le Deluge|Le Deluge]] ([[User talk:Le Deluge|talk]]) 22:40, 25 February 2013 (UTC)
:::::The reason was that you weren't passing the category param through from one template to the next template. I edited [http://en.wikipedia.org/w/index.php?title=Template:WikiProject_Law/sandbox&diff=540396708&oldid=455414433 Template:WikiProject_Law/sandbox] to add that. I've also edited [[Template:WikiProject Law/sandbox/portalbox]] to make it use {{tl|WPBannerMeta/hooks/cats}} but you can go back to your original method if you want to. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 23:33, 25 February 2013 (UTC)