Help talk:Conditional tables: Difference between revisions

Content deleted Content added
Dthomsen8 (talk | contribs)
m <s>...<s> → <s>...</s>; <tt> ... </tt> → <samp> ... </samp>; fixed Tidy bug affecting font tags wrapping links
Line 26:
:At least that was an exception that I thought worked. =) Regarding boolean templates, I have very little experience with those. If you think you can write up a basic beginners guide, be my guest. =) If not, I'll try and add that as I learn about them. —[[User:Locke Cole|Locke Cole]] • [[User talk:Locke Cole|t]] • [[Special:Contributions/Locke Cole|c]] 16:14, 17 March 2006 (UTC)
 
:: I tried to understand {{Lts|boolexists}} because I don't like {{Tl|Qif}} and want a simpler <ttsamp><nowiki>{{ifdef|test|do}}</nowiki></ttsamp>, but so far that failed. Some test results on [[Template talk:Boolexists]], note that these tests have nothing to do with the purpose of this template, i.e. test if a page exists. [[User:Omniplex|Omniplex]] 14:08, 19 March 2006 (UTC)
 
*: The point ''MUST use HTML'' turned out to be wrong, see below and {{Lts|!}}, it's more like ''MAY use XHTML''. [[User:Omniplex|Omniplex]] 11:20, 21 March 2006 (UTC)
Line 32:
== New attempt ==
 
:''Note: most of the templates referred to in this discussion have since been repurposed for other tasks.'' <font color="forestgreen">[[User:Happy-melon|'''Happy''']]</font>‑<fontb colorstyle="darkorangecolor: forestgreen;[[Media:Example.ogg]]">Happy</b>]]‑[[User talk:Happy-melon|'''<b style="color: darkorange;">melon''']]</fontb>]] 13:17, 26 September 2008 (UTC)
 
Mixing XHTML with Wiki table syntax is a layer violation, and some uses in {{Lcs|Wikipedia header templates}} for the shortcut are incorrect, <s>missing &lt;tr&gt; and similar issues, in other words FUBAR</s>.
But it should be possible to get it to work somehow with Wiki syntax.
 
Line 79:
:::::As straight forward as possible. [[User:Omniplex|Omniplex]] 22:31, 20 March 2006 (UTC)
 
::::You said ''AzaToth prefers (and I somewhat agree) using straight (X)HTML for table syntax (in other words, no wiki-markup at all).'' While I disagree strongly in the case of layer violations (either use Wiki or XHTML table syntax, but don't mix them) XHTML syntax and exclamation mark are no issues wrt {{Tl|Qif}}, only the vertical bar has to be escaped from the [[m:Help:Parameter default|parameter default]] mechanism. Normally <ttsamp>&amp;#124;</ttsamp> is good enough, but within a table it needs a template. I've created {{Lts|!}} for this purpose. [[User:Omniplex|Omniplex]] 22:20, 20 March 2006 (UTC)
 
== [[Template:Ifdef|Ifdef]] ==
Line 130:
it's so fragile. --&#160;[[User:Omniplex|Omniplex]] 16:17, 27 March 2006 (UTC)
 
Answered by [[User:Paddu|Paddu]] in [[Template talk:Ifdef|Ifdef]], executive summary: Use {{Tlx|ifdef|test|2&#61;then}} if '''then''' contains any "<ttsamp>=</ttsamp>". Minimalism has its drawbacks. --&#160;[[User:Omniplex|Omniplex]] 22:15, 17 April 2006 (UTC)
 
=== TfD nomination of Template:Ifdef ===
Line 238:
I've updated the instructions to use <code>#if</code> instead of {{tl|qif}}. The only loose-end that remains is updating {{tl|Infobox}} (which is still referenced in these docs) and deciding upon a new name for this page. Originally I planned on moving this to [[Wikipedia:If conditionals]], but maybe [[Wikipedia:ParserFunctions conditionals]] would be more appropriate (and would allow for later expansion to include examples using <code>#ifeq</code>, <code>#ifexpr</code> and so forth)? Or perhaps a more generic name, like [[Wikipedia:Template conditionals]]? Comments welcome, also, if anyone notices anything I missed in the article, please correct. =) —[[User:Locke Cole|Locke Cole]] • [[User talk:Locke Cole|t]] • [[Special:Contributions/Locke Cole|c]] 05:47, 17 April 2006 (UTC)
 
:I've added a caveat about "'''<ttsamp>=</ttsamp>'''" and positional parameters. Where {{tlx|ifdef}} works (no '''else''' needed) it's unnecessary to replace it by '''#if:''' (and v.v.). Renaming {{Lps}} is tricky, what about all its links and the shortcut? --&#160;[[User:Omniplex|Omniplex]] 23:25, 17 April 2006 (UTC)
::The only trouble with renaming this page is handling any double redirects that crop up. I don't think there'll be many though. =) Redirects from here to whatever new name is chosen will handle the rest. —[[User:Locke Cole|Locke Cole]] • [[User talk:Locke Cole|t]] • [[Special:Contributions/Locke Cole|c]] 16:27, 18 April 2006 (UTC)
:::Double redirects are shown, but what about dozens of <small><ttsamp><nowiki>[[w:Wikipedia:Qif&#160;conditionals]]</nowiki></ttsamp></small> on Meta? Maybe I even used <small><ttsamp><nowiki>[[w:WP:QIF]]</nowiki></ttsamp></small> or similar there. --&#160;[[User:Omniplex|Omniplex]] 00:47, 22 April 2006 (UTC)
::::As [[WP:QIF]] would be changed to point to the new name (and [[Wikipedia:Qif conditionals]] would also point to the new name) it shouldn't matter. —[[User:Locke Cole|Locke Cole]] • [[User talk:Locke Cole|t]] • [[Special:Contributions/Locke Cole|c]] 01:00, 22 April 2006 (UTC)