Template talk:Visible anchor: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
→‎Allow more anchors: suggestion - use {{anchor}}
Tag: Reverted
Tag: Reverted
Line 3: Line 3:
== Allow more anchors ==
== Allow more anchors ==


{{Edit template-protected|answered=no}}
{{Edit template-protected|answered=yes}}
{{diff|title=Wikipedia:What Wikipedia is not|oldid=1078614597|diff=prev|label=Here}} is an example where there were not enough anchors available; that page has up to 14 anchors in one (the current limit is 10). I've increased the limit to 20 on the [[Template:Visible anchor/sandbox|sandbox]], which should hopefully be enough for the forseeable future, although maybe the limit could be eliminated with [[Template:For loop]]? ―[[User:Jochem van Hees|Jochem van Hees]] ([[User talk:Jochem van Hees|talk]]) 13:00, 22 March 2022 (UTC)
{{diff|title=Wikipedia:What Wikipedia is not|oldid=1078614597|diff=prev|label=Here}} is an example where there were not enough anchors available; that page has up to 14 anchors in one (the current limit is 10). I've increased the limit to 20 on the [[Template:Visible anchor/sandbox|sandbox]], which should hopefully be enough for the forseeable future, although maybe the limit could be eliminated with [[Template:For loop]]? ―[[User:Jochem van Hees|Jochem van Hees]] ([[User talk:Jochem van Hees|talk]]) 13:00, 22 March 2022 (UTC)
:{{replyto|Jochem van Hees}} You don't need to go that far. 14 visible anchors is about 12 too many in any case. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 16:23, 22 March 2022 (UTC)
:{{replyto|Jochem van Hees}} You don't need to go that far. 14 visible anchors is about 12 too many in any case. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 16:23, 22 March 2022 (UTC)
::Why? Those anchors are already there, and probably all have incoming links. Why should they be removed? &horbar;[[User:Jochem van Hees|Jochem van Hees]] ([[User talk:Jochem van Hees|talk]]) 16:27, 22 March 2022 (UTC)
::Why? Those anchors are already there, and probably all have incoming links. Why should they be removed? &horbar;[[User:Jochem van Hees|Jochem van Hees]] ([[User talk:Jochem van Hees|talk]]) 16:27, 22 March 2022 (UTC)
:::I see no reason that you can't use {{tlx|anchor}} (which has unlimited parameters) to supply the extra ones. So for the case with 14 anchors (do you ''really'' need that many), instead of <syntaxhighlight lang=moin># {{visible anchor|soap5|Soap5|SOAP5|ADVERTISING|MARKETING|PR|ADVERT|COMMERCIAL|PROMOCORP|GARAGE|PUBLICRELATIONS|PUBLIC RELATIONS|PUBLICITY|Advertising, marketing or public relations|text='''Advertising, marketing or public relations.'''}}</syntaxhighlight> you could use <syntaxhighlight lang=moin># {{anchor|soap5|Soap5|SOAP5|ADVERTISING|MARKETING|PR|ADVERT|COMMERCIAL|PROMOCORP|GARAGE|PUBLICRELATIONS|PUBLIC RELATIONS|PUBLICITY}}{{visible anchor|Advertising, marketing or public relations|text='''Advertising, marketing or public relations.'''}}</syntaxhighlight> One of the features of {{tlx|Visible anchor}} over {{tlx|anchor}} is that one of the anchors (the first one) is ''visible''; but when you use the {{para|text}} parameter, that benefit is defeated. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 17:17, 22 March 2022 (UTC)
:::I see no reason that you can't use {{tlx|anchor}} (which has unlimited parameters) to supply the extra ones. So for the case with 14 anchors (do you ''really'' need that many), instead of <syntaxhighlight lang=moin># {{visible anchor|soap5|Soap5|SOAP5|ADVERTISING|MARKETING|PR|ADVERT|COMMERCIAL|PROMOCORP|GARAGE|PUBLICRELATIONS|PUBLIC RELATIONS|PUBLICITY|Advertising, marketing or public relations|text='''Advertising, marketing or public relations.'''}}</syntaxhighlight> you could use <syntaxhighlight lang=moin># {{anchor|soap5|Soap5|SOAP5|ADVERTISING|MARKETING|PR|ADVERT|COMMERCIAL|PROMOCORP|GARAGE|PUBLICRELATIONS|PUBLIC RELATIONS|PUBLICITY}}{{visible anchor|Advertising, marketing or public relations|text='''Advertising, marketing or public relations.'''}}</syntaxhighlight> One of the features of {{tlx|Visible anchor}} over {{tlx|anchor}} is that one of the anchors (the first one) is ''visible''; but when you use the {{para|text}} parameter, that benefit is defeated. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 17:17, 22 March 2022 (UTC)
:::: {{nd}} Insufficient consensus to implement. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 19:49, 22 March 2022 (UTC)

Revision as of 19:49, 22 March 2022

Allow more anchors

Here is an example where there were not enough anchors available; that page has up to 14 anchors in one (the current limit is 10). I've increased the limit to 20 on the sandbox, which should hopefully be enough for the forseeable future, although maybe the limit could be eliminated with Template:For loop? ―Jochem van Hees (talk) 13:00, 22 March 2022 (UTC)[reply]

@Jochem van Hees: You don't need to go that far. 14 visible anchors is about 12 too many in any case. --Redrose64 🌹 (talk) 16:23, 22 March 2022 (UTC)[reply]
Why? Those anchors are already there, and probably all have incoming links. Why should they be removed? ―Jochem van Hees (talk) 16:27, 22 March 2022 (UTC)[reply]
I see no reason that you can't use {{anchor}} (which has unlimited parameters) to supply the extra ones. So for the case with 14 anchors (do you really need that many), instead of
# {{visible anchor|soap5|Soap5|SOAP5|ADVERTISING|MARKETING|PR|ADVERT|COMMERCIAL|PROMOCORP|GARAGE|PUBLICRELATIONS|PUBLIC RELATIONS|PUBLICITY|Advertising, marketing or public relations|text='''Advertising, marketing or public relations.'''}}
you could use
# {{anchor|soap5|Soap5|SOAP5|ADVERTISING|MARKETING|PR|ADVERT|COMMERCIAL|PROMOCORP|GARAGE|PUBLICRELATIONS|PUBLIC RELATIONS|PUBLICITY}}{{visible anchor|Advertising, marketing or public relations|text='''Advertising, marketing or public relations.'''}}
One of the features of {{Visible anchor}} over {{anchor}} is that one of the anchors (the first one) is visible; but when you use the |text= parameter, that benefit is defeated. --Redrose64 🌹 (talk) 17:17, 22 March 2022 (UTC)[reply]
 Not done Insufficient consensus to implement. * Pppery * it has begun... 19:49, 22 March 2022 (UTC)[reply]