Template talk:alternate pages

Latest comment: 1 year ago by Equinox in topic Duplicate "did you mean..." prompt

Note, this is called from:

  1. Wiktionary:Project-Noarticletext with parameter 1 = "did-you-mean"
  2. Wiktionary:Project-Newarticletext with parameter 1 = "go-to-search-page"

The did-you-mean span name will trigger a javascript redirect from Monobook.js. Doing it from "No" is ok, but from "New" would cause a possible looping situation, so it will have to go to the Special:Search/pagename page instead.

--Connel MacKenzie T C 05:01, 13 May 2006 (UTC)Reply

Erm, actually, "Newarticletext" doesn't redirect because we need to be able to enter uppercase entries (sometimes) when a lowercase entry exists already. --Connel MacKenzie T C 07:30, 13 May 2006 (UTC)Reply

Sorry, I never got around to refactoring it. If someone wishes to "Be Bold" please do so. --Connel MacKenzie T C 07:31, 13 May 2006 (UTC)Reply

MediaWiki bug edit

When including ...'''<span id="did-you-mean">'''... the tag did-you-mean makes it to the rendered HTML, but when including ...'''<span id="{{{1}}}">'''... only <span> is output in the HTML. Apparently, '=' and '"' are partially-prohibited characters within template operations. In the second case, the {{{1}}} is _assigned_ to the template variable 'id'.

As this syntax is "wrong" in someone's view either way, it is likely to change at some point in the future, when the parser is "corrected" one way or the other. I'll assume a method of "escaping" special characters will exist by the time such a correction is implemented.

For now, I'll look into less-risky ways of passing this parameter.

--Connel MacKenzie T C 22:40, 14 May 2006 (UTC)Reply

Note: by passing in the parameter span=<span class="did-you-mean"> all seems to work correctly now. --Connel MacKenzie T C 02:19, 15 May 2006 (UTC)Reply

Duplicate "did you mean..." prompt edit

Before I created 3R today, I saw the double prompt "Did you mean 3r? Did you mean 3r?" Equinox 14:10, 10 April 2023 (UTC)Reply

Return to "alternate pages" page.