Module talk:WikiProject banner: Difference between revisions

Content deleted Content added
More Notes: I have a cunning plan....
More Notes: response
Line 100:
One more thing, sorry to bother you so much (if the page was not protected I would do it myself), could you add a couple more notes to the banner (not C_NOTE, just regular notes). Thanks a lot. — [[User:Parent5446|Parent5446]] [[User talk:Parent5446|☯]] <sup class="plainlinks">([{{fullurl:User talk: Parent5446|action=edit&editintro=User:Parent5446/MediaWiki/TalkPageInstructions&section=new}} message] [[Special:Emailuser/Parent5446|email]])</sup> 19:34, 12 June 2008 (UTC)
:I'm reluctant to do this because you can achieve the same effect with 'bolt on' code on {{para|BOTTOM_TEXT}}. I think I'll cook up an "extra notes" 'module' to hang on that parameter, with the same syntax as the normal notes; that will avoid increasing the bytecount for other projects. Poke me if I forget this. <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 21:20, 19 June 2008 (UTC)
::Ok, I've had a closer look at the syntax I've already got, and the easiest thing to do it just to call {{tlx|WPBannerMeta/note}} directly with its internal parameters. So syntax like this:
<pre>{{WPBannerMeta
|PROJECT =
|BANNER_NAME = {{subst:FULLPAGENAME}}
|small={{{small|}}}
|nested={{{nested|}}}
|category={{{category|μ}}}
....
|NOTE_5 = yes
|note 5={{{**PARAMETER**|}}}
|NOTE_5_TEXT = Foo bar lorem ipsum
|NOTE_5_IMAGE = Foo.jpg
|NOTE_5_SIZE = 30px
|NOTE_5_CAT = Somecat
|NOTE_5_FORMAT =
|BOTTOM_TEXT = <!--
-->{{WPBannerMeta/note
|note={{{**PARAMETER**|}}}
|NOTE_TEXT = More text
|NOTE_IMAGE = Example.jpg
|NOTE_SIZE = 25px
|NOTE_CAT = AnotherCat
|NOTE_FORMAT =
}}{{WPBannerMeta/note
|note={{{**PARAMETER**|}}}
|NOTE_TEXT = More text
|NOTE_IMAGE = Example.jpg
|NOTE_SIZE = 25px
|NOTE_CAT = AnotherCat
|NOTE_FORMAT =
}}
}}<noinclude>
{{subst check|{{subst:FULLPAGENAME}}}}
</noinclude>
</pre>
::Can be repeated as often as desired to add more notes. It's actually a lot simpler than I expected! Note that since you're using (abusing really, but it does the job <tt>:D</tt>) an internal template, there are no numbers in the parameters. Hope this makes sense - let me know if you have any problems. <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<font color="darkorange">[[User talk:Happy-melon|'''melon''']]</font> 11:14, 29 June 2008 (UTC)