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

Content deleted Content added
MalnadachBot (talk | contribs)
m Fixed Lint errors. (Task 12)
MalnadachBot (talk | contribs)
m Fixed Lint errors. (Task 12)
Line 242:
== Placing notes into the banner ==
 
I noticed there is code to add a link to a page of notes, but what if I want to just have the ability to put {{tl|Template|class=Start|notes="Needs references"}} and have the text "There are notes on improving this article: Needs references" appear below the quality/importance. Is this possible? - '''[[User:Floydian|<fontspan colorstyle="color:#5A5AC5;">ʄɭoʏɗiaɲ</fontspan>]]''' <sup>[[User_talk:Floydian|<fontsup colorstyle="color:#3AAA3A;">τ</fontsup>]]</sup> <sub>[[Special:Contributions/Floydian|<fontsub colorstyle="color:#3AAA3A;">¢</fontsub>]]</sub> 18:52, 23 August 2009 (UTC)
:Of course. Is this a to-do list or something? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:01, 23 August 2009 (UTC)
::No just on an individual article basis. My "needs references" was just an example of what I could type in. Basically having notes="blah blah blah" as a parameter would make "blah blah blah" appear in the template. Sorry if I'm confusing, I don't even know how to word something like this. I don't want a predetermined list of notes to call upon, but rather the ability to add a note individually to each article (if that makes sense) - '''[[User:Floydian|<fontspan colorstyle="color:#5A5AC5;">ʄɭoʏɗiaɲ</fontspan>]]''' <sup>[[User_talk:Floydian|<fontsup colorstyle="color:#3AAA3A;">τ</fontsup>]]</sup> <sub>[[Special:Contributions/Floydian|<fontsub colorstyle="color:#3AAA3A;">¢</fontsub>]]</sub> 19:43, 23 August 2009 (UTC)
:::I'm guess, looking at your contributions, that you are talking about the progressive rock template? I've put some possible code in the [[Template:Progressive Rock/sandbox|template sandbox]]. So for example <nowiki>{{WikiProject Progressive Rock|class=C|note=needs references}}</nowiki> would produce:
{{WikiProject Progressive Rock/sandbox|class=C|note=needs references|category=no}}
:::Is this what you had in mind? If not you might be able to work out how to tweak the code. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:52, 23 August 2009 (UTC)
::::Thats exactly it :) Thank you once again for your awesome template knowledge Martin!.. If-then conditionals in wiki syntax are really strange. - '''[[User:Floydian|<fontspan colorstyle="color:#5A5AC5;">ʄɭoʏɗiaɲ</fontspan>]]''' <sup>[[User_talk:Floydian|<fontsup colorstyle="color:#3AAA3A;">τ</fontsup>]]</sup> <sub>[[Special:Contributions/Floydian|<fontsub colorstyle="color:#3AAA3A;">¢</fontsub>]]</sub> 20:22, 23 August 2009 (UTC)
:::::Great, another satisfied customer. You're welcome :) &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:30, 23 August 2009 (UTC)