Template talk:Ln

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Contents

[edit] Comparison

See the Lcs, Lps, Lts, and Tlx talk pages for a comparison of the output of some similar templates. -- Omniplex 19:59, 28 March 2006 (UTC)

[edit] Monospaced

New trick, using monospaced <tt>(</tt> etc. results in better readable output for "(", "|", ")" adjacent to links. -- Omniplex 18:22, 28 March 2006 (UTC)

No &middot; magic in {{Lx}} please, it's converted to UTF-8 by the server not working on old browsers, see Doctl. And the example here should reflect what Lx actually does. -- Omniplex 18:44, 5 April 2006 (UTC)

[edit] Fields

At the moment {{lx}} offers edit, talk, links, history, and watch. I never needed watch, maybe because I've "add to watchlist" in my preferences. Do you use this link in practice? Otherwise I'd like to replace watch by log, something like this:
[{{fullurl:Special:Log|page={{FULLPAGENAMEE}}}} log]
Here's a test log link for Template:! (edit|talk|history|links|watch|logs), what do you think? -- Omniplex 15:36, 13 April 2006 (UTC)

I use watch from time to time, but also want log (the reason I just came here), so I'm trying to add it now.
--William Allen Simpson 21:22, 25 April 2006 (UTC)

Great, AzaToth replaced "watch" by "logs", much more interesting. -- Omniplex 06:23, 26 June 2006 (UTC)

[edit] fullurl

Locke saw a problem with it, fullurl doesn't work with e.g. spaces in the query string, in the log-case page=what ever fails. -- Omniplex 02:36, 26 April 2006 (UTC)

Heck, I saw a problem with it, and tried various remedies.
--William Allen Simpson 11:02, 27 April 2006 (UTC)
Aye, this is also a problem with {{sockpuppet}} I believe (and {{vandal}}). Both of those, IIRC, take a second parameter (the underscored name); one is used for purely cosmetic purposes, the other used to make the log link. So, for example:
{{vandal|Locke Cole|Locke_Cole}}
Which generates:
Locke Cole (talk · contribs · deleted contribs · nuke contribs · logs · edit filter log · block user · block log)
If you omit the optional second parameter, however, you end up with this:
Locke Cole (talk · contribs · deleted contribs · nuke contribs · logs · edit filter log · block user · block log)
William made a post to Wikitech-l asking about this (to which I've replied), see here. We could kludge up {{lx}} as was done with the vandal and sockpuppet templates, but I believe we should push for magic words to URL encode/decode strings. It would be cleaner/simpler in the long run. —Locke Coletc 03:05, 26 April 2006 (UTC)
Follow-up, I've entered a bug at bugzilla:5720. I'm starting to think it might be better if this were "fixed" by URL encoding the each parameter rather than introducing more magic words. —Locke Coletc 03:25, 26 April 2006 (UTC)

{{localurl: almost does what's needed, six characters "/wiki/" too much (and yes, I tested all simple tricks with dots to get rid of it, but that failed as it should - potential security hole). Query strings in URLs are almost free form, anything goes, "=" and "&" are implementaton details, no standard. But "#", space, control, ">", and a few others can be never part of a query string, that's RFC 3986 / STD 66. If fullurl "sees" a space it cannot accept it. -- Omniplex 22:51, 26 April 2006 (UTC)

I haven't tested localurl, but it should operate the same as fullurl. The entire content of the fullurl is the query part, and it handles spaces appropriately to the left of the first pipe, and then continues processing until the closing braces, but doesn't translate the spaces to underscores. This is a a bug, and further discussion on fixing it should continue at bugzilla:5720, with more detailed descriptive discussion on the mailing list.
--William Allen Simpson 10:57, 27 April 2006 (UTC)
Just a note, there is now a {{urlencode:}} magic word. {{urlencode:blah blah + % blah}} produces: blah+blah+%2B+%25+blah (and for direct page links, wikicode treats + the same as _. --> edit this page ) --Splarka (rant) 09:13, 17 June 2006 (UTC)

[edit] Limit

Is there a reason the limit is set to 999, can it be set higher? - LA @ 20:09, 13 August 2006 (UTC)

[edit] Justifying my edit

I say a what links here was between the talk and the history page. This was very disorienting compared to the standard format so I moved it and it looks like I got the code right. Now links is after history. I don't know how touchy people are with this template since it is on all the Afds now (and I think this is a very useful thing), but I think my change improved it. Anomo 02:19, 8 November 2006 (UTC)

[edit] Any opposition to my/someone adding a "Delete" link to this or the "la" template?

Now that it is being used in AfDs it would help closing admins as they could delete clear consensus articles directly from the page. Thoughts?  Glen  11:35, 8 November 2006 (UTC)

It would be fine, but it should be the very last link (rightmost) since most people are not admins and it would get in the way if it was before links that non admins could use. Anomo 22:11, 8 November 2006 (UTC)
There shouldn't be a delete button on it. Even if the discussion is unanimous, the minimum thing the admin should check is if the AfD tag is up on the article. But I propose switching edit and discuss buttons so that they match the order of the tags on top of each page. ~ trialsanderrors 00:11, 22 November 2006 (UTC)
Although {{Newdelrev}} now uses a separate parenthesis for Special:Undelete. I wonder if we can integrate this here with an #ifexist statement. ~ trialsanderrors 07:38, 17 December 2006 (UTC)

[edit] class=lx

I added "class=lx" to Template:lx for use in scripts. I realize this isn't currently defined in the stylesheet, but it allows a lot of script functionality. Any objections? Quarl (talk) 2007-01-01 22:09Z

No objection, thought you only had made a tyop, thou I wonder what scripts would need/use it. AzaToth 22:48, 1 January 2007 (UTC)
Thanks. (One script that uses it is xfdclose.js which adds a bunch of buttons for closing AFDs.) Quarl (talk) 2007-01-01 23:00Z

[edit] Template:Search

Since most AfDs are about whether there is enough WP:RS material, I think we should add the search template (wp gwp g | eb 1911 co gct sw) as part of Template:Ln or revise Template:Ln to include search strings. I added the search template to Michael Bilsborough AfD to give an example of what a revised Template:Ln may look like. We also could revise the search string to look in more or different places. -- Jreferee (Talk) 16:00, 12 July 2007 (UTC)

The Ln-templates are used much more than just for afd:s, so it would be a not so good idea. Perhaps better then to adapt {{afd2}} with {{search}}AzaToth 16:10, 12 July 2007 (UTC)
Thanks. I'll post my idea over at afd2. Jreferee (Talk) 19:54, 12 July 2007 (UTC)

[edit] Edit protection request

{{editprotected}} Please update {{/doc}} with {{documentation}}. Per Wikipedia:Template documentation/List Thankyou.-- αŁʰƏЩ @ 05:51, 28 April 2008 (UTC)

I don't see a /doc to replace, here. :) – Luna Santin (talk) 08:39, 28 April 2008 (UTC)
This template wasn't actually protected :D! But I've moved the documentation above to a /doc subpage and used {{documentation}}. Happymelon 10:24, 28 April 2008 (UTC)
YesY Done. Matthewedwards didn't notice that the talk page was redirected, he meant {{Lx}}. --David Göthberg (talk) 20:15, 28 April 2008 (UTC)

{{editprotected}}

Please add <noinclude>{{template doc}}</noinclude> to {{La}}. Thanks. Smith609 Talk 13:39, 2 June 2008 (UTC)

Yes check.svg Done Happymelon 14:37, 2 June 2008 (UTC)

[edit] redirect=no

Could this function be added as a switch or default behaviour (for article and talk page)? __meco (talk) 14:04, 7 November 2008 (UTC)

[edit] Documentation transclusion?

Not exactly sure how it works, but when I go to Template:la, there is no documentation. I think it's trying to transclude from Template:La/doc, but there's nothing in that. It would be nice if there was some documentation on Template:la on how to use {{la}}, like there are here on Template:ln.

If you're wondering why I'm posting this here and not on Template talk:la, it's because that redirects here. -kotra (talk) 03:29, 28 December 2008 (UTC)

[edit] Edit to Template:Lf

{{editprotected}}

I figured that since the Image: namespace is now File:, this edit to Template:Lf should be done.

On Template:Lf, change:

  • {{lx|1=:Image:|2={{ucfirst:{{{1}}}}}|3=Image talk|4=talk}}<noinclude>[[Category:Internal link templates|Li]]</noinclude>
  • to
  • {{lx|1=:File:|2={{ucfirst:{{{1}}}}}|3=File talk|4=talk}}<noinclude>[[Category:Internal link templates|Lf]]</noinclude>

--Lightsup55 ( T | C ) 19:51, 21 January 2009 (UTC)

This template is not protected. Hersfold (t/a/c) 05:21, 23 January 2009 (UTC)
Template:Ln is NOT protected (as you stated), however, Template:Lf IS protected. I have made the request using {{editprotected}} here with specific instructions to edit Template:Lf because Template talk:Lf redirects to Template talk:Ln.

I even made a change to Template:Editprotected so that when an edit protected request is not directly used on the talk page where the edit is being requested due to the talk page being redirected (i.e. an edit request to Template:Uw-vandalism1 should be done on Template talk:Uw-vandalism1, however, that talk page redirects to Wikipedia talk:Template messages/User talk namespace). --Lightsup55 ( T | C ) 06:56, 23 January 2009 (UTC)
Yes check.svg Done The edit to {{lf}} has been made.--Aervanath (talk) 17:49, 23 January 2009 (UTC)

[edit] Simplification

Now that the magic word NAMESPACE takes a parameter, a lot of these templates could probably be simplified, no? — Martin (MSGJ · talk) 08:33, 9 March 2009 (UTC)

[edit] Error for article titles containing =

Although I realize this arises quite rarely, the current template doesn't appear to work for articles containing a "=" sign, such as P = NP problem. Dcoetzee 09:28, 12 April 2009 (UTC)

Works if used like this: {{la|1=P = NP problem}}: P = NP problem (edit|talk|history|links|watch|logs). GregorB (talk) 14:47, 20 April 2009 (UTC)
Or like this: {{la|P {{eq}} NP problem}}: P = NP problem (edit|talk|history|links|watch|logs). GregorB (talk) 14:49, 20 April 2009 (UTC)

[edit] FYI, stats

FYI, {{stats.grok.se}} has recently been fixed, and it should now be able to provide usage statistics from stats.grok.se for any Wikipedia article. This may be a useful tool to include in future link lists such as {{ln}}. --Zach425 talk/contribs 05:08, 11 September 2009 (UTC)

[edit] Invalid HTML id

{{editprotected}} <span id="{{{1}}}"></span> in {{la}} produces invalid HTML if there any character other than [0-9A-Za-z:.], it should be <span id="{{anchorencode:{{{1}}}}}"></span>. — Dispenser 18:24, 6 February 2010 (UTC)

YesY Done — Martin (MSGJ · talk) 18:24, 7 February 2010 (UTC)

[edit] condensed version

{{editprotected}} How about a parameter to make all the link titles condensed like this: (e|t|h|l|w|o)?

I think it is better to do that in a separate template, and even then, i'm not sure it is a good idea. It might make it considerably harder to read for people who are not native English readers. —TheDJ (talkcontribs) 10:27, 22 April 2010 (UTC)
Could use icons then instead but, considering this is the English language Wikipedia, I don't see that much of a big deal abbreviating English words... —Eekerz (t) 03:06, 23 April 2010 (UTC)

[edit] Confusion in talk field

At WP:Help Desk at the moment, there is an entry {{la|User:Sbarie/LogicMonitor}} , but it is being displayed as:

User:Sbarie/LogicMonitor (edit|[[Talk:User:Sbarie/LogicMonitor|talk]]|history|links|watch|logs)

User:Sbarie/LogicMonitor (edit|[[Talk:User:Sbarie/LogicMonitor|talk]]|history|links|watch|logs)

In other words, although the other links are apparently working correctly, the talk page is not being properly linked. Presumably this is because it should be [[User talk:Sbarie/LogicMonitor|talk]] (to give talk) instead of [[Talk:User:Sbarie/LogicMonitor|talk]]? - David Biddulph (talk) 17:43, 23 March 2011 (UTC)

Looking at the documentation, should they have used lu instead of la ? {{lu|Sbarie/LogicMonitor}} gives User:Sbarie/LogicMonitor (edit|talk|history|links|watch|logs) ? - David Biddulph (talk) 17:56, 23 March 2011 (UTC)

[edit] Edit request from LikeLakers2, 18 October 2011 (This is for Template:Lx, not Template:Ln!)

Add this code at the beginning on Template:Lx (not Template:Ln!) for the anchoring on WP:RFPP:

Code now on Template:Lx/sandbox

That would just make it much easier to get to a section on RFPP from a edit summary link. Feel free to shorten it, as the multiline switch usage is just what I generally use, as it looks much cleaner. LikeLakers2 (talk | Sign my guestbook!) 18:52, 18 October 2011 (UTC)

Readded after I removed this request because I realised that the problem I was having was that it was not adding the span tags for the anchor at all, due to the ifeq code I added for this to work only on WP:RFPP. The code intentionally works only on WP:RFPP, as it is the only place where you would see the l* family of templates used a lot. LikeLakers2 (talk | Sign my guestbook!) 19:10, 18 October 2011 (UTC)

Note to admins: I have indeed tested this with the ====L4 Heading==== format used on RFPP, and it indeed does work, as shown here. However, make sure the end line of my code and the start of the span tag used for the plainlinks does NOT have even a single line break between them, as it will bork the code and cause the header to not work properly, as shown here.
The template has over 200,000 transclusions, (the majority of which are from Template:la) so if you are not sure about this, but are still willing to add it, please make sure you test the scenario before adding it, so as to try to avoid breaking any of the 200,000 transclusions. LikeLakers2 (talk | Sign my guestbook!) 19:23, 18 October 2011 (UTC)
Please make your proposed changes to Template:Lx/sandbox, as I am still trying to work out what you are trying to do here. Thanks — Martin (MSGJ · talk) 19:46, 18 October 2011 (UTC)
Done. I've made a test one for you. I had to use the .7B .7C and .7D characters in the link for it to work, because otherwise it would have transcluded the template. Try it now. LikeLakers2 (talk | Sign my guestbook!) 20:30, 18 October 2011 (UTC)
<LikeLakers2-1> Fluffernutter: How much you wanna bet that the template edit to Template:Lx will cause some downtime?
Just thought I'd share that. LikeLakers2 (talk | Sign my guestbook!) 20:37, 18 October 2011 (UTC)
Also, if you need me to make a few more tests for you, let me know. LikeLakers2 (talk | Sign my guestbook!) 20:38, 18 October 2011 (UTC)
I keep forgetting about the ifeq parser. D: LikeLakers2 (talk | Sign my guestbook!) 20:44, 18 October 2011 (UTC)
Okay I have looked at your code and scratched my head a bit, and have these comments:
  • I understand that this change is for the benefit of WP:RFPP. In general I do not think it is a good idea to change a meta-template just for the benefit of one page. It may be that this behaviour is undesirable on other uses; or we may be adding a lot of complicated code which will not be of benefit to most uses.
  • You seem to have thought up and ingenious solution to make anchors work on WP:RFPP (and well done), but I suspect there is a much easier and simpler way to do this, for example by changing WP:RFPP rather than this template.
As there are some things to think about and discuss here I have disabled the request for now. — Martin (MSGJ · talk) 16:37, 19 October 2011 (UTC)

Posted my suggestion at Wikipedia talk:Requests for page protection#Section links in edit summaries. — Martin (MSGJ · talk) 16:46, 19 October 2011 (UTC)

Personal tools
Namespaces

Variants
Actions
Navigation
Interaction
Toolbox