Template:Infobox criminal organization/doc: Difference between revisions
Appearance
Copied from English Wikipedia revision 1339090259; https://en.wikipedia.org/w/index.php?oldid=1339090259 provides source history/attribution (CC BY-SA 4.0/GFDL) |
Document local infobox labels, ordering and added parameters |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{Auto short description}} | {{Auto short description}} | ||
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} | {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}} | ||
== Usage == | == Usage == | ||
Use this template for real criminal organizations. The legacy <code>native_name</code> parameter now displays as '''Also Known As'''; <code>also_known_as</code> or <code>aka</code> may also be used. | |||
<syntaxhighlight lang="wikitext" style="overflow:auto;"> | <syntaxhighlight lang="wikitext" style="overflow:auto;"> | ||
{{Infobox criminal organization | {{Infobox criminal organization | ||
| name | | name = | ||
| native_name = <!-- displayed as Also Known As; aliases: also_known_as, aka --> | |||
| image = <!-- filename only --> | |||
| image | | image_size = | ||
| image_size | | image_alt = | ||
| image_alt | | caption = | ||
| caption | | founded = | ||
| founded | | founder = <!-- aliases: founders, founded_by --> | ||
| founder | | named_after = | ||
| named_after | | founding_location = | ||
| founding_location = | | preceded_by = | ||
| years_active | | years_active = | ||
| territory | | followed_by = | ||
| ethnicity | | territory = | ||
| membership | | ethnicity = | ||
| leaders | | membership = <!-- use membership_est for an estimate --> | ||
| activities | | leaders = | ||
| | | notable_members = | ||
| | | activities = <!-- alias: criminal_activities --> | ||
| | | subsets = | ||
| | | allies = | ||
| rivals = | |||
| eliminated_opponents = | |||
}} | }} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== TemplateData == | == TemplateData == | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"format": "block", | |||
"params": { | |||
"name": {"label": "Name", "type": "string", "description": "Organization name; defaults to the page title"}, | |||
"native_name": {"label": "Also Known As", "aliases": ["also_known_as", "aka"], "type": "string", "description": "Other names or aliases used by the organization"}, | |||
"native_name_lang": {"label": "Alias language code", "type": "string", "description": "Optional language code retained for compatibility"}, | |||
"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"}, | |||
"founded": {"label": "Founded", "type": "string"}, | |||
"founder": {"label": "Founder", "aliases": ["founders", "founded_by"], "type": "string"}, | |||
"named_after": {"label": "Named after", "type": "string"}, | |||
"founding_location": {"label": "Founding location", "type": "string"}, | |||
"preceded_by": {"label": "Preceded by", "type": "string"}, | |||
"years_active": {"label": "Years active", "type": "string"}, | |||
"followed_by": {"label": "Followed By", "type": "string"}, | |||
"territory": {"label": "Territory", "type": "string"}, | |||
"ethnicity": {"label": "Ethnicity", "type": "string"}, | |||
"membership": {"label": "Membership", "aliases": ["membership_est"], "type": "string"}, | |||
"leaders": {"label": "Leaders", "type": "string"}, | |||
"notable_members": {"label": "Notable members", "type": "string"}, | |||
"activities": {"label": "Activities", "aliases": ["criminal_activities"], "type": "string"}, | |||
"subsets": {"label": "Subsets", "type": "string"}, | |||
"allies": {"label": "Allies", "type": "string"}, | |||
"rivals": {"label": "Rivals", "type": "string"}, | |||
"eliminated_opponents": {"label": "Eliminated Opponents", "type": "string"} | |||
}, | |||
"paramOrder": ["name", "native_name", "native_name_lang", "image", "image_size", "image_alt", "caption", "founded", "founder", "named_after", "founding_location", "preceded_by", "years_active", "followed_by", "territory", "ethnicity", "membership", "leaders", "notable_members", "activities", "subsets", "allies", "rivals", "eliminated_opponents"] | |||
} | } | ||
</templatedata> | </templatedata> | ||
== | == Field order == | ||
The rendered rows are ordered as follows: Also Known As; founding information; Preceded by; Years active; Followed By; Territory; Ethnicity; Membership; Leaders; Notable members; Activities; Subsets; Allies; Rivals; Eliminated Opponents. Empty fields are omitted. | |||
<includeonly> | |||
<includeonly | |||
[[Category:Law infobox templates|Criminal organization]] | [[Category:Law infobox templates|Criminal organization]] | ||
[[Category:Crime templates|Criminal organization]] | [[Category:Crime templates|Criminal organization]] | ||
[[Category:Organization infobox templates|Criminal]] | [[Category:Organization infobox templates|Criminal]] | ||
</includeonly> | |||
Revision as of 19:30, 18 August 2026
Template:Mbox__EXPECTED_UNCONNECTED_PAGE__
| 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. The legacy native_name parameter now displays as Also Known As; also_known_as or aka may also be used.
<syntaxhighlight lang="wikitext" style="overflow:auto;">
</syntaxhighlight>
TemplateData
<templatedata> {
"format": "block",
"params": {
"name": {"label": "Name", "type": "string", "description": "Organization name; defaults to the page title"},
"native_name": {"label": "Also Known As", "aliases": ["also_known_as", "aka"], "type": "string", "description": "Other names or aliases used by the organization"},
"native_name_lang": {"label": "Alias language code", "type": "string", "description": "Optional language code retained for compatibility"},
"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"},
"founded": {"label": "Founded", "type": "string"},
"founder": {"label": "Founder", "aliases": ["founders", "founded_by"], "type": "string"},
"named_after": {"label": "Named after", "type": "string"},
"founding_location": {"label": "Founding location", "type": "string"},
"preceded_by": {"label": "Preceded by", "type": "string"},
"years_active": {"label": "Years active", "type": "string"},
"followed_by": {"label": "Followed By", "type": "string"},
"territory": {"label": "Territory", "type": "string"},
"ethnicity": {"label": "Ethnicity", "type": "string"},
"membership": {"label": "Membership", "aliases": ["membership_est"], "type": "string"},
"leaders": {"label": "Leaders", "type": "string"},
"notable_members": {"label": "Notable members", "type": "string"},
"activities": {"label": "Activities", "aliases": ["criminal_activities"], "type": "string"},
"subsets": {"label": "Subsets", "type": "string"},
"allies": {"label": "Allies", "type": "string"},
"rivals": {"label": "Rivals", "type": "string"},
"eliminated_opponents": {"label": "Eliminated Opponents", "type": "string"}
},
"paramOrder": ["name", "native_name", "native_name_lang", "image", "image_size", "image_alt", "caption", "founded", "founder", "named_after", "founding_location", "preceded_by", "years_active", "followed_by", "territory", "ethnicity", "membership", "leaders", "notable_members", "activities", "subsets", "allies", "rivals", "eliminated_opponents"]
} </templatedata>
Field order
The rendered rows are ordered as follows: Also Known As; founding information; Preceded by; Years active; Followed By; Territory; Ethnicity; Membership; Leaders; Notable members; Activities; Subsets; Allies; Rivals; Eliminated Opponents. Empty fields are omitted.