Vorlage:Hidden/doc: Unterschied zwischen den Versionen

Aus Open Source Ecology - Germany
Zur Navigation springen Zur Suche springen
(.border-round -> .round)
(.mw-collapsible-content.border-left-dotted)
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 20: Zeile 20:
 
<code><nowiki>{{Hidden | header= header text | content = content text}}</nowiki></code><!--  
 
<code><nowiki>{{Hidden | header= header text | content = content text}}</nowiki></code><!--  
 
  -->{{Hidden | header= header text | content = content text}}
 
  -->{{Hidden | header= header text | content = content text}}
 +
 +
<code><nowiki>{{Hidden | header= header text | content = content text| toggle position = left}}</nowiki></code><!--
 +
-->{{Hidden | header= header text | content = content text| toggle position = left}}
 +
 +
<code><nowiki>{{Hidden | header= header text | content = content text| toggle position = left | contentclass=border-left-dotted}}</nowiki></code><!--
 +
-->{{Hidden | header= header text | content = content text| toggle position = left | contentclass=border-left-dotted}}
 +
  
 
<code><nowiki>{{Hidden | headerstyle= text-align:center; | header= header text | content = content text}}</nowiki></code><!--  
 
<code><nowiki>{{Hidden | headerstyle= text-align:center; | header= header text | content = content text}}</nowiki></code><!--  
Zeile 33: Zeile 40:
 
  -->Some text around here {{Hidden | header = Title | content = content text | toggle text = + / − | toggle position = left}}
 
  -->Some text around here {{Hidden | header = Title | content = content text | toggle text = + / − | toggle position = left}}
  
<code><nowiki>{{Hidden | header = Some text here … | content = content text | class = toccolours border-round | toggle text = + / − | toggle position = left}}</nowiki></code><br/><!--  
+
<code><nowiki>{{Hidden | header = Some text here … | content = content text | class = toccolours round | toggle text = + / − | toggle position = left}}</nowiki></code><br/><!--  
 
  -->{{Hidden | header = Some text here …| content = content text | class = toccolours round | toggle text = + / − | toggle position = left}}
 
  -->{{Hidden | header = Some text here …| content = content text | class = toccolours round | toggle text = + / − | toggle position = left}}
  
Zeile 51: Zeile 58:
 
div.mw-collapsible.force-toggle-float-left span.mw-collapsible-toggle {
 
div.mw-collapsible.force-toggle-float-left span.mw-collapsible-toggle {
 
   clear:left; float:left;margin-right:0.2em;
 
   clear:left; float:left;margin-right:0.2em;
 +
}
 +
.mw-collapsible-content.border-left-dotted {
 +
    border-left:1px dotted gray;
 +
    padding-left:5px!important;
 
}
 
}
 
</source>
 
</source>

Aktuelle Version vom 28. Juni 2018, 19:30 Uhr

Dies ist eine Dokumentationsunterseite für Vorlage:Hidden (siehe die Vorlage daselbst).
Sie enthält Informationen zur Kategorisierung und weiterer Inhalte, die aber hier unterhalb für diese Vorlage dokumentiert wurden.

Usage

This template creates collapsible parts. Template parameter are:

  • header or 1 → text of header
  • headerstyle → CSS for the header
  • content or 2 → text of content
  • contentstyle, contentclass → CSS style or class for the content
  • class → CSS class for the entire box
  • toggle position = left → alters the position of the toggler to being left
  • not collapsed → any value (the box will be opend on initialisation)

Examples:

{{Hidden | header text without equal sign |content text without equal sign
 typewriter text}}

header text without equal sign

content text without equal sign

typewriter text

→ the content text becomes formatted as wiki text


{{Hidden | header= header text | content = content text}}

header text

content text


{{Hidden | header= header text | content = content text| toggle position = left}}

header text

content text


{{Hidden | header= header text | content = content text| toggle position = left | contentclass=border-left-dotted}}

header text

content text


{{Hidden | headerstyle= text-align:center; | header= header text | content = content text}}

header text

content text


{{Hidden | header= header text | content = content text | contentstyle= text-align:justify; }}

header text

content text


Some text around here {{Hidden | header = Title | toggle text = Show UML diagram / Hide UML diagram | content = content text}}
Some text around here

Title

content text


Some text around here {{Hidden | header = Title | content = content text | toggle text = + / − | toggle position = left}}
Some text around here

Title

content text


{{Hidden | header = Some text here … | content = content text | class = toccolours round | toggle text = + / − | toggle position = left}}

Some text here …

content text


{{Hidden | header = Some text here … | content = content text not collpsed | class = toccolours round | not collapsed = yes}}

Some text here …

content text not collpsed


Technical documentation

CSS-dependencies:

.round {
  border-radius: 10px;
  -moz-border-radius: 10px;
}
/* for toggle position */
div.mw-collapsible.force-toggle-float-left span.mw-collapsible-toggle {
  clear:left; float:left;margin-right:0.2em;
}
.mw-collapsible-content.border-left-dotted {
    border-left:1px dotted gray;
    padding-left:5px!important;
}