Content deleted Content added
Copy Template:Markup/doc. See that page history for attribution. |
padding |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1:
{{Documentation subpage}}
{{TemplateStyles|Template:Markup/styles.css}}
<!-- Categories where indicated at the bottom of this page, please. -->
{{TOC right |limit=2}}
This template is used to present Wikitext markup
==Usage==
This:
<pre>
{{
</pre>
Produces this:
{{
In many cases, the markup for both columns are identical, but there are instances where this may need to differ.
==Examples==
===Multiple rows===
{{Markup HTML Rendered
|
|
|
}}
===With custom title and column headers===
{{Markup HTML Rendered
| title=How to write about foxes and dogs in Wikipedia.
|t1=Write this in wikitext|t2=HTML markup|t3=and this will appear in the article.
| Some '''bold''' text | Some <b>bold</b> text | Some '''bold''' text
}}
==
* {{tl|Markup}} for two-column code and output
== TemplateData ==
{{TemplateData header}}
Line 143 ⟶ 54:
"col2headerstyle",
"col2",
"col3headerstyle",
"col3",
"padding",
"col1style",
"col2style",
"col3style",
"codestyle",
"outputstyle",
Line 150 ⟶ 65:
"2",
"3",
"
"
"
],
"params": {
"1": {
"description": "row 1,
"type": "string"
},
"2": {
"description": "row 1,
"type": "string"
},
"3": {
"description": "row
"type": "string"
},
"
"description": "First column's content in last possible row.",
"type": "string"
},
"
"description": "Second column's content in last possible row.",
"type": "string"
},
"39": {
"description": "Third column's content in last possible row.",
"type": "string"
},
Line 203 ⟶ 118:
},
"col1": {
"description": "First column (
"type": "string",
"default": "\"Markup\""
},
"col2": {
"description": "Second column (
"type": "string",
"default": "\"Renders as\""
},
"col3": {
"description": "Third column (output)'s heading.",
"type": "string",
"default": "\"Renders as\""
Line 233 ⟶ 153:
"col2headerstyle": {
"description": "For CSS styling to amend the appearance of the second column's heading. Overrides (but does not replace) colheaderstyle.",
"type": "string"
},
"col3headerstyle": {
"description": "For CSS styling to amend the appearance of the third column's heading. Overrides (but does not replace) colheaderstyle.",
"type": "string"
},
Line 241 ⟶ 165:
"col1style": {
"label": "Column 1 Style",
"description": "For CSS styles to amend the appearance of the
"example": "width:20em;",
"type": "string",
Line 248 ⟶ 172:
"col2style": {
"label": "Column 2 Style",
"description": "For CSS styles to amend the appearance of the HTML column (e.g. the background colour).",
"example": "background-color:#fff;",
"type": "string",
"default": "none"
},
"col3style": {
"label": "Column 3 Style",
"description": "For CSS styles to amend the appearance of the output column (e.g. the background colour).",
"example": "background-color:#fff;",
"type": "string",
"default": "none"
},
"padding": {
"description": "Padding within each cell.",
"example": "0 5px",
"type": "string",
"default": "5px"
}
}
}
|