Module talk:WikiProject banner/Archive 3: 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 725:
I've just ammended the above example to highlight a potential concern. Is there not a better way to display the B-Class checklist instructions when the banner is set to small? [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 16:45, 31 January 2009 (UTC)
:I've made ''an'' improvement, although it still makes the banner wider when it's uncollapsed. <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 16:57, 31 January 2009 (UTC)
== Portal link ==
 
Would it be possible to add a parameter that supresses the portal link when a banner is set to small? [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 17:33, 1 February 2009 (UTC)
:I'm sure that's possible, but if you're complaining about how text gets squashed up, try adding <code><nowiki>{{#ifeq:{{{small|}}}|yes|{{-}}|}}</nowiki></code> to the top of the main banner text. That fixes it (I know because I did it to {{tl|WPBeatles}}). '''[[User:Dendodge|<em style="font-family:Bradley Hand ITC;color:blue">Den</em><em style="font-family:Bradley Hand ITC;color:red">dodge</em>]]''' <small>[[User talk:Dendodge|Talk]]</small><sup>[[Special:Contributions/Dendodge|Contribs]]</sup> 19:23, 1 February 2009 (UTC)
::Not to worry, an #ifeq: parser function did the trick. [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 19:17, 3 February 2009 (UTC)
:::Nooooo! {{done}} in /core, no need for scary hacks like that <tt>:D</tt> <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 23:14, 3 February 2009 (UTC)
::::Many thanks! [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 23:45, 3 February 2009 (UTC)
 
== Importance parameter in [[Template:WikiProject Korea]] ==
 
I'm keen on getting this banner converted to the meta, and have been putting some finishing touches to the sandboxed version. However, another check of the current template code shows that it accepts multiple values for the {{para|importance}} parameter, i.e.
 
|1|1ST|1ST-RANK|TOP = Top
|2|2ND|2ND-RANK|HI|HIGH = High
|3|3RD|3RD-RANK|MID|MEDIUM = Mid
|4|4TH|4TH-RANK|LO|LOW|5|5TH|5TH-RANK|VLO|VERY LOW = Low
 
Is it possible for the meta to handle these, or will existing transclusions need to be fixed? [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 20:08, 3 February 2009 (UTC)
 
You should be able to use:
<pre>
|importance={{#switch:{{uc:{{{importance|}}}}}
|1|1ST|1ST-RANK|TOP = Top
|2|2ND|2ND-RANK|HI|HIGH = High
|3|3RD|3RD-RANK|MID|MEDIUM = Mid
|4|4TH|4TH-RANK|LO|LOW|5|5TH|5TH-RANK|VLO|VERY LOW = Low
|#default={{{importance|}}}
}}
</pre>
-- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 20:41, 3 February 2009 (UTC)
 
:Many thanks! [[User:PC78|PC78]] ([[User talk:PC78|talk]]) 21:07, 3 February 2009 (UTC)