Content deleted Content added
MalnadachBot (talk | contribs) m Fixed Lint errors. (Task 12) |
MalnadachBot (talk | contribs) m Fixed Lint errors. (Task 12) |
||
Line 3:
==Hooking an alerts template into the project banner==
So, I created [[:Template:WikiProject Louisville/alertshook]]. It requires no parameters. Now, how do I hook this into the bottom of my project banner? I already tried "HOOK_BOTTOM= alertshook" and other variations, but nothing works. Please help. [[User:Stevietheman|<
:You'd need to use {{nowrap|<code><nowiki>|HOOK_NOTE={{WikiProject Louisville/alertshook}}</nowiki></code>}}, to transclude the template into the banner. [[User:Happy-melon|<b style="color:forestgreen;">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange;">melon</b>]] 21:16, 15 December 2008 (UTC)
::Doesn't work. The template doesn't show up, and it messes up the format of the rest of the banner. Note that this alerts template is included in other banners with no issue. [[User:Stevietheman|<
:::Oh of course, sorry. Essentially the issue there is that the hook parameters are designed to allow you to do just about anything, which means you have to do just about ''everything'' <tt>:D</tt>. That means that you need to define a new table row, a new table cell within that row, enter the alert message, then close the cell, then close the row. The parameter {{para|BOTTOM_TEXT}} is better suited to what you want to do, since it does all that for you: anything you put into that parameter will display in a full-width row across the bottom of the banner. I see it's already used for something in {{tlx|WikiProject Louisville}}, but you might want to repurpose it. [[User:Happy-melon|<b style="color:forestgreen;">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange;">melon</b>]] 21:48, 15 December 2008 (UTC)
:::And it would be nice if that parameter actually worked <tT>:D</tt> I'll try and work out what's wrong there... [[User:Happy-melon|<b style="color:forestgreen;">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange;">melon</b>]] 21:50, 15 December 2008 (UTC)
:::{{fixed}} Sorry to run you round in circles like that! [[User:Happy-melon|<b style="color:forestgreen;">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange;">melon</b>]] 21:52, 15 December 2008 (UTC)
::::Thanks! I had meant to use BOTTOM_TEXT but it stopped working. So I'll go back to using that now instead of a hook. [[User:Stevietheman|<
== Peer Review Hook ==
|