Help talk:Conditional tables: Difference between revisions

Content deleted Content added
Looking up a cell within a table: closing helpme (helped, but will require extended discussion)
Conditional columns: Mentioned in the intro, then not again afterward.
 
(12 intermediate revisions by 6 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 454 ⟶ 456:
If I wanted to look up if cell A1 contained 'p', could I do it?--<span style="background:#FF0;font-family:Rockwell Extra Bold">[[User:Launchballer|<u style="color:#00F">Laun</u>]][[User talk:Launchballer|<u style="color:#00F">chba</u>]][[Special:Contribs/Launchballer|<u style="color:#00F">ller</u>]]</span> 16:40, 15 March 2018 (UTC)
:{{u|Launchballer}}, what are you planning on doing if a cell contained "p"? Because if you were just curious ''if'' it contained a "p", then you would use an <code>#ifeq:</code> call. [[User:Primefac|Primefac]] ([[User talk:Primefac|talk]]) 22:06, 15 March 2018 (UTC)
::{{u|Primefac}} Do you know anything about [[Countdown (game show)|Countdown]]? I want to count back 64 episodes from the most recently broadcast episode. It's for the seed table at [http://wiki.apterous.org/Series_78], I want to subtract the most recently broadcast episode from the first quarter final. With less than 64 episodes to be broadcast, the person at the top of the leaderboard is guaranteed a spot there.--<span style="background:#FF0;font-family:Rockwell Extra Bold">[[User:Launchballer|<u style="color:#00F">Laun</u>]][[User talk:Launchballer|<u style="color:#00F">chba</u>]][[Special:Contribs/Launchballer|<u style="color:#00F">ller</u>]]</span> 22:16, 15 March 2018 (UTC)
:::Could you give an example, like, what you want it to look like before and after the "65th" entry is added? Doesn't have to be a full table, just gives me some sort of indication what you're specifically looking for. [[User:Primefac|Primefac]] ([[User talk:Primefac|talk]]) 22:20, 15 March 2018 (UTC)
::::Now I think about it, I don't think you need to read values from elsewhere in a table. I'm muddling up parameters and rows.
{| class="wikitable" name="table"
| p
| <nowiki>{{#if:{{#expr:<first quarterfinal/> - <most recently broadcast episode/>}} < 64|'''seed 1'''|seed 1}}</nowiki>
|}
::::I think I can do that on my own.--<span style="background:#FF0;font-family:Rockwell Extra Bold">[[User:Launchballer|<u style="color:#00F">Laun</u>]][[User talk:Launchballer|<u style="color:#00F">chba</u>]][[Special:Contribs/Launchballer|<u style="color:#00F">ller</u>]]</span> 22:34, 15 March 2018 (UTC)
::::{{u|Primefac}} Ah! How do you go about finding the first cell to contain exactly " - "?--<span style="background:#FF0;font-family:Rockwell Extra Bold">[[User:Launchballer|<u style="color:#00F">Laun</u>]][[User talk:Launchballer|<u style="color:#00F">chba</u>]][[Special:Contribs/Launchballer|<u style="color:#00F">ller</u>]]</span> 22:38, 15 March 2018 (UTC)
:::::An <code>#ifeq:<param>|-|</code> call. [[User:Primefac|Primefac]] ([[User talk:Primefac|talk]]) 22:55, 15 March 2018 (UTC)
 
== Conditional number of lines/raw? ==
 
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)