Template talk:xt
Template:Xt is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
|
|
Similarity to TQ font
[edit]Given the similarity between the font colour used for example text in {{xt}} (like this) and that used for quoted talk page text in {{tq}} (like this), there is an RfC at Template talk:Tq#RfC: Change the TQ template font colour to distinguish them. Please have your say there. —sroc 💬 15:25, 15 April 2014 (UTC)
Formatting deprecated parameters
[edit]There is a discussion at Template talk:Convert#Formatting of deprecated examples regarding the use of {{!xt}} (compare {{deprecated code}}) to indicate deprecated template parameters and {{xt}} to indicate correct parameters. —sroc 💬 01:33, 8 December 2014 (UTC)
Improved documentation needed and lint fixing too
[edit]This (and probably related templates) need improved documentation. Talk:Tom Graves uses markup
{{xt|{{fake heading|sub=3|Tenure}}
which is generating a div-span-flip lint error, and there's no documentation on a "sub" parameter. —Anomalocaris (talk) 00:33, 18 January 2020 (UTC)
red–green color-blindness
[edit]in general, i think it's generally understood that the use of green and red as a visual dichotomy for 'correct' and 'incorrect' (etc.) is outmoded. maybe the templates should adopt blue—red instead? Remsense (talk) 18:45, 22 August 2023 (UTC)
- Like Democrats and Republicans? EEng 18:55, 22 August 2023 (UTC)
- if this isn't a joke (and if it is, fine by me!), yeah! i dunno. if the association of red with 'incorrect' is too arbitrary/fraught locally (while we're redesigning the basics) maybe blue—yellow? i'm thinking of accessible color schemes i've seen proposed in dataviz circles. Remsense (talk) 19:02, 22 August 2023 (UTC)
Incorrect error message on substitution
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The Template is supposed to error when used in mainspace with "Template:Xt is only for examples of style and formatting. Do not use it in actual articles". However, when the template is substituted, {{#invoke:TEMPLATENAME|main}} is added to the target so the error message ends up including the article's name instead of the template's. This can be fixed by substituting the module's output, like I've done in the sandbox. If no one objects, I'll turn this into an edit request. Nickps (talk) 16:05, 30 June 2024 (UTC)
- Done Sohom (talk) 16:27, 2 July 2024 (UTC)
Template-protected edit request on 12 September 2024
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please change the color definition so that it uses a dark-mode-compatible variable, such as --color-content-added
. This template's contrast ratio currently fails all contrast guidelines, while the proposed version (see Template:Xt/sandbox) passes everything with flying colors.
Diff:
Line 1: | Line 1: |
{{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{FormattingError|[[:{{safesubst:<noinclude/>#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.}}|<span class="example" style="font-family: Georgia, 'DejaVu Serif', serif; color: #006400;" {{#if:{{{title|}}}|title="{{{title}}}"}}>{{{1|Example text}}}</span>}}<noinclude> | {{#ifeq:{{NAMESPACE}}|{{ns:0}}|{{FormattingError|[[:{{safesubst:<noinclude/>#invoke:TEMPLATENAME|main}}]] is only for examples of style and formatting. Do not use it in actual articles.}}|<span class="example" style="font-family: Georgia, 'DejaVu Serif', serif; color: #006400;" {{#if:{{{title|}}}|title="{{{title}}}"}}>{{{1|Example text}}}</span>}}<noinclude> |
{{Documentation}} | {{Documentation}} |
</noinclude> | </noinclude> |
– Hilst (talk | contribs) 21:32, 12 September 2024 (UTC)
- Done --Ahecht (TALK
PAGE) 15:43, 13 September 2024 (UTC)