Difference between revisions of "Template:Hidden"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="NavFrame" style="border:none;"><!--
+
{{hidden begin|showhide={{{showhide|}}}|expanded={{{expand|{{{expanded|}}}}}}|class={{{class|}}}|border={{{border|none}}}|style={{{style|{{{css|}}}}}}
--><div class="NavFrame" style="border:none;"><!--
+
|bg1={{{bg1|transparent}}}|ta1={{{ta1|center}}}|titlestyle={{#if:{{{multiline|{{{multi-line|}}}}}}|height:auto;}}{{#ifeq:{{{fw1|bold}}}|bold||font-weight:{{{fw1|bold}}};}}{{{headercss|{{{headerstyle|{{{titlestyle|}}}}}}}}}
--><div class="NavFrame" style="border:none;"><!--
+
|title={{#if:{{{multiline|{{{multi-line|}}}}}}|<div style="margin-right:4em;line-height:125%;height:auto;">{{{title|{{{header|{{{1}}}}}}}}}</div>|{{{title|{{{header|{{{1}}}}}}}}}}}
--><div class="NavHead" style="font-weight:{{{fw1|bold}}}; background-color:{{{bg1|transparent}}}; text-align:{{{ta1|center}}}; {{{headercss|}}}">{{{header|{{{1}}}}}}&nbsp;</div>
+
|bg2={{{bg2|transparent}}}|ta2={{{ta2|left}}}|contentstyle={{#ifeq:{{{fw2|normal}}}|normal||font-weight:{{{fw2|normal}}};}}{{{contentcss|{{{contentstyle|}}}}}} }}
<div class="NavContent" style="font-weight:{{{fw2|normal}}}; background-color:{{{bg2|transparent}}}; text-align:{{{ta2|left}}}; display:none; {{{contentcss|}}}">
+
{{{content|{{{contents|{{{text|{{{2}}}}}}}}}}}}{{hidden end}}<noinclude>
{{{content|{{{2}}}}}}
 
</div></div></div></div>
 
 
 
<noinclude>
 
 
This is a copy of the hidden template from wikipedia.
 
This is a copy of the hidden template from wikipedia.
 
{{Wikipedia|Template:Hidden}}
 
{{Wikipedia|Template:Hidden}}
 
 
<pre>
 
<pre>
 
{{hidden
 
{{hidden
Line 23: Line 18:
 
   |ta2 = content text-align (default: left)
 
   |ta2 = content text-align (default: left)
 
   |contentcss = other content css changes
 
   |contentcss = other content css changes
 +
  | showhide = <!--"left", otherwise omit-->
 
}}
 
}}
 
</pre>
 
</pre>
Line 31: Line 27:
 
{{Hidden | <header> | <content>}}
 
{{Hidden | <header> | <content>}}
 
</pre>
 
</pre>
[[Category:Templates|Hidden]]
+
[[Category:Templates|Hidden]]</noinclude>
</noinclude>
 

Latest revision as of 02:45, 10 September 2020

{{{1}}}
{{{2}}}

This is a copy of the hidden template from wikipedia.

Smallwikipedialogo.png This page uses content from Wikipedia. The original article was at Template:Hidden. The list of authors can be seen in the page history. The text of Wikipedia is available under the Commons Attribution-ShareAlike 3.0 Unported License.
{{hidden
  |header = Header text
  |fw1 = header font-weight (default: bold)
  |bg1 = header background-color (default: transparent)
  |ta1 = header text-align (default: center)
  |headercss = Other Header CSS changes
  |content = Content text
  |fw2 = content font-weight (default: normal)
  |bg2 = content background-color (default: transparent)
  |ta2 = content text-align (default: left)
  |contentcss = other content css changes
  | showhide = <!--"left", otherwise omit-->
}}

or

{{Hidden | <header> | <content>}}