Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "User:Eabrace/TableHiddenText"

From Paragon Wiki Archive
Jump to: navigation, search
m (Case 2 - hidden text inside row)
m (case 9 - using case 8 to hide embedded table)
 
(5 intermediate revisions by the same user not shown)
Line 33: Line 33:
 
|}
 
|}
 
{{clr}}
 
{{clr}}
 +
  
 
== Case 2 ==
 
== Case 2 ==
Line 68: Line 69:
 
|}
 
|}
  
 +
{{clr}}
 +
 +
 +
== Case 3 ==
 +
Hiding text inside a table row
 +
 +
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%; border: 1px solid #aaaaaa;"
 +
|-
 +
| colspan="3" style="text-align:center; font-size: 120%;" | '''Blaster'''
 +
|-
 +
| colspan="3" style="text-align: center;" | [[File:Archetypeicon_blaster.png]]
 +
|-
 +
! Primary
 +
| Ranged
 +
|-
 +
! Secondary
 +
| Support
 +
|-
 +
! Inherent
 +
| [[Defiance]]
 +
|-
 +
! [[Hit Points|Base HP]]
 +
| 1204.8
 +
|-
 +
! [[Hit Points|Max HP]]
 +
| 1606.4
 +
|-
 +
| colspan="3" style="text-align:center; font-size: 120%;" | '''Modifiers (at level 50)'''
 +
|-
 +
! || Melee || Ranged
 +
|-
 +
! [[Damage Scale]]
 +
| 1.000 || 1.125
 +
|-
 +
! colspan="3" style="text-align:center; font-size: 120%;" | {{hidden|header='''Hidden Text Follows'''|content=
 +
{{!}}-
 +
{{!}}This text should be hidden inside the table row.}}
 +
|}
 +
 +
{{clr}}
 +
 +
 +
== Case 4 ==
 +
Similar to Case 1, but using embedded tables
 +
 +
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%; border: 1px solid #aaaaaa;"
 +
|-
 +
| style="text-align:center; font-size: 120%;" | '''Blaster'''
 +
|-
 +
| style="text-align:center;" | [[File:Archetypeicon_blaster.png]]
 +
|-
 +
|
 +
{| style="width: 100%;"
 +
|-
 +
! Primary
 +
| Ranged
 +
|-
 +
! Secondary
 +
| Support
 +
|-
 +
! Inherent
 +
| [[Defiance]]
 +
|-
 +
! [[Hit Points|Base HP]]
 +
| 1204.8
 +
|-
 +
! [[Hit Points|Max HP]]
 +
| 1606.4
 +
|}
 +
|-
 +
|
 +
{| style="width: 100%;"
 +
|-
 +
| colspan="3" style="text-align:center; font-size: 120%;" | '''Modifiers (at level 50)'''
 +
|-
 +
! || Melee || Ranged
 +
|-
 +
! [[Damage Scale]]
 +
| 1.000 || 1.125
 +
|}
 +
|}
 +
{{clr}}
 +
 +
 +
== Case 5 ==
 +
Attempting to hide this table
 +
 +
{{{!}}
 +
{{!}}-
 +
! {{!}}{{!}} Melee {{!}}{{!}} Ranged
 +
{{!}}-
 +
! [[Damage Scale]]
 +
{{!}} 1.000 {{!}}{{!}} 1.125
 +
{{!}}}
 +
 +
{{clr}}
 +
 +
{{hidden|header='''Modifiers (at level 50)'''
 +
|content={{{!}}
 +
{{!}}-
 +
! {{!}}{{!}} Melee {{!}}{{!}} Ranged
 +
{{!}}-
 +
! [[Damage Scale]]
 +
{{!}} 1.000 {{!}}{{!}} 1.125
 +
{{!}}} }}
 +
 +
{{clr}}
 +
 +
{{hidden|header='''Modifiers (at level 50)'''
 +
|content={{{!}}
 +
{{!}}-<br />
 +
! {{!}}{{!}} Melee {{!}}{{!}} Ranged <br />
 +
{{!}}- <br />
 +
! [[Damage Scale]] <br />
 +
{{!}} 1.000 {{!}}{{!}} 1.125 <br />
 +
{{!}}} <br /> }}
 +
 +
{{clr}}
 +
 +
{{hidden|header='''Modifiers (at level 50)'''
 +
|content={{{!}}
 +
{{!}}-
 +
 +
! {{!}}{{!}} Melee {{!}}{{!}} Ranged
 +
 +
{{!}}-
 +
 +
! [[Damage Scale]]
 +
 +
{{!}} 1.000 {{!}}{{!}} 1.125
 +
 +
{{!}}} }}
 +
 +
{{clr}}
 +
 +
== Case 6 ==
 +
Attempting to hide an embedded table
 +
 +
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%; border: 1px solid #aaaaaa;"
 +
|-
 +
| style="text-align:center; font-size: 120%;" | '''Blaster'''
 +
|-
 +
| style="text-align:center;" | [[File:Archetypeicon_blaster.png]]
 +
|-
 +
