Difference between revisions of "Template:Infobox WorldScouting/sandbox"
imported>Deflagro m (Removing Space in) |
imported>Deflagro (Updating to most recent version + campsize) |
||
| Line 1: | Line 1: | ||
<includeonly>{{Infobox | <includeonly>{{Infobox | ||
| − | + | | bodyclass = vcard {{{liststyle|plainlist}}} | |
| − | |||
| − | | bodyclass = vcard | ||
| bodystyle = font-size:95%; width:{{#if:{{{box_width|}}} |{{{box_width}}} |20.0em}}; text-align:left; | | bodystyle = font-size:95%; width:{{#if:{{{box_width|}}} |{{{box_width}}} |20.0em}}; text-align:left; | ||
| − | | abovestyle = background:#FFDEAD;font-size:125%;text-align:center; | + | | aboveclass = fn org |
| − | | above = | + | | abovestyle = background:#FFDEAD; font-size:125%; text-align:center; |
| + | | above = {{#if:{{{name|}}} |{{{name}}} |{{PAGENAMEBASE}} }} | ||
| imagestyle = font-size:8pt; {{#if:{{{image-bgcolor|}}} |background:{{{image-bgcolor}}};}} padding:4pt; line-height:1.25em; text-align:center; | | imagestyle = font-size:8pt; {{#if:{{{image-bgcolor|}}} |background:{{{image-bgcolor}}};}} padding:4pt; line-height:1.25em; text-align:center; | ||
| image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image size|{{{image_size|{{{imagesize|140px}}}}}}}}} |alt={{{alt|}}} |suppressplaceholder=yes}} | | image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image size|{{{image_size|{{{imagesize|140px}}}}}}}}} |alt={{{alt|}}} |suppressplaceholder=yes}} | ||
| − | |||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| Line 16: | Line 14: | ||
| caption2 = {{{caption2|}}} | | caption2 = {{{caption2|}}} | ||
| − | | labelstyle = font-size:90%;background:transparent;padding:0.2em 1.0em 0.2em 0.2em;line-height:1.2em;text-align:left; | + | | labelstyle = font-size:90%; background:transparent; padding:0.2em 1.0em 0.2em 0.2em; line-height:1.2em;text-align:left; |
| − | | datastyle = font-size:90%;padding:0.2em;vertical-align:middle;line-height:1.3em; | + | | datastyle = font-size:90%; padding:0.2em; vertical-align:middle; line-height:1.3em; |
| − | | label1 | + | | label1 = {{{namelabel1|}}} |
| − | | | + | | data1 = {{{name1|}}} |
| − | | label2 | + | | label2 = {{{namelabel2|}}} |
| − | | | + | | data2 = {{{name2|}}} |
| − | | label3 | + | | label3 = {{{namelabel3|}}} |
| − | | | + | | data3 = {{{name3|}}} |
| − | | label4 | + | | label4 = Theme |
| − | | | + | | data4 = {{{theme|}}} |
| − | | label5 | + | | label5 = Totem |
| − | | | + | | data5 = {{{totem|}}} |
| − | | label6 | + | | label6 = Owner |
| − | | | + | | data6 = {{{owner|}}} |
| − | | label7 | + | | label7 = Age range |
| − | | | + | | data7 = {{{age|}}} |
| − | | label8 | + | | label8 = Headquarters |
| − | | class8 | + | | class8 = label |
| − | | | + | | data8 = {{{headquarters|}}} |
| − | | label9 | + | | label9 = Location |
| − | | | + | | data9 = {{{location|}}} |
| − | | | + | | data10 = {{#invoke:InfoboxImage|InfoboxImage |image={{{map|}}} |size={{{mapsize|{{{map_size|{{{map-size|}}}}}}}}} |sizedefault=140px |title={{{mapname|}}} }} |
| rowclass11 = adr | | rowclass11 = adr | ||
| label11 = Country | | label11 = Country | ||
| class11 = country-name | | class11 = country-name | ||
| − | | | + | | data11 = {{{country|}}} |
| label12 = Coordinates | | label12 = Coordinates | ||
| − | | | + | | data12 = {{{coords|}}} |
| label13 = Camp size | | label13 = Camp size | ||
| − | | data13 = {{{ | + | | data13 = {{{campsize|{{{campsize|}}}}}} |
| label14 = {{#switch:{{{type|}}} |event=Date |events=Dates |award=Created |emblem=Created |Founded}} | | label14 = {{#switch:{{{type|}}} |event=Date |events=Dates |award=Created |emblem=Created |Founded}} | ||
| − | | | + | | data14 = {{{f-date|}}} |
| label15 = Defunct | | label15 = Defunct | ||
| − | | | + | | data15 = {{{defunct|}}} |
| label16 = {{#switch:{{{founders|}}} |yes=Founders |Founder}} | | label16 = {{#switch:{{{founders|}}} |yes=Founders |Founder}} | ||
| − | | | + | | data16 = {{{founder|}}} |
| label17 = Awarded for | | label17 = Awarded for | ||
| − | | | + | | data17 = {{{award-for|}}} |
| label18 = {{#switch:{{{type|}}} |award=Recipients |event=Attendance |campsite=Attendance |Membership}} | | label18 = {{#switch:{{{type|}}} |award=Recipients |event=Attendance |campsite=Attendance |Membership}} | ||
| − | | | + | | data18 = {{{members|}}} |
| − | | label19 = {{{chiefscouttitle|Chief Scout | + | | label19 = {{if empty|{{{chiefscouttitle|}}}|Chief Scout}} |
| class19 = agent | | class19 = agent | ||
| − | | | + | | data19 = {{{chiefscout|}}} |
| + | |||
| label20 = {{{chiefscouttitle2}}} | | label20 = {{{chiefscouttitle2}}} | ||
| class20 = agent | | class20 = agent | ||
| − | | | + | | data20 = {{#if:{{{chiefscouttitle2|}}}|{{{chiefscout2|}}}}} |
| + | |||
| label21 = {{{chiefscouttitle3}}} | | label21 = {{{chiefscouttitle3}}} | ||
| class21 = agent | | class21 = agent | ||
| − | | | + | | data21 = {{#if:{{{chiefscouttitle3|}}}|{{{chiefscout3|}}}}} |
| + | |||
| label22 = {{{chiefscouttitle4}}} | | label22 = {{{chiefscouttitle4}}} | ||
| class22 = agent | | class22 = agent | ||
| − | | | + | | data22 = {{#if:{{{chiefscouttitle4|}}}|{{{chiefscout4|}}}}} |
| + | |||
| label23 = {{{chiefscouttitle5}}} | | label23 = {{{chiefscouttitle5}}} | ||
| class23 = agent | | class23 = agent | ||
| − | | | + | | data23 = {{#if:{{{chiefscouttitle5|}}}|{{{chiefscout5|}}}}} |
| label24 = Affiliation | | label24 = Affiliation | ||
| − | | | + | | data24 = {{{affiliation|}}} |
| label25 = Governing body | | label25 = Governing body | ||
| − | | | + | | data25 = {{{governance|}}} |
| − | | | + | | data26 = |
| − | {{{!}} | + | {{{!}} class="multicol" style="border-spacing: 0; width:100%; background:transparent;" |
| − | {{!}} | + | {{!}}style="width:50%; text-align:center; vertical-align:top;"{{!}} {{#if:{{{prev|}}} |'''Previous'''<br />{{{prev}}} }} |
| − | {{!}} | + | {{!}}style="width:50%; text-align:center; vertical-align:top;"{{!}} {{#if:{{{next|}}} |'''Next'''<br />{{{next}}} }} |
{{!}}} | {{!}}} | ||
| − | | | + | | data27 = {{#if:{{{website|}}} |'''Website'''<br />{{{website}}} }} |
| belowclass = noprint | | belowclass = noprint | ||
Revision as of 16:39, 17 May 2016
| 50px | This is the template sandbox page for Template:Infobox WorldScouting (diff). See also the companion subpage for test cases. |
| 30px | This template uses Lua: |
{{Infobox WorldScouting}} is meant to be used for all Scouting organizations, associations, sections, sites, etc. It may be added to an article by copy-pasting and completing the blank syntax given below:
Contents
Usage
- redirect Template:Parameter names example
{{Infobox WorldScouting
| name =
| image =
| imagesize = <!-- defaults to 140px -->
| alt =
| caption =
| image2 =
| imagesize2 =
| alt2 =
| caption2 =
| namelabel1 =
| name1 =
| namelabel2 =
| name2 =
| namelabel3 =
| name3 =
| theme =
| number =
| totem =
| owner =
| age =
| headquarters =
| location =
| map =
| mapsize = <!-- defaults to 140px -->
| mapname =
| country =
| coords =
| campsize =
| type =
| f-date = <!-- Consider using {{Start date and age|YYYY|MM|DD}} or {{Start date|YYYY|MM|DD}} -->
| defunct = <!-- Consider using {{Start date and age|YYYY|MM|DD}} or {{Start date|YYYY|MM|DD}} -->
| founders = <!-- Set as "yes" to convert the label "Founder" to "Founders" -->
| founder =
| award-for =
| members =
| chiefscouttitle =
| chiefscout =
| chiefscouttitle2 =
| chiefscout2 =
<!--......-->
| chiefscouttitle5 =
| chiefscout5 =
| affiliation =
| governance =
| prev =
| next =
| website =
| portal = <!-- Use to omit portal link by setting to "omit", "off", etc -->
}}
Uniform
For uniform options, see c:Category:Scouting uniform templates.
To add a uniform image, use
| gender = | color_body = | pattern_body = | color_head = | pattern_head = | color_legs = | pattern_legs = | uniform_caption =
To add two uniform images, use
| gender1 = | color_body1 = | pattern_body1 = | color_head1 = | pattern_head1 = | color_legs1 = | pattern_legs1 = | uniform_caption1 =
| gender2 = | color_body2 = | pattern_body2 = | color_head2 = | pattern_head2 = | color_legs2 = | pattern_legs2 = | uniform_caption2 =
To add a third uniform image, use
| gender3 = | color_body3 = | pattern_body3 = | color_head3 = | pattern_head3 = | color_legs3 = | pattern_legs3 = | uniform_caption3 =
Prefilled samples
{{Infobox WorldScouting
| name =
| image =
| type = council
| number =
| owner = [[Boy Scouts of America]]
| headquarters =
| location =
| country = United States
| coords =
| f-date =
| defunct =
| founder =
| members =
| chiefscouttitle = President
| chiefscout =
| chiefscouttitle2 = Council Commissioner
| chiefscout2 =
| chiefscouttitle3 = Scout Executive
| chiefscout3 =
| website =
}}
{{Infobox WorldScouting
| name =
| image =
| type = campsite
| location =
| coords =
| campsize =
| f-date =
| defunct =
| founder =
| members =
| chiefscouttitle = Ranger
| chiefscout =
| chiefscouttitle2 =
| chiefscout2 =
| chiefscouttitle3 =
| chiefscout3 =
| website =
| portal = omit
}}
{{Infobox WorldScouting
| name =
| image =
| totem =
| location =
| coords =
| f-date =
| defunct =
| founders =
| founder =
| members =
| chiefscouttitle = Lodge Chief
| chiefscout =
| chiefscouttitle2 = Lodge Adviser
| chiefscout2 =
| chiefscouttitle3 = Staff Adviser
| chiefscout3 =
| website =
| portal = omit
}}
Parameters
- name
- Name of the Scout organization, event, campsite or award. Defaults to the current page name if not supplied.
- image
- Image name; File:Scout logo3.svg may be used for universal articles, but should never be used for organizations where there is a proper logo.
- imagesize
- Image size; default is 140px.
- alt
- Image alt text; defaults to name.
- caption
- Image caption; format per Wikipedia:Captions.
- image2
- Image using full image markup or a template such as {{multiple image}}.
- caption2
- image2 caption; format per Wikipedia:Captions.
- namelabel1
- Optional label for name1.
- name1
- Alternate name1; may be an officially used translation or a full legal name; centered if namelabel is not used.
- namelabel2
- Optional label for name2.
- name2
- Alternate name2.
- namelabel3
- Optional label for name3.
- name3
- Alternate name3.
- theme
- Theme.
- totem
- Totem of the lodge or camp; may be wikilinked.
- owner
- Name of owner; may be wikilinked.
- age
- Age range; generally used with program type; use {{frac}} for fractions.
- headquarters
- Headquarters name or location; may be wikilinked.
- location
- City or place; may be wikilinked.
- map
- Map image name.
- mapsize
- Map size; default is 140px.
- mapname
- Map caption; format per Wikipedia:Captions.
- country
- Name of the country; may be wikilinked; do not use flag icons.
- coords
- Coordinates of the location, normally the entrance, the main building or the geographic center; format using {{coord}}.
- campsize
- Physical size of the camp; format using {{convert}}.
- type
- organization (default), event, campsite, award, emblem, section, program, council, county, area, region; modifies the f-date and members labels.
- f-date
- Date of foundation; use {{start date}}; the label is set by the type parameter :event shows "Date", events shows "Dates", award and emblem show "Created", all others show "Founded".
- defunct
- Date of dissolution; use {{end date}}.
- founders
- If set as "yes", the label used to identify the founder field is "Founders"; default is blank and the label "Founder".
- founder
- Name of the founder or founders.
- award-for
- Award criteria.
- members
- Number of members, recipients, or attendees; may include separate numbers for youth and adults; a reference is encouraged.
The chiefscout fields are for primary leaders; do not include assistants, deputies, etc.:
- chiefscouttitle
- Title of organizational head; may be wikilinked; defaults to Chief Scout.
- chiefscout
- Name of organizational head; may be wikilinked; use only for the key leaders, not assistants or the leaders of subgroups.
- chiefscouttitle2
- Title of organizational head; may be wikilinked.
- chiefscout2
- Name of organizational head.
- ......
- chiefscouttitle5
- Title of organizational head; may be wikilinked.
- chiefscout5
- Name of organizational head.
- affiliation
- Name of affiliated Scouting national federation or international association. International associations include:
- prev
- Previous section or event; should be wikilinked.
- next
- Next section or event; should be wikilinked.
- website
- Official website only; use {{URL}}. Unofficial websites should be placed in the article's "External links" section.
- number
- The council number.
- portal
- Set to "omit", "off", etc. to suppress the portal link at the bottom of the template (e.g. when it appears more than once within an article).
Multiple entries
When a field such as founder or chiefscout requires multiple entries use one of these methods:
| Markup | Renders as |
|---|---|
{{Infobox WorldScouting
| name = Test
| affiliation = {{plainlist|
* [[World Association of Girl Guides and Girl Scouts]]
* [[World Organization of the Scout Movement]]
}}
}}
|
|
| Markup | Renders as |
|---|---|
{{Infobox WorldScouting
| name = Test
| affiliation = {{flatlist|
* [[World Association of Girl Guides and Girl Scouts]]
* [[World Organization of the Scout Movement]]
}}
}}
|
|
| Markup | Renders as |
|---|---|
{{Infobox WorldScouting
| name = Test
| affiliation =
* [[World Association of Girl Guides and Girl Scouts]]
* [[World Organization of the Scout Movement]]
}}
|
|
Portal
This template adds the Scouting portal to the end of the infobox; do not include {{portal|Scouting}} in articles that use this template.
Microformat
Tracking category
| The above documentation is transcluded from Template:Infobox WorldScouting/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. |