మూస:Routemap/doc: కూర్పుల మధ్య తేడాలు

దిద్దుబాటు సారాంశం లేదు
దిద్దుబాటు సారాంశం లేదు
పంక్తి 3:
{{Lua|Module:Routemap}}
This is a [[Wikipedia:Lua|Lua]]-based template to substitute the originally parser-function-based [[Wikipedia:Route diagram template]] because maps created by this one load faster.
== Usage Templatedata==
 
==Basic==
<templatedata>{
"description": "Template for displaying diagram composed of icon images and text labels in uniform style.",
"params": {
"title": {
"label": "Infobox title",
"type": "string",
"required": false,
"default": "",
"description": "Official title of the system",
"aliases": ["title"]
},
"title color": {
"label": "Title font color",
"type": "string",
"required": false,
"default": "#FFFFFF",
"description": "Title font color. Use high contrast color to the title background color",
"aliases": ["title color"]
},
"title bg color": {
"label": "Title background color",
"type": "string",
"required": false,
"default": "#27404E",
"description": "Title background color. Use high contrast color to the title font color",
"aliases": ["title bg color"]
},
"collapsible": {
"label": "Collapsibility",
"type": "string",
"required": false,
"description": "Whether the whole infobox is collapsible or not",
"aliases": ["collapsible"]
},
"collapse": {
"label": "Collapsing state",
"type": "string",
"required": false,
"description": "Collapsing state. Collapse the box by default: «collapsed»",
"aliases": []
},
"navbar": {
"label": "Template name for Navbar",
"type": "string",
"required": false,
"default": "",
"description": "Type the diagram template page name so the Navbar template will appear and link to the page",
"aliases": ["tnavbar"]
},
"navbar pos": {
"label": "Position of the Navbar",
"type": "string",
"required": false,
"default": "",
"description": "Position of the Navbar template. Float to left in the title bar by default; «1» for top-right corner of the map (just under the title bar); «2» for middle of the bottom of the map",
"aliases": []
},
"legend": {
"label": "Legend appearance",
"type": "string/wiki-page-name",
"required": false,
"default": "Template:Railway line legend",
"description": "Alias of the legend link. It can be «bus», «canal», «footpath» or «track». «0» or «no» for no legend at all",
"aliases": []
},
"float": {
"label": "Floating state",
"type": "string",
"required": false,
"default": "right",
"description": "Floating state of the whole box: «right» by default; optionally «left» or «none»",
"aliases": []
},
"bg": {
"label": "Background color",
"type": "string",
"required": false,
"default": "#F9F9F9",
"description": "Background color of the whole map area",
"aliases": []
},
"style": {
"label": "CSS style values",
"type": "string",
"required": false,
"description": "Additional CSS style definition of the whole infobox",
"aliases": []
},
"top": {
"label": "Top note",
"type": "string",
"required": false,
"description": "Space for optional note or infobox above the map",
"aliases": []
},
"footnote": {
"label": "Bottom note",
"type": "string",
"required": false,
"description": "Space for optional note or infobox below the map",
"aliases": ["bottom"]
},
"text-width": {
"label": "Width of map text cell",
"type": "string",
"required": false,
"default": "",
"description": "Extend the width of the map text cell so the collapsible section within the map does not break",
"aliases": ["tw"]
},
"map": {
"label": "Map markups",
"description": "Map data which uses specific markup/separators to load icon image and arrange the text in the uniform style",
"required": true,
"type": "string",
"aliases": ["1"]
}
}
}</templatedata>
== Map parameter ==
===Basic===
icon id\icon id\icon id~~dist./time~~main text~~remark~~right remark
or
Line 32 ⟶ 153:
*Separating text cells requires at least an empty space, otherwise it will be treated as [[Wikipedia:signature|signature]].
 
===Icon overlay, icon link, background color and colspan===
{|
|<pre><nowiki>{{Routemap
Line 74 ⟶ 195:
*The background color separator (<code>~~bg=</code>) requires 4 sets of preceding text separators to be recognizable even if there is no text on that row whatsoever.
 
===Collapsible===
{|
|<pre><nowiki>{{Routemap
Line 136 ⟶ 257:
*Change "''collapsed''" to "''nil''" will change the default state of the collapible to uncollapsed.
 
===Collapsible replacement===
{|
|<pre><nowiki>{{Routemap
Line 202 ⟶ 323:
*If you want to hide the replaced row after expanding the collapsible, use icon {{bsq|leer}} as empty filler as in example 4.2.
 
===Dual text cell===
left-left remark~~left remark~~left main text~~left dist./time! !icon id~~right dist./time~~right main text~~right remark~~right-right remark
or
Line 231 ⟶ 352:
*If there is no "wave-wave" (<code>~~</code>) separator to the left of "exclamation mark-space-exclamation mark", the text to the left of icon cells will be displayed in '''left main text''' cell.
 
===Dual text cell collapsible===
{|
|<pre><nowiki>{{Routemap
Line 295 ⟶ 416:
*If the empty icon cell of the collapsible row is being squashed, use empty icon {{bsq|leer}} to fixate the icon columns.
 
===[[Template:BSsplit|BSsplit]], [[Template:BSto|BSto]] templates===
If you use these templates, the vertical line separator (<code>|</code>) right after the template name must be converted to {{tl|!}} otherwise you will get a mess of unprocessed markups.
{|
"https://te.wikipedia.org/wiki/మూస:Routemap/doc" నుండి వెలికితీశారు