|
 +
{| style="width: 100%;"
 +
|-
 +
! Primary
 +
| Ranged
 +
|-
 +
! Secondary
 +
| Support
 +
|-
 +
! Inherent
 +
| [[Defiance]]
 +
|-
 +
! [[Hit Points|Base HP]]
 +
| 1204.8
 +
|-
 +
! [[Hit Points|Max HP]]
 +
| 1606.4
 +
|}
 +
|-
 +
|{{hidden|header='''Modifiers (at level 50)'''
 +
|content=
 +
{{{!}}
 +
{{!}}-
 +
{{!}}
 +
{{{!}}
 +
{{!}}-
 +
! {{!}}{{!}} Melee {{!}}{{!}} Ranged
 +
{{!}}-
 +
! [[Damage Scale]]
 +
{{!}} 1.000 {{!}}{{!}} 1.125
 +
{{!}}} }}
 +
|}
 +
{{clr}}
 +
 +
== Case 7 ==
 +
Attempting to hide the table again, but this time placing an extra character above and below to force the entire table to be enclosed within the <nowiki><p></p></nowiki> tags that are rendered when the entire hidden template is parsed.
 +
 +
{{{!}}
 +
{{!}}-
 +
! {{!}}{{!}} Melee {{!}}{{!}} Ranged
 +
{{!}}-
 +
! [[Damage Scale]]
 +
{{!}} 1.000 {{!}}{{!}} 1.125
 +
{{!}}}
 +
 +
{{clr}}
 +
 +
{{hidden|header='''Modifiers (at level 50)'''
 +
|content=.
 +
{{{!}}
 +
{{!}}-
 +
! {{!}}{{!}} Melee {{!}}{{!}} Ranged
 +
{{!}}-
 +
! [[Damage Scale]]
 +
{{!}} 1.000 {{!}}{{!}} 1.125
 +
{{!}}}
 +
. }}
 +
 +
{{clr}}
 +
 +
 +
== Case 8 ==
 +
Modified version of Case 7, replacing period with a space
 +
 +
{{hidden|header='''Modifiers (at level 50)'''
 +
|content=&nbsp;
 +
{{{!}}
 +
{{!}}-
 +
! {{!}}{{!}} Melee {{!}}{{!}} Ranged
 +
{{!}}-
 +
! [[Damage Scale]]
 +
{{!}} 1.000 {{!}}{{!}} 1.125
 +
{{!}}}
 +
&nbsp;}}
 +
 +
{{clr}}
 +
 +
== Case 9 ==
 +
Putting Case 8 together with the original table.
 +
 +
{| class="infobox" style="width: 20em; text-align: left; font-size: 90%; border: 1px solid #aaaaaa;"
 +
|-
 +
| style="text-align:center; font-size: 120%;" | '''Blaster'''
 +
|-
 +
| style="text-align:center;" | [[File:Archetypeicon_blaster.png]]
 +
|-
 +
|
 +
{| style="width: 100%;"
 +
|-
 +
! Primary
 +
| Ranged
 +
|-
 +
! Secondary
 +
| Support
 +
|-
 +
! Inherent
 +
| [[Defiance]]
 +
|-
 +
! [[Hit Points|Base HP]]
 +
| 1204.8
 +
|-
 +
! [[Hit Points|Max HP]]
 +
| 1606.4
 +
|}
 +
|-
 +
|{{hidden|header=<font size=2>'''Modifiers (at level 50)'''</font>
 +
|content=&nbsp;
 +
{{{!}}
 +
{{!}}-
 +
! {{!}}{{!}} Melee {{!}}{{!}} Ranged
 +
{{!}}-
 +
! [[Damage Scale]]
 +
{{!}} 1.000 {{!}}{{!}} 1.125
 +
{{!}}}
 +
&nbsp;}}
 +
|}
 
{{clr}}
 
{{clr}}

Latest revision as of 00:12, 5 August 2009

A (hopefully) short little experiment in embedding the {{hidden}} template inside tables.

Case 1

A simple table with no hidden text

Blaster
Archetypeicon blaster.png
Primary Ranged
Secondary Support
Inherent Defiance
Base HP 1204.8
Max HP 1606.4
Modifiers (at level 50)
Melee Ranged
Damage Scale 1.000 1.125



Case 2

Hiding text inside a table row

Blaster
Archetypeicon blaster.png
Primary Ranged
Secondary Support
Inherent Defiance
Base HP 1204.8
Max HP 1606.4
Modifiers (at level 50)
Melee Ranged
Damage Scale 1.000 1.125



Case 3

Hiding text inside a table row

Blaster
Archetypeicon blaster.png
Primary Ranged
Secondary Support
Inherent Defiance
Base HP 1204.8
Max HP 1606.4
Modifiers (at level 50)
Melee Ranged
Damage Scale 1.000 1.125
This text should be hidden inside the table row.



Case 4

Similar to Case 1, but using embedded tables

Blaster
Archetypeicon blaster.png
Primary Ranged
Secondary Support
Inherent Defiance
Base HP 1204.8
Max HP 1606.4
Modifiers (at level 50)
Melee Ranged
Damage Scale 1.000 1.125



Case 5

Attempting to hide this table

Melee Ranged
Damage Scale 1.000 1.125





Case 6

Attempting to hide an embedded table

Blaster
Archetypeicon blaster.png
Primary Ranged
Secondary Support
Inherent Defiance
Base HP 1204.8
Max HP 1606.4