Template:Infobox criminal organization: Difference between revisions
Appearance
Revamp labels and field order; add preceded_by, followed_by, subsets and eliminated_opponents |
Group fields into Origins, Lineage, Profile, Politics and Activity sections; add opaque styling |
||
| Line 2: | Line 2: | ||
{{infobox | {{infobox | ||
| title = {{if empty|{{{name|}}}|{{PAGENAMEBASE}}}} | | title = {{if empty|{{{name|}}}|{{PAGENAMEBASE}}}} | ||
| bodystyle = background-color: #f8f9fa; | |||
| labelstyle = background-color: #f8f9fa; | |||
| datastyle = background-color: #ffffff; | |||
| headerstyle = background-color: #eaecf0; text-align: center; font-weight: bold; | |||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| label1 = Also Known As | | label1 = Native Name | ||
| | | data1 = {{{native_name|}}} | ||
| | | label2 = Also Known As | ||
| | | data2 = {{if empty|{{{also_known_as|}}}|{{{aka|}}}}} | ||
| | | label3 = Named After | ||
| | | data3 = {{{named_after|}}} | ||
| | |||
| | | header4 = {{#if:{{if empty|{{{founder|}}}|{{{founders|}}}|{{{founded_by|}}}|{{{founding_location|}}}|{{{territory|}}}|{{{headquarters|}}}|{{{locations|}}}}}|Origins}} | ||
| | | label5 = Founder | ||
| | | data5 = {{if empty|{{{founder|}}}|{{{founders|}}}|{{{founded_by|}}}}} | ||
| | | label6 = Founding Location | ||
| | | data6 = {{{founding_location|}}} | ||
| | | label7 = Territory | ||
| | | data7 = {{{territory|}}} | ||
| | | label8 = Headquarters | ||
| | | data8 = {{{headquarters|}}} | ||
| | | label9 = Locations | ||
| | | data9 = {{{locations|}}} | ||
| | |||
| | | header10 = {{#if:{{if empty|{{{predecessor|}}}|{{{preceded_by|}}}|{{{parent_organization|}}}|{{{merged_with|}}}|{{{subsets|}}}|{{{splinter_groups|}}}|{{{absorbed|}}}|{{{successor|}}}|{{{followed_by|}}}}}|Lineage}} | ||
| | | label11 = Predecessor(s) | ||
| | | data11 = {{if empty|{{{predecessor|}}}|{{{preceded_by|}}}}} | ||
| | | label12 = Parent Organization | ||
| | | data12 = {{{parent_organization|}}} | ||
| | | label13 = Merged With | ||
| | | data13 = {{{merged_with|}}} | ||
| | | label14 = Subsets | ||
| | | data14 = {{{subsets|}}} | ||
| | | label15 = Splinter Groups | ||
| | | data15 = {{{splinter_groups|}}} | ||
| | | label16 = Absorbed | ||
| | | data16 = {{{absorbed|}}} | ||
| | | label17 = Successor(s) | ||
| | | data17 = {{if empty|{{{successor|}}}|{{{followed_by|}}}}} | ||
| | |||
| | | header18 = {{#if:{{if empty|{{{structure|}}}|{{{ethnicity|}}}|{{{membership|}}}|{{{membership_est|}}}|{{{ideology|}}}|{{{activities|}}}|{{{criminal_activities|}}}}}|Profile}} | ||
| label19 = Structure | |||
| data19 = {{{structure|}}} | |||
| label20 = Ethnicity | |||
| data20 = {{{ethnicity|}}} | |||
| label21 = Membership | |||
| data21 = {{if empty|{{{membership|}}}|{{{membership_est|}}}}} | |||
| label22 = Ideology | |||
| data22 = {{{ideology|}}} | |||
| label23 = Activities | |||
| data23 = {{if empty|{{{activities|}}}|{{{criminal_activities|}}}}} | |||
| header24 = {{#if:{{if empty|{{{leader|}}}|{{{leaders|}}}|{{{notable_members|}}}|{{{puppets|}}}|{{{allies|}}}|{{{rivals|}}}|{{{enemies|}}}|{{{neutralized_persons|}}}|{{{eliminated_opponents|}}}}}|Politics}} | |||
| label25 = Leader | |||
| data25 = {{if empty|{{{leader|}}}|{{{leaders|}}}}} | |||
| label26 = Notable Members | |||
| data26 = {{{notable_members|}}} | |||
| label27 = Puppets | |||
| data27 = {{{puppets|}}} | |||
| label28 = Allies | |||
| data28 = {{{allies|}}} | |||
| label29 = Rivals | |||
| data29 = {{{rivals|}}} | |||
| label30 = Enemies | |||
| data30 = {{{enemies|}}} | |||
| label31 = Neutralized Persons | |||
| data31 = {{if empty|{{{neutralized_persons|}}}|{{{eliminated_opponents|}}}}} | |||
| header32 = {{#if:{{if empty|{{{status|}}}|{{{years_active|}}}|{{{founded_date|}}}|{{{founded|}}}|{{{dissolved_date|}}}|{{{dissolution_cause|}}}}}|Activity}} | |||
| label33 = Status | |||
| data33 = {{{status|}}} | |||
| label34 = Years Active | |||
| data34 = {{{years_active|}}} | |||
| label35 = Founded Date | |||
| data35 = {{if empty|{{{founded_date|}}}|{{{founded|}}}}} | |||
| label36 = Dissolved Date | |||
| data36 = {{{dissolved_date|}}} | |||
| label37 = Dissolution Cause | |||
| data37 = {{{dissolution_cause|}}} | |||
}}{{#if:{{{ethnicity|}}}|{{main other|[[Category:Pages using infobox criminal organization with ethnicity parameter]]}}}}<!-- | }}{{#if:{{{ethnicity|}}}|{{main other|[[Category:Pages using infobox criminal organization with ethnicity parameter]]}}}}<!-- | ||
-->{{#if:{{{rivals|}}}|{{main other|[[Category:Pages using infobox criminal organization with rivals parameter]]}}}}{{#invoke:Check for unknown parameters|check | -->{{#if:{{{rivals|}}}|{{main other|[[Category:Pages using infobox criminal organization with rivals parameter]]}}}}{{#invoke:Check for unknown parameters|check | ||
| Line 47: | Line 89: | ||
| preview = Page using [[Template:Infobox criminal organization]] with unknown parameter "_VALUE_" | | preview = Page using [[Template:Infobox criminal organization]] with unknown parameter "_VALUE_" | ||
| ignoreblank = y | | ignoreblank = y | ||
| activities | aka | allies | also_known_as | caption | criminal_activities | eliminated_opponents | ethnicity | followed_by | founded | founded_by | founder | founders | founding_location | image | image_alt | image_size | leaders | membership | membership_est | name | named_after | native_name | native_name_lang | notable_members | preceded_by | rivals | subsets | territory | years_active | | absorbed | activities | aka | allies | also_known_as | caption | criminal_activities | dissolved_date | dissolution_cause | eliminated_opponents | enemies | ethnicity | followed_by | founded | founded_by | founded_date | founder | founders | founding_location | headquarters | ideology | image | image_alt | image_size | leader | leaders | locations | membership | membership_est | merged_with | name | named_after | native_name | native_name_lang | neutralized_persons | notable_members | parent_organization | preceded_by | predecessor | puppets | rivals | splinter_groups | status | structure | subsets | successor | territory | years_active | ||
}}{{#invoke:Check for conflicting parameters|check | }}{{#invoke:Check for conflicting parameters|check | ||
| template = [[Template:Infobox criminal organization]] | | template = [[Template:Infobox criminal organization]] | ||
| Line 54: | Line 96: | ||
| membership_est; membership | | membership_est; membership | ||
| criminal_activities; activities | | criminal_activities; activities | ||
| | | leader; leaders | ||
| predecessor; preceded_by | |||
| successor; followed_by | |||
| founded_date; founded | |||
| neutralized_persons; eliminated_opponents | |||
| also_known_as; aka | |||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 20:33, 18 August 2026
File:Test Template Info-Icon - Version (2).svg Template documentationviewedithistorypurge
| File:Information icon4.svg | This template adds an automatically generated short description. If the automatic short description is not optimal, override it by adding {{Short description}} at the top of the article. |
| File:Lua-Logo.svg | This template uses Lua: |
Usage
Use this template for real criminal organizations. Fields are grouped under Origins, Lineage, Profile, Politics and Activity. Empty fields and empty groups are omitted. The infobox uses an opaque background so the groups remain visually distinct.
Example
| [[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}]] {{{caption}}} | |
| Native Name | {{{native_name}}} |
|---|---|
| Also Known As | {{{also_known_as}}} |
| Named After | {{{named_after}}} |
| Origins | |
| Founder | {{{founder}}} |
| Founding Location | {{{founding_location}}} |
| Territory | {{{territory}}} |
| Headquarters | {{{headquarters}}} |
| Locations | {{{locations}}} |
| Lineage | |
| Predecessor(s) | {{{predecessor}}} |
| Parent Organization | {{{parent_organization}}} |
| Merged With | {{{merged_with}}} |
| Subsets | {{{subsets}}} |
| Splinter Groups | {{{splinter_groups}}} |
| Absorbed | {{{absorbed}}} |
| Successor(s) | {{{successor}}} |
| Profile | |
| Structure | {{{structure}}} |
| Ethnicity | {{{ethnicity}}} |
| Membership | {{{membership}}} |
| Ideology | {{{ideology}}} |
| Activities | {{{activities}}} |
| Politics | |
| Leader | {{{leader}}} |
| Notable Members | {{{notable_members}}} |
| Allies | {{{allies}}} |
| Rivals | {{{rivals}}} |
| Enemies | {{{enemies}}} |
| Neutralized Persons | {{{neutralized_persons}}} |
| Activity | |
| Status | {{{status}}} |
| Years Active | {{{years_active}}} |
| Founded Date | {{{founded_date}}} |
| Dissolved Date | {{{dissolved_date}}} |
| Dissolution Cause | {{{dissolution_cause}}} |
<syntaxhighlight lang="wikitext" style="overflow:auto;">
</syntaxhighlight>
Compatibility aliases
Older calls remain supported: aka for also_known_as; founders or founded_by for founder; preceded_by for predecessor; followed_by for successor; leaders for leader; membership_est for membership; criminal_activities for activities; puppets for auxiliaries; founded for founded_date; and eliminated_opponents for neutralized_persons.
TemplateData
<templatedata> {
"format": "block",
"params": {
"name": {"label": "Name", "type": "string"},
"native_name": {"label": "Native Name", "type": "string"},
"also_known_as": {"label": "Also Known As", "aliases": ["aka"], "type": "string"},
"named_after": {"label": "Named After", "type": "string"},
"image": {"label": "Image", "type": "wiki-file-name"},
"image_size": {"label": "Image size", "type": "string"},
"image_alt": {"label": "Image alt text", "type": "string"},
"caption": {"label": "Caption", "type": "string"},
"founder": {"label": "Founder", "aliases": ["founders", "founded_by"], "type": "string"},
"founding_location": {"label": "Founding Location", "type": "string"},
"territory": {"label": "Territory", "type": "string"},
"headquarters": {"label": "Headquarters", "type": "string"},
"locations": {"label": "Locations", "type": "string"},
"predecessor": {"label": "Predecessor(s)", "aliases": ["preceded_by"], "type": "string"},
"parent_organization": {"label": "Parent Organization", "type": "string"},
"merged_with": {"label": "Merged With", "type": "string"},
"subsets": {"label": "Subsets", "type": "string"},
"splinter_groups": {"label": "Splinter Groups", "type": "string"},
"absorbed": {"label": "Absorbed", "type": "string"},
"successor": {"label": "Successor(s)", "aliases": ["followed_by"], "type": "string"},
"structure": {"label": "Structure", "type": "string"},
"ethnicity": {"label": "Ethnicity", "type": "string"},
"membership": {"label": "Membership", "aliases": ["membership_est"], "type": "string"},
"ideology": {"label": "Ideology", "type": "string"},
"activities": {"label": "Activities", "aliases": ["criminal_activities"], "type": "string"},
"leader": {"label": "Leader", "aliases": ["leaders"], "type": "string"},
"notable_members": {"label": "Notable Members", "type": "string"},
"auxiliaries": {"label": "Auxiliaries", "aliases": ["puppets"], "type": "string"},
"allies": {"label": "Allies", "type": "string"},
"rivals": {"label": "Rivals", "type": "string"},
"enemies": {"label": "Enemies", "type": "string"},
"neutralized_persons": {"label": "Neutralized Persons", "aliases": ["eliminated_opponents"], "type": "string"},
"status": {"label": "Status", "type": "string"},
"years_active": {"label": "Years Active", "type": "string"},
"founded_date": {"label": "Founded Date", "aliases": ["founded"], "type": "string"},
"dissolved_date": {"label": "Dissolved Date", "type": "string"},
"dissolution_cause": {"label": "Dissolution Cause", "type": "string"}
},
"paramOrder": ["name", "native_name", "also_known_as", "named_after", "image", "image_size", "image_alt", "caption", "founder", "founding_location", "territory", "headquarters", "locations", "predecessor", "parent_organization", "merged_with", "subsets", "splinter_groups", "absorbed", "successor", "structure", "ethnicity", "membership", "ideology", "activities", "leader", "notable_members", "auxiliaries", "allies", "rivals", "enemies", "neutralized_persons", "status", "years_active", "founded_date", "dissolved_date", "dissolution_cause"]
} </templatedata>