Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Special pages
Random page
Wiki Discord
Contents
Neighbors
Galaxy
> Hexia
> Norvan
> Pashah
> Taffeh
Creatures
> Insects
> Fishes
> Shore-Dwellers
Items
> Dishes
> Furniture
Game Systems
> Dress Up
> Luca Arbor
> Loomix Footprints
> Loomix Vehicle Services
> Loomix Homes
Search
Search
Appearance
Log in
Personal tools
Log in
Editing
Template
:
Navbox Automatic Groups/doc
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation/Header}} Generates multiple Navbox group/list rows from a semicolon separated group list. Supports normal custom lists and dynamically generated Navbox DPL lists. Do not use as standalone template, insert in a {{T|Navbox}} using {{F|automatic_groups}} parameter. ==Syntax== {{T|Navbox Automatic Groups|v1=base=Base Group|v2=grous=Semicolon separated List|v3=list=plain text|v4=list_type=dpl|block=1}} * {{F|base}} : The base group used by {{F|[nogroup]}}. Required when {{F|[nogroup]}} is present. * {{F|groups}} : A semicolon-seFted list of groups to generate. Use {{F|[nogroup]}} to create a list row without a group label. The {{F|[nogroup]}} entry uses {{F|base}} as its group value. * {{F|list_type}} : Sets the type of list to generate. When set to {{F|dpl}}, the module constructs and expands a {{t|Navbox DPL}} call using the remaining parameters. If omitted or set to another value, {{F|list}} is used instead. * {{F|list}} : The default content for each generated list. In normal mode, {{F|%%group%%}} is replaced with the current group name. ** {{F|list_<group>}} : Overrides {{F|list}} for a specific group. The group name is matched case-insensitively. For {{F|[nogroup]}}, use {{F|list_nogroup}}. * {{F|category}} : In {{F|dpl}} mode, the DPL category to query. {{F|%%group%%}} is replaced with the current group name. * {{F|uses}} : In {{F|dpl}} mode, passed to {{t|Navbox DPL}} as the {{F|uses}} parameter. * {{F|format}} : In {{F|dpl}} mode, passed to {{t|Navbox DPL}} as the {{F|format}} parameter. * {{F|start}} : The number of the first generated Navbox row. Defaults to {{F|1}}. ;DPL parameters When {{F|list_type|dpl}} is used, parameters other than {{F|groups}}, {{F|base}}, {{F|list}}, {{F|list_type}}, {{F|start}}, and {{F|list_<group>}} overrides are passed to {{t|Navbox DPL}}. This allows other {{t|Navbox DPL}} parameters to be used without additional support in this module. The {{F|%%group%%}} placeholder can be used in DPL parameters and is replaced with the current group name. For {{F|[nogroup]}}, the module automatically adds {{F|not1}}, {{F|not2}}, etc. for all named groups, so those exclusions do not need to be specified manually. ==Examples== ===Basic=== {{T|Navbox Automatic Groups|p1=base=Headwear|p2=groups=Hat;Head Accessory;Helmet;[nogroup]|p3=list=TEST %%group%%|block=1}} {{Navbox |title = Test |automatic_groups ={{Navbox Automatic Groups|base=Headwear|groups=Hat;Head Accessory;Helmet;[nogroup]|list=TEST %%group%%}} }} ===Using DPL=== {{T|Navbox Automatic Groups|p1=groups=Hat;Head Accessory;Helmet;[nogroup]|p2=base=Headwear|p3=list_type=dpl|p4=category=Clothing Items by Quality<&>%%group%%|p5=uses=Template:Clothing Infobox|p6=format=card|block=1}} {{Navbox |title = Test |automatic_groups = {{Navbox Automatic Groups|groups=Hat;Head Accessory;Helmet;[nogroup]|base=Headwear|list_type=dpl|category=Clothing Items by Quality<&>%%group%%|uses=Template:Clothing Infobox|format=card}} }} ==Template Data== <!-- Edit the Template Data through the "MANAGE TEMPLATEDATA" button at the top left --><templatedata> { "params": { "groups": { "label": "Groups", "description": "Semicolon-seFted list of groups to generate. Use [nogroup] for a generated row without a group label.", "required": true, "type": "string" }, "base": { "label": "Base", "description": "Base group used by [nogroup]. Required when [nogroup] is present.", "type": "string" }, "list": { "label": "List", "description": "Default content for each generated list. In normal mode, %%group%% is replaced with the current group name.", "type": "content" }, "list_type": { "label": "List type", "description": "Set to dpl to construct and expand a Navbox DPL list. If omitted or set to another value, the list parameter is used.", "type": "string" }, "category": { "label": "Category", "description": "DPL category. Used when list_type is dpl. %%group%% is replaced with the current group name.", "type": "string" }, "uses": { "label": "Uses", "description": "Passed to Navbox DPL as the uses parameter when list_type is dpl.", "type": "string" }, "format": { "label": "Format", "description": "Passed to Navbox DPL as the format parameter when list_type is dpl.", "type": "string" }, "start": { "label": "Start", "description": "Index of the first generated Navbox row. Defaults to 1.", "type": "number", "default": "1" }, "list_<group>": { "label": "Group list override", "description": "Overrides the default list for a specific group. Replace <group> with the group name, for example list_Hat or list_nogroup.", "type": "content" } }, "description": "Generates multiple Navbox group/list rows from a semicolon-seFted group list. Supports normal custom lists and dynamically generated Navbox DPL lists.", "paramOrder": [ "base", "groups", "list", "list_type", "category", "uses", "format", "start", "list_<group>" ], "format": "block" } </templatedata>
Summary:
Please note that all contributions to The Petit Planet Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see
Petit Planet Wiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Preview page with this template
Below are commonly used wikitext from
MediaWiki:Edittools
. Click on any to insert them in the edit box.
File Pages
==Summary==
==Licensing==
{{Fairuse}}
{{File|}}
Dynamic Page List
¦
²
«
»
²{¦}²
«»
«/»
«!----»
Array in DPL
¹
^2{
}^2
^2{¹}^2
Parser Functions
{{#if:||}}
{{#if:<condition>|<result if true>|<result if false>}}
{{#ifeq:|||}}
{{#ifeq:<text1>|<text2>|<result if text1=text2>|<result if text1≠text2>}}
{{#expr:}}
{{#expr:<mathematical expression>}}
{{#switch:||#default=}}
{{#switch:<text1>|<text2>=<result if text1=text2>|<text3>=<result if text1=text3>|#default=<result if no valid match>}}
{{#replace:||}}
{{#replace:<text1>|<plain text to find in text1>|<plain text to insert in place of the text found>}}
{{#titleparts:}}
{{#replace:<page name>}}
{{#tag:|}}
{{#tag:<name of html tag>|<content inside html tag>}}
Markup
{{}}
|
[]
[[]]
[[Category:]]
#REDIRECT [[]] [[Category:Redirect Pages]]
<code></code>
<includeonly></includeonly>
<noinclude></noinclude>
<nowiki></nowiki>
<!---->
<br>
§
Notices
{{Stub|}}
{{Stub Dialogue}}
{{Upcoming}}
{{Under Construction}}
{{Placeholder|}}
Magic Words
{{!}}
{{formatnum:}}
{{lc:}}
{{uc:}}
{{PAGENAME}}
{{FULLPAGENAME}}
{{ROOTPAGENAME}}
{{BASEPAGENAME}}
{{SUBPAGENAME}}
{{DISPLAYTITLE:|noreplace}}
__TOC__
__NOTOC__
__EXPECTUNUSEDCATEGORY__
__HIDDENCAT__
HTML Entities
—
,
­
Pages included on this page:
Template:Card List
(
edit
)
Template:Documentation/Header
(
edit
)
Template:Documentation/styles.css
(
edit
)
Template:F
(
edit
)
Template:Navbox
(
edit
)
Template:Navbox Automatic Groups
(
edit
)
Template:Navbox DPL
(
edit
)
Template:T
(
edit
)
Module:Arguments
(
edit
)
Module:Arguments/i18n
(
edit
)
Module:Array
(
edit
)
Module:Card
(
edit
)
Module:Card List
(
edit
)
Module:CentralData
(
edit
)
Module:CentralData/Accessories
(
edit
)
Module:CentralData/Aquatic Creatures
(
edit
)
Module:CentralData/Basic Furniture
(
edit
)
Module:CentralData/Bottoms
(
edit
)
Module:CentralData/Crops
(
edit
)
Module:CentralData/Currencies
(
edit
)
Module:CentralData/Decorations
(
edit
)
Module:CentralData/Dishes
(
edit
)
Module:CentralData/Flowers
(
edit
)
Module:CentralData/Footwear
(
edit
)
Module:CentralData/Functional
(
edit
)
Module:CentralData/Greenery
(
edit
)
Module:CentralData/Headwear
(
edit
)
Module:CentralData/Hoisery
(
edit
)
Module:CentralData/Housing
(
edit
)
Module:CentralData/Interior Fixtures
(
edit
)
Module:CentralData/Items
(
edit
)
Module:CentralData/Land Creatures
(
edit
)
Module:CentralData/Luca Fruit
(
edit
)
Module:CentralData/Miscellaneous
(
edit
)
Module:CentralData/Neighbors
(
edit
)
Module:CentralData/One-Pieces
(
edit
)
Module:CentralData/Others
(
edit
)
Module:CentralData/Outdoor Decor
(
edit
)
Module:CentralData/Reactions
(
edit
)
Module:CentralData/Redirects
(
edit
)
Module:CentralData/Sets
(
edit
)
Module:CentralData/Shore-Dwellers
(
edit
)
Module:CentralData/Styling
(
edit
)
Module:CentralData/Titles
(
edit
)
Module:CentralData/ToolSkin
(
edit
)
Module:CentralData/Tools
(
edit
)
Module:CentralData/Tops
(
edit
)
Module:Common/i18n
(
edit
)
Module:Config
(
edit
)
Module:Documentation
(
edit
)
Module:Documentation/config
(
edit
)
Module:Documentation/i18n
(
edit
)
Module:Entrypoint
(
edit
)
Module:Exists
(
edit
)
Module:Fallbacklist
(
edit
)
Module:Feature
(
edit
)
Module:Formatting
(
edit
)
Module:I18n
(
edit
)
Module:Languages
(
edit
)
Module:Navbox
(
edit
)
Module:Navbox Automatic Groups
(
edit
)
Module:TableTools
(
edit
)
Module:TemplateData
(
edit
)
Module:Yesno
(
edit
)
This page is a member of 2 hidden categories:
Category:Pages using DynamicPageList4 parser function
Category:Pages using DynamicPageList4
Search
Search
Editing
Template
:
Navbox Automatic Groups/doc
Add topic