Jump to content

Template talk:=

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Interwiki

[edit]

{{editprotected}}
Hello, could anybody put interwiki link to hsb hsb:Předłoha:Eq, please? Thanks and greetings --Tlustulimu 11:18, 13 June 2007 (UTC)

checkY Done - Nihiltres(t.l) 21:55, 23 August 2007 (UTC)[reply]

{{editprotected}} Please add

==See also==
* Template:(( — produces {{
* Template:)) — produces }}

Peak 21:04, 11 September 2007 (UTC)[reply]

Done. Cheers. --MZMcBride 03:43, 12 September 2007 (UTC)[reply]

Documenting {=} vs. {Equals}

[edit]
Resolved
 – Added to new /doc subpage

{{Editprotected}} Please add to documentation:


This template will NOT work for uses such as:

{{Colors|black|yellow|2 + 2 {{=}} 4}} → 2 + 2 = 4

For this, you will need {{Equals}}:

{{Colors|black|yellow|2 + 2 {{Equals}} 4}} → 2 + 2 = 4

Thanks. — Komusou talk @ 10:48, 22 September 2007 (UTC)[reply]

The documentation has been moved here. Cheers. --MZMcBride 01:21, 23 September 2007 (UTC)[reply]
Thanks. I should have thought of doing the /doc and request a {{Template doc}} instead, d'oh! Updated the doc... — Komusou talk @ 11:30, 23 September 2007 (UTC)[reply]

tlx

[edit]

This doesn't seem to work with {{tlx}}, but the code & # 6 1 ; without spaces works fine to make an "=" sign, so would it be a good idea to make this template use the code instead? --Arctic Gnome (talkcontribs) 16:54, 30 November 2007 (UTC)[reply]

Get it back to =

[edit]

The current version uses =, but we can get it back to = now. Is it because of recent parser changes?

The content of {{User:TAKASUGI_Shinji/=}} is as follows:

<onlyinclude>=</onlyinclude>

And compare the following results as of today:

  • {{concat|{{=}}}} → =
  • {{concat|{{User:TAKASUGI_Shinji/=}}}} → =
  • {{concat|<nowiki>=</nowiki>}} → =
  • {{tlx|{{=}}}}{{=}}
  • {{tlx|{{User:TAKASUGI_Shinji/=}}}}{{=}}
  • {{tlx|<nowiki>=</nowiki>}}{{[[Template:=|=]]}}
  • {{strlen|{{=}}}} → 5
  • {{strlen|{{User:TAKASUGI_Shinji/=}}}} → 1
  • {{strlen|<nowiki>=</nowiki>}} → 43
  • {{urlencode:{{=}}}} → %26%2361%3B
  • {{urlencode:{{User:TAKASUGI_Shinji/=}}}} → %3D
  • {{urlencode:<nowiki>=</nowiki>}} → %7FUNIQ2d11730c3f36c9f8-nowiki-0000005B-QINU%7F

Clearly, {{User:TAKASUGI_Shinji/=}} works better than {{=}}. <nowiki> is just weird. - TAKASUGI Shinji (talk) 01:03, 23 April 2008 (UTC)[reply]

Someone please change &#61; to = ? Is there any problem in doing so? - TAKASUGI Shinji (talk) 04:02, 3 June 2008 (UTC)[reply]
I'm planning to change this over very soon... after I run through the current usages of the template to clean out the ones that are not necessary, etc. --- RockMFR 20:10, 10 June 2008 (UTC)[reply]
Nevermind. I'm changing it now. Also will be redirecting {{equals}} and friends here, as they no longer have a purpose that I can see. --- RockMFR 21:05, 10 June 2008 (UTC)[reply]
Thanks. I'll delete {{User:TAKASUGI_Shinji/=}} soon. - TAKASUGI Shinji (talk) 01:40, 11 June 2008 (UTC)[reply]


Incompatible

[edit]

This template is incompatible with the {{annotated link}} template. For example, Diimide had its short description defined like this: {{Short description|Chemical compound: H–N{{=}}N–H}}. The Hydrazine article invoked {{annotated link|Diimide}}, but that rendered as "Diimide – Chemical compound: H–N{{" instead of "Diimide – Chemical compound: H–N=N–H".

Changing the short description to {{Short description|Chemical compound: H–N=N–H}} fixes the problem.

Is the {{=}} template incompatbile with only {{annotated link}}, or is it incompatible with other templates, as well? -- Mikeblas (talk) 23:33, 20 October 2021 (UTC)[reply]

It's a weakness in {{Template parameter value}}, which parses the wiki-source rather than what it looks like after rendering. Best I can decipher, that template sees the }} that closes {{=}} as the closing of {{Short description. Therefore, the "=" is not interpretted as a template-call because it has no closing }}, and nothing after that }} is seen as part of the {{Short description}} template-call at all. Instead of trying to find the correct closing, which would mean having to parse and find matching nested opening/closing, it merely finds the first closeing. DMacks (talk) 01:11, 21 October 2021 (UTC)[reply]

Sandbox version for after T91154

[edit]

I have put a version in the sandbox (Special:Permalink/1090005035) for after phab:T91154, which has been merged but not released yet. It assumes that the = magic word will behave basically the same as the ! magic word and so need the same error message at Template:= as Template:!, which seems to be the case after reading the patch. The only other changes needed should be slight re-phrasing of the documentation.

