Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Pact Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Chart/doc
(section)
Template
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Style attributes== The appearance of the boxes in a row may be controlled by the following optional template parameters: * ''border'' specifies the width of the box border in pixels, * ''boxstyle'' can be used to append arbitrary CSS declarations directly to the box style attributes. For example, the following code: <pre><nowiki> {{chart/start}} {{chart|border=1|boxstyle=background:green; | | FOO |y| BAR | |FOO=Box 1|BAR=Box 2}} {{chart | | |,|-|^|-|.| | }} {{chart|border=3|boxstyle=background:yellow; | | FOO | | BAR | |FOO=Box 3|BAR=Box 4}} {{chart/end}} </nowiki></pre> produces this chart: {{chart/start}} {{chart|border=1|boxstyle=background:green; | | FOO |y| BAR | |FOO=Box 1|BAR=Box 2}} {{chart | | |,|-|^|-|.| | }} {{chart|border=3|boxstyle=background:yellow; | | FOO | | BAR | |FOO=Box 3|BAR=Box 4}} {{chart/end}} Style attributes can even be set for individual boxes within each row, as in the example below: <pre><nowiki> {{chart/start}} {{chart| | | | |CLEAR| | | | |CLEAR=Clear box}} {{chart| |,|-|-|'|!|`|-|-|.| }} {{chart|RED |~|GREEN|~|BLUE |RED=Red box|GREEN=Green box|BLUE=Blue box |boxstyle_RED =background-color: red; |boxstyle_GREEN=background-color: green; |boxstyle_BLUE =background-color: blue; }} {{chart/end}} </nowiki></pre> which produces this: {{chart/start}} {{chart| | | | |CLEAR| | | | |CLEAR=Clear box}} {{chart| |,|-|-|'|!|`|-|-|.| }} {{chart|RED |~|GREEN|~|BLUE |RED=Red box|GREEN=Green box|BLUE=Blue box |boxstyle_RED =background-color: red; |boxstyle_GREEN=background-color: green; |boxstyle_BLUE =background-color: blue; }} {{chart/end}} {{Warnsign|'''Note:'''}} When specifying style attributes for individual named boxes, make sure the box names are aligned to the '''left''' side of the area reserved for them in the template call (as in "<code>|RED |</code>" instead of "<code>| RED |</code>" in the example above), otherwise the template will end up looking for a style parameter with spaces in its name. The {{tl|chart/start}} template also accepts an optional {{para|style}} parameter that can be used to set CSS styles for the entire diagram, and an optional {{para|align}} parameter to set the chart alignment.
Summary:
Please note that all contributions to Pact Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Pact Web Serial Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
This page is a member of a hidden category:
Category:Pages with broken file links