ފަންވަތް:Hidden/doc: Difference between revisions
Content deleted Content added
Created page with "{{Documentation subpage}} <!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: Wikipedia:Wikidata). --> <includeonly..." |
އެންމެ ފަހުން ގެނެވުނު ބަދަލު 23:45, 18 އެޕްރީލް 2020 އުނިއިތުރު ގެންނަވާ ކުރީގެ ނުސްހާއަށް ބަދަލުކުރައްވާ Xqbot (ޚިޔާލު ސަފްޙާ | ޙިއްޞާ) m Bot: Replace deprecated <source> tag and "enclose" parameter; cosmetic changes |
||
ފޮޅުވަތް 4:
{{Template:Collapse Templates}}
This template creates a [[
The template does '''not''' provide a parameter to designate whether the link starts at a show or hide state.
Do not use this template to hide content in articles. This violates the [[WP:Manual of Style#Scrolling lists and collapsible content|WP:Manual of Style § Scrolling lists and collapsible content]] and [[WP:Accessibility]] guidelines. This template is intended for use in pages in [[
== Usage ==
=== Full syntax ===
<pre style="overflow:auto;">
{{Hidden
ފޮޅުވަތް 26:
</pre>
=== Parameters ===
Only two parameters are required for this template:
; header
; content : text for body (content); alternative to using unnamed parameter <nowiki>{{{2}}}</nowiki>
==== Optional ====
; style
; headerstyle
; contentstyle : CSS styling for the hidden content.
; expanded
; multiline
'''Note:''' This template will not respect the [[
== Examples ==
=== Basic ===
In this example only the two required parameters are specified.
{| class="wikitable"
ފޮޅުވަތް 51:
|}
=== Header background ===
{| class="wikitable"
| {{rh}} | Code
| <
{{hidden
|Title text here
ފޮޅުވަތް 61:
|style=text-align:center;
}}
</syntaxhighlight>
|-
| {{rh}} | Result
ފޮޅުވަތް 67:
|}
=== CSS ===
{| class="wikitable"
| {{rh}} | Code
|
<
{{hidden
| style = border:1px dashed red; width: 50%;
ފޮޅުވަތް 78:
| header = Title text here
| content = Body text line 1<br />Body text line 2<br />Body text line 3
}}</
|-
| {{rh}} | Result
ފޮޅުވަތް 113:
{{hidden end}}
== Tracking category ==
* {{clc|Hidden templates using styles}} – tracks usage of parameters bg1, bg2, ta1, ta2, fw1, fw2
== See also ==
Supporting templates:
* {{tiw|Hidden begin}}
ފޮޅުވަތް 126:
<includeonly>{{Sandbox other||
<!-- Categories go below this line, please; interwikis go to Wikidata, thank you! -->
[[
[[
[[
}}</includeonly>
|