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

Content deleted Content added
MalnadachBot (talk | contribs)
m Fixed Lint errors. (Task 12)
fix syntaxhighlight
 
(3 intermediate revisions by 2 users not shown)
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|<fontspan colorstyle="color:green;">'''Stevie is the man!'''</fontspan>]] <sup>[[User talk:Stevietheman|Talk]] &bull; [[Special:Contributions/Stevietheman|Work]]</sup> 20:44, 15 December 2008 (UTC)
: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|<fontspan colorstyle="color:green;">'''Stevie is the man!'''</fontspan>]] <sup>[[User talk:Stevietheman|Talk]] &bull; [[Special:Contributions/Stevietheman|Work]]</sup> 21:24, 15 December 2008 (UTC)
:::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>{{mono|1=: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>{{mono|1=: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|<fontspan colorstyle="color:green;">'''Stevie is the man!'''</fontspan>]] <sup>[[User talk:Stevietheman|Talk]] &bull; [[Special:Contributions/Stevietheman|Work]]</sup> 23:40, 15 December 2008 (UTC)
 
== Peer Review Hook ==
Line 75:
<br>
'''source'''
<div style="font-size:90%; margin:0px;"><syntaxhighlight lang="html4strictwikitext" ">
| b1 <!--Referencing & citations--> = <yes/no>
| b2 <!--Coverage & accuracy --> = <yes/no>