- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Difference between revisions of "Template:Detail"
Jump to navigation
Jump to search
m (→Examples) |
m |
||
Line 40: | Line 40: | ||
|} | |} | ||
</pre> | </pre> | ||
− | {{Detail|button=true|target=example-row|show_text=Show row|hide_text=Show row (hidden)}} | + | {{Detail|button=true|target=example-row|default=show|show_text=Show row|hide_text=Show row (hidden)}} |
{{Detail|button=true|target=example-column|show_text=Show column|hide_text=Show column (hidden)}} | {{Detail|button=true|target=example-column|show_text=Show column|hide_text=Show column (hidden)}} | ||
− | {| | + | {| class="wikitable" |
|Normal row | |Normal row | ||
|... | |... |
Revision as of 19:19, 18 July 2016
This is a helper template for using MediaWiki:DetailToggle.js.
Examples
Default
{{Detail|button=true}} {{Detail|Hidden content}}
☑ Show details ☒ Show details
Hidden content
Custom property
{{Detail|button=true|target=example-1}} {{Detail||target=example-1|Hidden content}}
☑ Show details ☒ Show details
Hidden content
Custom elements
{{Detail|button=true|target=example-2}} <div {{Detail|target=example-2}}>Hidden content</div>
☑ Show details ☒ Show details
Hidden content
Tables & custom text
{{Detail|button=true|target=example-row|show_text=Show row|hide_text=Show row (hidden)}} {{Detail|button=true|target=example-column|show_text=Show column|hide_text=Show column (hidden)}} {| |Normal row |... |{{Detail|target=example-column}}|Hidden column |- {{Detail|target=example-row}} |Hidden row |... |{{Detail|target=example-column}}|Hidden column |}
☑ Show row ☒ Show row (hidden)
☑ Show column ☒ Show column (hidden)
Normal row | ... | Hidden column |
Hidden row | ... | Hidden column |