Help talk:Conditional tables: Difference between revisions

Content deleted Content added
Conditional columns: Mentioned in the intro, then not again afterward.
 
(5 intermediate revisions by 4 users not shown)
Line 1:
{{WikiProject banner shell|
{{Wikipedia Help Project|class=start|importance=Low}}
}}
 
== MUST use HTML ==
 
Line 322 ⟶ 323:
That shows this:
{{#if: {{{Date of Retirement|}}}|{{{
<table><th colspan="3" style="border:1px solid #a3bfb1; background:#cef2e0;"> Date of Set [[Retirement]] :</th>
<td style="border:1px solid #a3bfb1; background:#f5fffa;">{{{Date of Retirement}}}</td></table> | }}
 
Could anyone help me with this?
Line 341 ⟶ 342:
{{!}} style="border:1px solid #a3bfb1; background:#f5fffa;"{{!}}{{{Date of Retirement|Date}}}
{{!}}}| }}
<!-- Template:Unsigned --><span class="autosigned" style="font-size:85%;">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:CBDunkerson|CBDunkerson]] ([[User talk:CBDunkerson#top|talk]] • [[Special:Contributions/CBDunkerson|contribs]]) 6:52, 3 September 2006 (UTC)</span>
 
== Logical and/or question ==
Line 397 ⟶ 399:
::but now with or without the model {{m|!}}, it shows "<nowiki>style="background:#999999" |}} | {{{1}}}</nowiki>" in my cell. Do you have an idea how to fix it ? --[[User:Moutonjr|Moutonjr]] ([[User talk:Moutonjr|talk]]) 12:13, 30 April 2013 (UTC)
:::Which page is this on? I would like to examine it directly, but I don't see anything relevant in either [[Special:Contributions/Moutonjr]] or [[:fr:Spécial:Contributions/Moutonjr]]. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 12:57, 30 April 2013 (UTC)
:::: It is in a local Wikimedia, but my version seems outdated according to [[pl:Wikipedysta:Matma_Rex|MatmaRex]] on IRC, my version is outdated because it works for Wikipedia (1.22) but not in my 1.16. Sorry for the inconvenience... <!-- Template:Unsigned --><span class="autosigned" style="font-size:85%;">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Moutonjr|Moutonjr]] ([[User talk:Moutonjr#top|talk]] • [[Special:Contributions/Moutonjr|contribs]]) 13:23, 30 April 2013 (UTC)</span>
 
==the problem of hiding rows in tables with background color==
Line 469 ⟶ 471:
How to make a table with a conditional number of lines or raws?
 
For instance, if the variable number_of_lines is 3, it generates 3 lines? <!-- Template:Unsigned IP --><small class="autosigned">—&nbsp;Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/87.91.51.235|87.91.51.235]] ([[User talk:87.91.51.235#top|talk]]) 12:15, 17 November 2019 (UTC)</small> <!--Autosigned by SineBot-->
:You would need to use a template to do this; the default "table-creation" setup wouldn't work like that. [[User:Primefac|Primefac]] ([[User talk:Primefac|talk]]) 13:09, 17 November 2019 (UTC)
 
== Conditional columns ==
 
The intro sentence mentions conditional columns, but then they are never mentioned again. I have a table with conditional columns, but I don't know if there's any demand for this elsewhere. If there's interest, ping me and I'll look into seeing whether it's worth generalizing a one-off into something more usable, or just documenting what I have. [[User:Mathglot|Mathglot]] ([[User talk:Mathglot|talk]]) 11:26, 5 February 2025 (UTC)