The error message on ordinary transclusion will be Error: The retired template {{=}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code {{=}} to generate the = character., and it adds the page to Category:Pages which use a template in place of a magic word. User:GKFXtalk 20:36, 26 May 2022 (UTC)[reply]

 Done User:GKFXtalk 13:07, 31 July 2022 (UTC)[reply]

Protected edit request on 1 July 2022

[edit]

Please implement the changes to Template:=/sandbox in the main template. The template is now officially a magic word. GeoffreyT2000 (talk) 01:36, 1 July 2022 (UTC)[reply]

 Not done for now: We don't need an error while the template still has transclusions. — JJMC89(T·C) 03:20, 1 July 2022 (UTC)[reply]
There is no real transclusions at the moment. Only a backlog. It is only possible to transclude the template using one of the three redirects to this page. Using {{=}} will not transclude the template but use the magic word. Christian75 (talk) 08:57, 1 July 2022 (UTC)[reply]
 Done I have copied the sandbox across now as the transclusions are at zero and the page is not protected. User:GKFXtalk 13:07, 31 July 2022 (UTC)[reply]

"Template:Equal" listed at Redirects for discussion

[edit]

An editor has identified a potential problem with the redirect Template:Equal and has thus listed it for discussion. This discussion will occur at Wikipedia:Redirects for discussion/Log/2022 July 12#Template:Equal until a consensus is reached, and readers of this page are welcome to contribute to the discussion. signed, Rosguill talk 18:42, 12 July 2022 (UTC)[reply]

"Template:Equals" listed at Redirects for discussion

[edit]

An editor has identified a potential problem with the redirect Template:Equals and has thus listed it for discussion. This discussion will occur at Wikipedia:Redirects for discussion/Log/2022 July 12#Template:Equals until a consensus is reached, and readers of this page are welcome to contribute to the discussion. signed, Rosguill talk 18:42, 12 July 2022 (UTC)[reply]

About additional syntax

[edit]

The article mentions that you shouldn't use some additional syntax because it yields Error: The retired template {{=}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code {{=}} to generate the = character. . However, one may think that it includes trying to substitute it, but {{subst:=}} yields =. Similarly, spaces seem to work fine: =. I think this should be mentioned, but I'm not sure. Orisphera2 (talk) 16:56, 12 May 2024 (UTC)[reply]

To clarify: {{subst:=}} probably wouldn't work in the intended use case. Orisphera2 (talk) 16:58, 12 May 2024 (UTC)[reply]
Also, I've noticed some redundancy that probably should be eliminated (I'm not sure). To do so, one probably can transclude the template, like here. However, I'm not sure if the engine allows it, and it may result in some confusion. These issues can be fixed by extracting the body into a separate template. Eliminating the redundancy would allow one to edit the text in one place and not have to update the documentation. It would also prevent mistakes resulting from accidental differences in the edits. Orisphera2 (talk) 17:10, 12 May 2024 (UTC)[reply]

Also, it seems like other such articles don't mention it (although I probably haven't checked them all). Maybe they should. Orisphera2 (talk) 16:56, 12 May 2024 (UTC)[reply]

For example, {{Template:=}} yields Error: The retired template {{=}} has been transcluded; see mw:Help:Magic words#Other for details. To fix this, use only the code {{=}} to generate the = character.

, and {{Template:urlencode|https://www.example.com/entities/2763}} yields Whatever you did went wrong: you transcluded Template:Urlencode instead of the magic word {{URLENCODE}}. (for the latter, the other point is, instead, for no argument: {{urlencode}} yields Whatever you did went wrong: you transcluded Template:Urlencode instead of the magic word {{URLENCODE}}.. Orisphera2 (talk) 17:23, 12 May 2024 (UTC)h[reply]

Also, I didn't put that h in there. Why is it there? Orisphera2 (talk) 17:28, 12 May 2024 (UTC)[reply]

Do not use the magic word in URLs

[edit]

Why not? Consider the following:

Wikicode Generates Doc says Link works?
{{bracket|[https://books.google.ie/books?id{{=}}8DVbAAAAQAAJ Link6]}} [Link6] Do not use the magic word in URLs... Good link
{{bracket|[https://books.google.ie/books?id%3D8DVbAAAAQAAJ Link7]}} [Link7] ...rather use percent-encoding... Bad link
{{bracket|[https://books.google.ie/books?id=8DVbAAAAQAAJ Link2]}} [ ...or no encoding No link

Am I misinterpreting the advice? jnestorius(talk) 13:40, 2 September 2024 (UTC)[reply]

User:GreenC wrote this bit in Special:Diff/1106921294, so I guess he would know the answer to this. —⁠andrybak (talk) 23:04, 2 September 2024 (UTC)[reply]

Reply:

  • Because URLs are encoded per IETF RFC 3986 which stipulates to use one encoding scheme: percent-encoding. It's as old as the web itself. When there are 2, 3 or 4 different encoding schemes mixed together in a single URL, it is literally impossible for software to decode it, because of ambiguity. How does a program know that "{" is a literal part of the URL, or part of a wikitext encoded template? Is it even looking for wiki text templates, or even know about wikitext templates? And yes, software other than MediaWiki uses URLs from Wikipedia. Violating a IETF RfC is worse than violating a Wikipedia RfC.
  • That MediaWiki software supports it in violation of the IETF RfC has caused a lot of problems on and off wiki. As one would expect, and why the RfC exists to prevent those problems.
  • https://books.google.ie/books?id%3D8DVbAAAAQAAJ won't work because with "?id=" the ? and = are reserved characters that should not be encoded, only if they are used for a non-reserved purpose would they be encoded. Thus using "%3D" Google won't see it as a reserved character with special meaning, rather a literal character, the URL won't work because there is no id.
  • As for why the no encoding doesn't work with bracket, use this instead:
Wikicode Generates Doc says Link works?
{{bracket|1=[https://books.google.ie/books?id=8DVbAAAAQAAJ Link2]}} [Link2] No encoding Works

Thanks. -- GreenC 23:58, 2 September 2024 (UTC)[reply]