Difference between revisions of "Template:Cc"

From Data JW United
Jump to navigation Jump to search
Line 11: Line 11:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
{{#ifeq: {{{1}}} |c| <div style="margin:0 auto;width:{{{2}}}px;">{{{3}}}</div> | <div style="width:{{{1}}}px;">{{{2}}}</div>}}
+
{{#ifeq: {{{1}}} |c| <div style="margin:0 auto;max-width:{{{2}}}px;">{{{3}}}</div> | <div style="max-width:{{{1}}}px;">{{{2}}}</div>}}
 
</includeonly>
 
</includeonly>

Revision as of 06:06, 6 October 2020

This template is used to create a container of a certain width.

Code Example Result
{{raw:data:cs|10|element}} {{raw:data:cs|10|actual text}}
actual text
(container is 65px width)
{{raw:data:cs|c|10|element}} {{raw:data:cs|c|10|actual text}}
actual text