Template talk:SSBBMatchupTable: Difference between revisions

this is simpler implementation
(this is simpler implementation)
Line 3: Line 3:
Currently, this template works perfectly fine in terms of individuals - just put <code><nowiki>{{SSBBMatchupTable|display=mrgame&watch}}</nowiki></code> on a page and it'll give you his matchups only (works for all characters). However, without an "or" statement, I can't set "display" to "all" and have all the rows appear (for the [[character matchups]] page). I've looked around a bit and found nothing. Anyone else have any ideas? [[User:Toomai|Toomai]] [[User talk:Toomai|Glittershine]] [[Image:Toomai.png|20px]] <small><choose><option>eXemplary Logic</option><option>The Stats Guy</option><option>The Table Designer</option></choose></small> 20:34, October 4, 2009 (UTC)
Currently, this template works perfectly fine in terms of individuals - just put <code><nowiki>{{SSBBMatchupTable|display=mrgame&watch}}</nowiki></code> on a page and it'll give you his matchups only (works for all characters). However, without an "or" statement, I can't set "display" to "all" and have all the rows appear (for the [[character matchups]] page). I've looked around a bit and found nothing. Anyone else have any ideas? [[User:Toomai|Toomai]] [[User talk:Toomai|Glittershine]] [[Image:Toomai.png|20px]] <small><choose><option>eXemplary Logic</option><option>The Stats Guy</option><option>The Table Designer</option></choose></small> 20:34, October 4, 2009 (UTC)
:Do you really need it to do that?  Why not just keep the matchup article having the full table and this one set up to display an individual row? While it'd be nice not to have to update both when there's a change, it's certainly workable. [[User:Miles.oppenheimer|<font color="dodgerblue"><span style="font-family:Comic Sans MS;">'''Miles''']] <font color="khaki">([[User talk:Miles.oppenheimer|<font color="khaki">talk]])</font></font></span></font> 22:13, October 4, 2009 (UTC)
:Do you really need it to do that?  Why not just keep the matchup article having the full table and this one set up to display an individual row? While it'd be nice not to have to update both when there's a change, it's certainly workable. [[User:Miles.oppenheimer|<font color="dodgerblue"><span style="font-family:Comic Sans MS;">'''Miles''']] <font color="khaki">([[User talk:Miles.oppenheimer|<font color="khaki">talk]])</font></font></span></font> 22:13, October 4, 2009 (UTC)
::You have to change how it's coded. For example (imagine this is in html instead of wikitable, because this might be a case where html > wikitable):
<pre>
<table>
{{#ifeq:{{{gandw|{{{alldisplay|no}}}}}}|yes|<tr><td>Stuff about op</td><td>Moar stuff</td></tr>}}
</table>
</pre>
This defaults to no, as in no display. The parameter alldisplay can be set on all the variables by |alldisplay=yes, or we can use the flexibility currently in the template. Obviously, you'll have to go around and fix the current usages, but you'll be able to build more out of this. --[[User:Sky2042|Sky]] ([[User talk:Sky2042|t]] · [[Special:Contributions/Sky2042|c]] · [[w:c:wow:User:Sky2042|w]]) 22:25, October 4, 2009 (UTC)
340

edits