Difference between revisions of "Template:Subpages"
(Tag: 2017 source edit) |
(Tag: 2017 source edit) |
This template lists all subpages of a wiki page. The result is displayed as a bulleted list and can be set to 1-3 columns.
The template file (Template:Subpages can be downloaded as part of the template package.
The following parameters can be set in visual editing mode:
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Namespace | parentnamespace |
no description
Leave blank for the Main namespace
|
Unknown | optional |
| Parent page | parentpage |
no description
The page that is one level above the pages you want to display
|
Unknown | optional |
| Column layout | cols |
yes: creates 3 column layou, no: creates no columns
|
String | optional |
| Bullets | bullets |
no: removes bullets from the list
|
String | optional |
<includeonly> <templatestyles src="Subpages/styles.css" /><div class="{{#ifeq: {{{cols|}}}|no|template-subpages|}} {{#ifeq: {{{bullets|}}}|no|no-bullets|}}">{{Special:Prefixindex|prefix={{{parentnamespace}}}:{{{parentpage}}}/|hideredirects=1|stripprefix=1}}</div></includeonly> <noinclude> This template lists all subpages of a wiki page. The result is displayed as a bulleted list and can be set to 1-3 columns. The template file (''Template:Subpages'' can be downloaded as part of the [[Manual:Template/Template package|template package]]. [[File:template-download-Subpages.PNG|550x550px|center|alt=screenshot of Subpages template|thumb|The subpages template]] <templatedata> { "params": { "parentnamespace": { "label": "Namespace" , "description": "Leave blank for the Main namespace" }, "parentpage": { "label": "Parent page" , "description": "The page that is one level above the pages you want to display" }, "cols": { "label": "Column layout", "description": "yes: creates 3 column layou, no: creates no columns", "type": "string", "example": "yes, no", "default": "yes" }, "bullets": { "label": "Bullets", "description": "no: removes bullets from the list", "example": "yes, no", "type": "string", "default": "yes" } }, "description": "The following parameters can be set in visual editing mode:" } </templatedata> </noinclude>
| Line 12: | Line 12: | ||
"params": { | "params": { | ||
"parentnamespace": { | "parentnamespace": { | ||
| − | "label": "Namespace" | + | "label": "Namespace", |
| + | "description": "Leave blank for the Main namespace" | ||
}, | }, | ||
"parentpage": { | "parentpage": { | ||
| − | "label": "Parent page" | + | "label": "Parent page", |
| + | "description": "The page that is one level above the pages you want to display" | ||
}, | }, | ||
"cols": { | "cols": { | ||