FANDOM


(re)
Line 12: Line 12:
 
:I'm not sure what this would be used for, but it's not hard. Just put this in {{t|hidden}}:
 
:I'm not sure what this would be used for, but it's not hard. Just put this in {{t|hidden}}:
   
<pre><div class="display:none;">{{{1}}}</div></pre>
+
<pre><div style="display:none;">{{{1}}}</div></pre>
 
<span style="font-family:Mistral">[[User:Catuse167|Cat]]</span> 17:19, April 21, 2012 (UTC)
 
<span style="font-family:Mistral">[[User:Catuse167|Cat]]</span> 17:19, April 21, 2012 (UTC)
   
Thanks. But where specifically?
+
Thanks. But where specifically?
   
 
--{{User:Whistle9/Sig2}} 17:24, April 21, 2012 (UTC)
 
--{{User:Whistle9/Sig2}} 17:24, April 21, 2012 (UTC)
  +
  +
:@Catuse: I think you meant style="display:none;" rather than class="display:none;", I fixed it for you.
  +
  +
:@Whistle: The <nowiki><div style="display:none;">{{{1}}}</div></nowiki> code would make content '''permanently''' invisible. But if you look at the existing {{t|hidden}} template here on Community Central, it actually uses a collapsible navframe with show/hide. Or, perhaps you want a collapsible table such as this:
  +
{| class="collapsible collapsed" style="margin-left:24px;"
  +
! Title of table
  +
|-
  +
| some hidden content inside the table
  +
|}
  +
:^Is this what you want? — [[User:Mathmagician|Mathmagician]] 18:06, April 21, 2012 (UTC)

Revision as of 18:06, April 21, 2012

Forums: Index Support Requests Help With Template:Hidden
FANDOM's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.

50px-Replacement filing cabinet.svg

Note: This topic has been unedited for 2997 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


Hello. Is there a way to set up the Hidden template so that content inside is hidden automatically, rather than shown automatically?

Thank you,

--Whistle9 (Talk) 17:09, April 21, 2012 (UTC)

I'm not sure what this would be used for, but it's not hard. Just put this in {{hidden}}:
<div style="display:none;">{{{1}}}</div>

Cat 17:19, April 21, 2012 (UTC)

Thanks. But where specifically?

--Whistle9 (Talk) 17:24, April 21, 2012 (UTC)

@Catuse: I think you meant style="display:none;" rather than class="display:none;", I fixed it for you.
@Whistle: The <div style="display:none;">{{{1}}}</div> code would make content permanently invisible. But if you look at the existing {{hidden}} template here on Community Central, it actually uses a collapsible navframe with show/hide. Or, perhaps you want a collapsible table such as this:
^Is this what you want? — Mathmagician 18:06, April 21, 2012 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.