Difference between revisions of "Template:Infobox cabinet members/doc"
Jump to navigation
Jump to search
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
|||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories where indicated at the bottom of this page, please --> | <!-- Categories where indicated at the bottom of this page, please --> | ||
| + | {{Lua|Module:Infobox cabinet members}} | ||
{{notice|This template is a [[Help:Metatemplating|meta-template]], like {{tl|infobox}}, used for generating other templates. It is not intended to be directly transcluded in articles.}} | {{notice|This template is a [[Help:Metatemplating|meta-template]], like {{tl|infobox}}, used for generating other templates. It is not intended to be directly transcluded in articles.}} | ||
{{Generic template demo | {{Generic template demo | ||
| Line 35: | Line 36: | ||
=== Basic === | === Basic === | ||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
| − | {{Infobox cabinet | + | {{Infobox cabinet members |
| above = | | above = | ||
| Line 60: | Line 61: | ||
=== Basic with party === | === Basic with party === | ||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
| − | {{Infobox cabinet | + | {{Infobox cabinet members |
| above = | | above = | ||
| party_column = true | | party_column = true | ||
| Line 91: | Line 92: | ||
=== Multiple names per office === | === Multiple names per office === | ||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
| − | {{Infobox cabinet | + | {{Infobox cabinet members |
| above = | | above = | ||
| Line 136: | Line 137: | ||
=== Multiple names per office with party === | === Multiple names per office with party === | ||
<pre style="overflow:auto"> | <pre style="overflow:auto"> | ||
| − | {{Infobox cabinet | + | {{Infobox cabinet members |
| above = | | above = | ||
| party_column = true | | party_column = true | ||
| Line 260: | Line 261: | ||
* {{tl|Cabinet table start}} | * {{tl|Cabinet table start}} | ||
* {{tl|Cabinet table minister}} | * {{tl|Cabinet table minister}} | ||
| + | * {{tl|Cabinet table ministry}} | ||
| − | <includeonly>{{ | + | <includeonly>{{Sandbox other| |
| <!-- Categories below this line, please: --> | | <!-- Categories below this line, please: --> | ||
[[Category:Politics and government infobox templates|Cabinet]] | [[Category:Politics and government infobox templates|Cabinet]] | ||
[[Category:Wikipedia metatemplates]] | [[Category:Wikipedia metatemplates]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 18:13, 25 April 2020
| This is a documentation subpage for Template:Infobox cabinet members. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
| This template is a meta-template, like {{infobox}}, used for generating other templates. It is not intended to be directly transcluded in articles. |
- redirect Template:Parameter names example
Contents
Basic
{{Infobox cabinet members
| above =
| office1 =
| name1a =
| term1a =
| office2 =
| name2a =
| term2a =
| office3 =
| name3a =
| term3a =
...
| office33 =
| name33a =
| term33a =
| below =
}}
Basic with party
{{Infobox cabinet members
| above =
| party_column = true
| office1 =
| name1a =
| party1a =
| term1a =
| office2 =
| name2a =
| party2a =
| term2a =
| office3 =
| name3a =
| party3a =
| term3a =
...
| office33 =
| name33a =
| party33a =
| term33a =
| below =
}}
Multiple names per office
{{Infobox cabinet members
| above =
| office1 =
| name1a =
| term1a =
| name1b =
| term1b =
| name1c =
| term1c =
| name1d =
| term1d =
| name1e =
| term1e =
| office2 =
| name2a =
| term2a =
| name2b =
| term2b =
| name2c =
| term2c =
| name2d =
| term2d =
| name2e =
| term2e =
...
| office33 =
| name33a =
| term33a =
| name33b =
| term33b =
| name33c =
| term33c =
| name33d =
| term33d =
| name33e =
| term33e =
| below =
}}
Multiple names per office with party
{{Infobox cabinet members
| above =
| party_column = true
| office1 =
| name1a =
| party1a =
| term1a =
| name1b =
| party1b =
| term1b =
| name1c =
| party1c =
| term1c =
| name1d =
| party1d =
| term1d =
| name1e =
| party1e =
| term1e =
| office2 =
| name2a =
| party2a =
| term2a =
| name2b =
| party2b =
| term2b =
| name2c =
| party2c =
| term2c =
| name2d =
| party2d =
| term2d =
| name2e =
| party2e =
| term2e =
...
| office33 =
| name33a =
| party33a =
| term33a =
| name33b =
| party33b =
| term33b =
| name33c =
| party33c =
| term33c =
| name33d =
| party33d =
| term33d =
| name33e =
| party33e =
| term33e =
| below =
}}
Float behavior
The default is for the infobox to float to the right of the page. To float the infobox to the left, use
| float = left
To float to the center, use
| float = center
To disable floating, use
| float = none
Images
The template supports the placement of images in two different locations. For an image above the above line, use
| topimage = | topcaption =
For an image below the above line, use
| image = | caption =
Color and styling
To use a normal font for the officeholder names, add
| name_style = font-weight:normal
To change the border color for the first line, use
| border_color1 = #000000
To remove the border for the second line, use
| border_color2 = none
To remove the border color for the 33rd line, use
| border_color33 = transparent
To change the styling of the above line, use
| abovestyle =
Heading labels
To override the default heading labels, use
| office_label = | name_label = | party_label = | term_label =
See also
- {{Infobox government cabinet}}
- {{Cabinet table start}}
- {{Cabinet table minister}}
- {{Cabinet table ministry}}