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
Create account
Log in
Personal tools
Create account
Log in
Editing
Template
:
Nested Lists/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. Once you make an edit, a temporary account will be created for you.
Learn more
.
Log in
or
create an account
to continue receiving notifications after this account expires, and to access other features.
Anti-spam check. Do
not
fill this in!
{{Documentation/Header}} This template creates a nested list from a semicolon-separated input, with different symbols used to specify the indentation level. It can optionally link items to existing pages and display icons given a specific file name format or custom image file name. ==Syntax== {{T|Nested Lists|v1=Item 1;Item 2;//Item 2.1;//Item 2.2;$$Item 2.2.1;Item 3|v2=link=1|v3=icon=Icon Furniture {item}.png|v4=icon_size=25}} * The first parameter contains the list items, separated by semicolons {{F|;}}. * The indentation of each item is determined by the symbol immediately before it: ** {{F|;}} — level 0 ** {{F|//}} — level 1 ** {{F|$$}} — level 2 ** {{F|%%}} — level 3 ** {{F|&&}} — level 4 * {{F|1=link=1}} checks whether each item's page exists and links the item when it does. * {{F|1=icon=}} adds an icon to every item. {{F|{item}<nowiki></nowiki>}} is replaced with the item's page name. * {{F|1=icon_size=}} sets the icon size in pixels. The default is 25. * {{F|[no]}} at the beginning of an item disables its icon. * {{F|[((custom icon))]}} at the beginning of an item disables its icon. * An item can use {{F|page<nowiki>{{!}}</nowiki>label}} to specify a page separately from its displayed label. ==Examples== ===Basic List=== {{T|Nested Lists|p1=Item 1;Item 2;//Item 2.1;//Item 2.2;$$Item 2.2.1;Item 3|_Y_=1}} ===With Links=== {{T|Nested Lists|p1=Hexia;//Dorjelang;//Yunguo;$$Red;Other Galaxy|p2=link=1|_Y_=1}} ===With Icons=== {{T|Nested Lists|p1=Basic Furniture;//Beds;//Seating|p2=icon=Icon Furniture {item}.png|_Y_=1}} ===With Links and Icons=== {{T|Nested Lists|p1=Basic Furniture;//Beds;//Seating|p2=link=1|p3=icon=Icon Furniture {item}.png|_Y_=1}} ===Custom Icon Size=== {{T|Nested Lists|p1=Basic Furniture;//Beds;//Seating|p2=icon=Icon Furniture {item}.png|p3=icon_size=40|_Y_=1}} ===Disabling an Icon=== {{T|Nested Lists|p1=Basic Furniture;//[no]Beds;//Seating|p2=icon=Icon Furniture {item}.png|_Y_=1}} ===Custom Icon=== {{T|Nested Lists|p1=Basic Furniture;//Beds;//Seating;$$[Hexia Icon.png]Hexia|_Y_=1}} ===Custom Link Labels=== {{T|Nested Lists|p1=Beds{{!}}Wooden Chair;Tables{{!}}Dining Table;//Tables{{!}}Small Table|p2=link=1|_Y_=1}} ===Combining Features=== {{T|Nested Lists|p1=[no]Furniture;Seating{{!}}Wooden Chair;//Tables{{!}}Dining Table;$$[no]Lamp{{!}}Desk Lamp;%%[no]Special Item|p2=link=1|p3=icon=Icon Furniture {item}.png|p4=icon_size=30|_Y_=1}} ==Template Data== <!-- Edit the Template Data through the "MANAGE TEMPLATEDATA" button at the top left --><templatedata> { "params": { "1": { "label": "List", "description": "Semicolon-separated list of items. Use //, $$, %%, or && before an item to set its indentation level.", "required": true, "type": "string" }, "link": { "label": "Link", "description": "If set to 1, checks whether each item's page exists and links the item when it does.", "type": "boolean", "default": "0" }, "icon": { "label": "Icon", "description": "Icon filename format to use for every item. Use {item} as a placeholder for the item's page name.", "type": "string" }, "icon_size": { "label": "Icon size", "description": "Size of the icons in pixels. Defaults to 25.", "type": "number", "default": "25" } }, "description": "Creates a nested list from a semicolon-separated input. The symbols //, $$, %%, and && specify indentation levels. Items can optionally be linked to existing pages and given automatically generated icons." } </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:Documentation/Header
(
edit
)
Template:Documentation/styles.css
(
edit
)
Template:F
(
edit
)
Template:Nested Lists
(
edit
)
Template:T
(
edit
)
Module:Arguments
(
edit
)
Module:Arguments/i18n
(
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:Nested Lists
(
edit
)
Module:TableTools
(
edit
)
Module:Yesno
(
edit
)
Search
Search
Editing
Template
:
Nested Lists/doc
Add topic