Vorlage:Tmbox/Doku: Unterschied zwischen den Versionen
→Technical details: Added more documentation.
imported>Davidgothberg (Adding more documentation since people are asking about the functionality at the talk page.) |
imported>Davidgothberg (→Technical details: Added more documentation.) |
||
Zeile 125: | Zeile 125: | ||
This template currently uses hard coded styles. Later it will use CSS classes enabling it to be skinned. | This template currently uses hard coded styles. Later it will use CSS classes enabling it to be skinned. | ||
For more technical details see the [[Template talk:Tmbox|talk page]]. Since this template works like {{tl|ambox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details. | If you need to use special characters in the text parameter then you need to escape them like this: | ||
<pre> | |||
{{tmbox | |||
| text = <div> | |||
Equal sign = and a start and end brace { } work fine as they are. | |||
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. | |||
And now a pipe and end braces <nowiki>|}}</nowiki>. | |||
</div> | |||
}} | |||
</pre> | |||
{{tmbox | |||
| text = <div> | |||
Equal sign = and a start and end brace { } work fine as they are. | |||
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>. | |||
And now a pipe and end braces <nowiki>|}}</nowiki>. | |||
</div> | |||
}} | |||
Internally this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use [[m:Help:ParserFunctions|parser functions]] and special characters in parameters. | |||
For more technical details see the [[Template talk:Tmbox|talk page]]. Since this template works almost exactly like {{tl|ambox}}, {{tl|imbox}}, {{tl|cmbox}} and {{tl|ombox}} their talk pages and related pages might also contain more details. | |||
=== See also === | === See also === |