Difference between revisions of "Template:Endorsements box"
Jump to navigation
Jump to search
imported>Reywas92 (seems like this should work) |
imported>Reywas92 (try this) |
||
| Line 1: | Line 1: | ||
<templatestyles src="Endorsements box/styles.css"/><div class="endorsements-box" {{#if:{{{width|}}}|style="width: {{{width}}}"}}><!-- | <templatestyles src="Endorsements box/styles.css"/><div class="endorsements-box" {{#if:{{{width|}}}|style="width: {{{width}}}"}}><!-- | ||
| − | --><div class="endorsements-box-title | + | --><div class="endorsements-box-title" {{#if:{{{color|}}}|style="color: {{{color}}}"}}>{{{title|List of political endorsements}}}</div><!-- |
| − | --><div class="endorsements-box-list {{#if:{{{columns|}}}{{{colwidth|}}}|endorsements-box-list-columns}}" {{#if:{{{colwidth|}}}|style="column-width: {{{colwidth}}};"}}> | + | --><div class="endorsements-box-list mw-collapsible {{#if:{{{columns|}}}{{{colwidth|}}}|endorsements-box-list-columns}}" {{#if:{{{colwidth|}}}|style="column-width: {{{colwidth}}};"}}> |
{{{list}}} | {{{list}}} | ||
</div></div><noinclude> | </div></div><noinclude> | ||
Latest revision as of 07:58, 6 January 2021
List of political endorsements
{{{list}}}
Script error: No such module "Uses TemplateStyles".
{{Endorsements box
| title = Example without columns
| list =
* Item 1
* Item 2
}}
Example without columns
- Item 1
- Item 2
Any value in the |columns= parameter will create a list with column widths of 35em.
{{Endorsements box
| title = Example with columns
| columns = yes
| list =
* Item 1
* Item 2
* Item 3
* Item 4
}}
Example with columns
- Item 1
- Item 2
- Item 3
- Item 4
| The above documentation is transcluded from Template:Endorsements box/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |