You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Template:Navigation sidebar/doc: Difference between revisions

From Wikitech-static
Jump to navigation Jump to search
imported>Krinkle
No edit summary
 
imported>Krinkle
No edit summary
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{Uses TemplateStyles|Template:Navigation_sidebar/styles.css}}
{{Uses TemplateStyles|Template:Navigation_sidebar/styles.css}}{{clear}}
== Example ==
== Example ==
{{Navigation sidebar
{{Navigation sidebar
| title = Title
| title = Unicorn


| heading1 = Heading
| heading1 = Mythology
| content1 =
| content1 =
* Content
* [[w:Monoceros (legendary creature)|Monoceros]]
* Goes
* [[w:Legendary creature|Legendary creature]]
* Here
* [[w:Kingdom of Scotland|Kingdom of Scotland]]


| name = My_Template
| name = My_Template
Line 15: Line 15:
<pre>
<pre>
{{Navigation sidebar
{{Navigation sidebar
| title = Title
| title = Unicorn


| heading1 = Heading
| heading1 = Mythology
| content1 =
| content1 =
* Content
* [[w:Monoceros (legendary creature)|]]
* Goes
* [[w:Legendary creature|]]
* Here
* [[w:Kingdom of Scotland|]]


| name = My_Template
| name = My_Template

Revision as of 13:31, 10 June 2022

Lua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.

Example

{{Navigation sidebar
| title = Unicorn

| heading1 = Mythology
| content1 =
* [[w:Monoceros (legendary creature)|]]
* [[w:Legendary creature|]]
* [[w:Kingdom of Scotland|]]

| name = My_Template
}}

Usage

<templatedata> { "params": { "style": { "description": "E.g. set a custom max-width", "type": "string" }, "class": { "description": "E.g. set \"plainlinks\"", "type": "string" }, "topimage": { "label": "Top image", "description": "Optional image on top, above the title.",

"example": "

Example.png

",

"type": "content" }, "title": { "label": "Title", "type": "string", "suggested": true }, "image": { "label": "Image", "description": "Optional image, between title and heading1",

"example": "

Example.png

",

"type": "content" }, "heading1": { "label": "Heading 1", "type": "string", "suggested": true }, "content1": { "label": "Content 1", "example": "* Sandbox", "type": "content", "suggested": true }, "navbar": { "label": "Display meta navigation", "description": "Set to \"off\" to remove the view-discussion-edit meta links at the end of the sidebar", "type": "string", "suggestedvalues": [ "off", " " ] }, "name": { "label": "Template self name", "description": "Name of the template for the meta navigation links", "example": "My_template_name", "type": "string", "suggested": true }, "above": { "label": "Content above", "type": "content" }, "heading2": { "label": "Heading 2", "type": "string" }, "content2": { "label": "Content 2", "type": "content" }, "heading3": { "type": "string" }, "content3": { "type": "content" }, "heading4": { "type": "string" }, "content4": { "type": "content" }, "heading5": { "type": "string" }, "content5": { "type": "content" }, "heading6": { "type": "string" }, "content6": { "type": "content" }, "heading7": { "type": "string" }, "content7": { "type": "content" }, "heading8": { "type": "string" }, "content8": { "type": "content" }, "heading9": { "type": "string" }, "content9": { "type": "content" }, "below": { "label": "Content below", "type": "content" } }, "paramOrder": [ "name", "topimage", "title", "image", "above", "heading1", "content1", "heading2", "content2", "heading3", "content3", "heading4", "content4", "heading5", "content5", "heading6", "content6", "heading7", "content7", "heading8", "content8", "heading9", "content9", "below", "navbar", "class", "style" ] } </templatedata>