w:c:strategywiki>DrBob (Moved from template) |
m (14 revisions imported: Imported from https://strategywiki.org/) |
||
(13 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{TemplateStyles|Template:Sidebar/styles.css}} | |||
This template is used to provide additional information in a sidenote style. It is used as follows: | This template is used to provide additional information in a sidenote style. It is used as follows: | ||
<pre>{{sidebar | <pre>{{sidebar | ||
|float=left, right, or | |float=left, right, or center (default: right) | ||
|clear=left, right, or both (default: empty) | |||
|styles=Guide-specific variant classes. (ex. eternal-sonata; default: empty) | |||
|class=Variant class (ex. "banner"; default: empty) | |||
|width=Box width (CSS syntax) | |width=Box width (CSS syntax) | ||
|title=Box title | |title=Box title | ||
|contents=Box contents | |contents=Box contents | ||
}}</pre> | }}</pre> | ||
==Example== | |||
{{sidebar | |||
|float=right | |||
|width=250px | |||
|title=Sidebar example | |||
|contents=You can put whatever you want here. This is sort of like using really large parentheses. | |||
}} | |||
<pre>{{sidebar | |||
|float=right | |||
|width=250px | |||
|title=Sidebar example | |||
|contents=You can put whatever you want here. This is sort of like using really large parentheses. | |||
}}</pre> | |||
{{-}} | |||
{{sidebar | |||
|float=right | |||
|class=banner | |||
|width=250px | |||
|title=Banner class example | |||
|contents=This is using the "banner" ''class''. | |||
}} | |||
<pre>{{sidebar | |||
|float=right | |||
|class=banner | |||
|width=250px | |||
|title=Banner class example | |||
|contents=This is using the "banner" ''class''. | |||
}}</pre> | |||
<noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 18:27, 28 October 2023
This template uses TemplateStyles: |
This template is used to provide additional information in a sidenote style. It is used as follows:
{{sidebar |float=left, right, or center (default: right) |clear=left, right, or both (default: empty) |styles=Guide-specific variant classes. (ex. eternal-sonata; default: empty) |class=Variant class (ex. "banner"; default: empty) |width=Box width (CSS syntax) |title=Box title |contents=Box contents }}
Example[edit source]
Page Template:Sidebar/styles.css has no content.
{{sidebar |float=right |width=250px |title=Sidebar example |contents=You can put whatever you want here. This is sort of like using really large parentheses. }}
Page Template:Sidebar/styles.css has no content.
{{sidebar |float=right |class=banner |width=250px |title=Banner class example |contents=This is using the "banner" ''class''. }}