Difference between revisions of "Template talk:Info Small"
Jump to navigation
Jump to search
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | A quick-and-easy template, two version.<br/> | ||
| + | The chief difference is that the '''div''' version floats on the same line as a heading, whereas the '''table''' version does not. | ||
| + | |||
This is the original, made only with divs: | This is the original, made only with divs: | ||
| Line 8: | Line 11: | ||
{{#if:{{{web|}}}|<div>{{{web}}}</div>|}} | {{#if:{{{web|}}}|<div>{{{web}}}</div>|}} | ||
</div><noinclude>{{doc2}}</noinclude> | </div><noinclude>{{doc2}}</noinclude> | ||
| + | </pre> | ||
| + | |||
| + | This is the table-style version: | ||
| + | <pre> | ||
| + | <table style="float:right; margin-left:10px; font-size:small;"> | ||
| + | {{#if:{{{ntb|}}}||<tr><td><hr/></td></tr>}} | ||
| + | {{#if:{{{parent|}}}|<tr><th style="font-weight:normal; padding:0;">{{{parent}}}{{#if:{{{pwpl|}}}|<div>{{{pwpl}}}</div>|}}{{#if:{{{pweb|}}}|<div>{{{pweb}}}</div>|}}<div><hr/></div></th></tr>|}} | ||
| + | <tr><th style="font-weight:normal; padding:0;">{{{img}}} | ||
| + | {{#if:{{{wpl|}}}|<div>{{{wpl}}}</div>|}}{{#if:{{{web|}}}|<div>{{{web}}}</div>|}}<div><hr/></div></th></tr> | ||
| + | </table><noinclude>{{doc2}}</noinclude> | ||
</pre> | </pre> | ||
Latest revision as of 13:19, 9 July 2019
A quick-and-easy template, two version.
The chief difference is that the div version floats on the same line as a heading, whereas the table version does not.
This is the original, made only with divs:
<div style="position:relative; top:-16px; float:right; text-align:center; font-size:small; border-top:{{#if:{{{ntb|}}}|none;|1px solid #808080;}} border-bottom:1px solid #808080; padding:0.5em 0 0.2em 0.2em; margin-left:0.3em;">
{{#if:{{{parent|}}}|<div style="border-bottom:1px solid #808080; margin-bottom:0.3em; padding-bottom:0.3em;">{{{parent}}}{{#if:{{{pwpl|}}}|<div>{{{pwpl}}}</div>|}}{{#if:{{{pweb|}}}|<div>{{{pweb}}}</div>|}}</div>|}}
<div>{{{img}}}</div>
{{#if:{{{wpl|}}}|<div>{{{wpl}}}</div>|}}
{{#if:{{{web|}}}|<div>{{{web}}}</div>|}}
</div><noinclude>{{doc2}}</noinclude>
This is the table-style version:
<table style="float:right; margin-left:10px; font-size:small;">
{{#if:{{{ntb|}}}||<tr><td><hr/></td></tr>}}
{{#if:{{{parent|}}}|<tr><th style="font-weight:normal; padding:0;">{{{parent}}}{{#if:{{{pwpl|}}}|<div>{{{pwpl}}}</div>|}}{{#if:{{{pweb|}}}|<div>{{{pweb}}}</div>|}}<div><hr/></div></th></tr>|}}
<tr><th style="font-weight:normal; padding:0;">{{{img}}}
{{#if:{{{wpl|}}}|<div>{{{wpl}}}</div>|}}{{#if:{{{web|}}}|<div>{{{web}}}</div>|}}<div><hr/></div></th></tr>
</table><noinclude>{{doc2}}</noinclude>