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

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot
Line 480:
I think it would be useful to have a {{para|TF_TEXT}} option which would define how the text for each task force is formatted. It would have access to the name, link, and normalised taskforce importance via special strings _NAME_, _LINK_, _IMPORTANCE_ which will be substituted by the module. In most banner templates it would save having to define TF_1_TEXT, TF_2_TEXT, etc. separately. For example it could be used as follows:
<pre>TF_TEXT = This article is supported by the [[_LINK_|_NAME_ task force]] (rated as _IMPORTANCE_-importance)</pre> &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 07:31, 18 October 2023 (UTC)
 
== Inactive banners ==
 
I've got a conversion of [[Template:Inactive WikiProject banner]] on [[Module:WikiProject banner/sandbox]], with a test on [[Template:WikiProject The KLF/sandbox]]. We could now customise the inactive project banners further if wanted. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 21:08, 20 October 2023 (UTC)
 
:This has now been implemented, and inactive project banner templates can use the "inactive" function of [[Module:WikiProject banner]], i.e. replace the top line of code with <code><nowiki>{{#invoke:WikiProject banner|inactive</nowiki></code> &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:25, 23 October 2023 (UTC)