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

Template:Navigation sidebar/doc

From Wikitech-static
< Template:Navigation sidebar
Revision as of 19:16, 19 July 2022 by imported>Tacsipacsi (+{{{float}}}, TemplateStyles should be preferred over {{{style}}})
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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; prefer TemplateStyles instead if possible (use the “class” parameter to add a class for TemplateStyles)", "type": "string" }, "class": { "description": "E.g. set \"plainlinks\"", "type": "string" }, "float": { "label": "float", "description": "Which side to float the sidebar to. The default depends on the page language (which is always English on Wikitech, meaning right, but may be different if this template is copied to other wikis)", "type": "line", "suggestedvalues": [ "left", "right", "none" ] }, "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", "float" ] } </templatedata>