Template:Hide: Difference between revisions

From MediaWiki
Jump to navigationJump to search
Let's see if this works.
 
m documenting
 
Line 9: Line 9:
* Blitzen
* Blitzen
}}</nowiki></pre></tt>
}}</nowiki></pre></tt>
The first parameter is a unique name, the second is what you can hide: this should be able to cover pretty much anything. Useful for obnoxiously long lists.


{{hide|reindeer|
{{hide|reindeer|
Line 22: Line 21:
}}
}}


'''<tt><nowiki>{{hide}}</nowiki></tt>''': does exactly what it says. You can't rehide the block after it's been shown, but it's useful for hiding obnoxiously long lists. The first parameter is a unique name, the second is what you can hide: this should be able to cover pretty much anything.
If Javascript isn't enabled, the content will just be shown regularly, no matter what.
[[Category:Layout templates]]
[[Category:Layout templates]]
</noinclude>
</noinclude>
<includeonly><div id="{{{1}}}" class="hide">{{{2}}}</div></includeonly>
<includeonly><div id="{{{1}}}" class="hide">{{{2}}}</div></includeonly>

Latest revision as of 00:25, 26 May 2010

{{hide|reindeer|
* Dasher
* Dancer
* Prancer
* Vixen
* Comet
* Cupid
* Donner
* Blitzen
}}


  • Dasher
  • Dancer
  • Prancer
  • Vixen
  • Comet
  • Cupid
  • Donner
  • Blitzen

{{hide}}: does exactly what it says. You can't rehide the block after it's been shown, but it's useful for hiding obnoxiously long lists. The first parameter is a unique name, the second is what you can hide: this should be able to cover pretty much anything.

If Javascript isn't enabled, the content will just be shown regularly, no matter what.