Difference between revisions of "Template:StrengthsAndWeaknesses"
Jump to navigation
Jump to search
m Tag: Reverted |
Franck Frost (talk | contribs) (Undo revision 57532 by Franck Frost (talk)) Tag: Undo |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><table style="font-size: 14px; border-collapse: collapse; margin: 1em -1% 1em -1%; text-align: center; border-bottom: 1px solid rgba(160,160,160,.4); width:{{#if:{{{tablewidth|}}}|{{{tablewidth}}}|102}}%;"> | <includeonly>{{#if:{{{description|}}}|{{{description}}}|<table style="font-size: 14px; border-collapse: collapse; margin: 1em -1% 1em -1%; text-align: center; border-bottom: 1px solid rgba(160,160,160,.4); width:{{#if:{{{tablewidth|}}}|{{{tablewidth}}}|102}}%;"> | ||
<tr> | <tr> | ||
<td style="padding: 12px; font-size: 14px;" colspan="2"> | <td style="padding: 12px; font-size: 14px;" colspan="2"> | ||
Line 12: | Line 12: | ||
{{{pros|[ Info Needed ]}}}</td> | {{{pros|[ Info Needed ]}}}</td> | ||
<td style="width: 50%; text-align: left; padding: 6px; font-size: 14px;" valign="top"> | <td style="width: 50%; text-align: left; padding: 6px; font-size: 14px;" valign="top"> | ||
{{{cons|[ Info Needed ]}}}</td></tr></table></includeonly> | {{{cons|[ Info Needed ]}}}</td> | ||
</tr></table><br>}}{{#if:{{{seo|}}}| | |||
<noinclude> | |{{#seo: | ||
|description={{#if:{{{intro|}}}|{{{intro}}}|{{{description|}}}}} | |||
|image={{#invoke:Parser|imageTrim|{{#lst:{{FULLPAGENAME}}|image}}|extension = {{{ext|}}}}} | |||
}}}}</includeonly><noinclude> | |||
===Usage=== | ===Usage=== | ||
<pre> | <pre> | ||
{{StrengthsAndWeaknesses | {{StrengthsAndWeaknesses | ||
| intro = | | intro = Duo Lon is an XYZ charcter who does QWE using ASDF. | ||
| pros = | | pros = | ||
*Pro 1 | *Pro 1 | ||
Line 28: | Line 31: | ||
</pre> | </pre> | ||
{{StrengthsAndWeaknesses | {{StrengthsAndWeaknesses | ||
| intro = | | intro = Duo Lon is an XYZ charcter who does QWE using ASDF. | ||
| pros = | | pros = | ||
*Pro 1 | *Pro 1 | ||
Line 35: | Line 38: | ||
*Con 1 | *Con 1 | ||
*Con 2 | *Con 2 | ||
|seo=no | |||
}} | }} | ||
<pre> | <pre> | ||
{{StrengthsAndWeaknesses | {{StrengthsAndWeaknesses | ||
| intro = | | intro = Duo Lon is an XYZ charcter who does QWE using ASDF. | ||
| pros = | | pros = | ||
*Pro 1 | *Pro 1 | ||
Line 50: | Line 54: | ||
</pre> | </pre> | ||
{{StrengthsAndWeaknesses | {{StrengthsAndWeaknesses | ||
| intro = | | intro = Duo Lon is an XYZ charcter who does QWE using ASDF. | ||
| pros = | | pros = | ||
*Pro 1 | *Pro 1 | ||
Line 58: | Line 62: | ||
*Con 2 | *Con 2 | ||
|tablewidth=50 | |tablewidth=50 | ||
|seo=no | |||
}} | }} | ||
</noinclude> | |||
==Adjustements== | |||
This template was modified to provide description(defaulting to the intro) and image metadata to the page it is used on unless an "seo" parameter is defined to any value at all.<br> | |||
Additionally, if instead of an intro parameter a description one is given, the template will display the description as just plain full text without the pro/con table and the metadata description will default to it unless an intro parameter (now invisible) was still given.<br> | |||
[[Template:Character Label]] needs further work. | |||
[[Category:Templates]]</noinclude> |
Revision as of 09:33, 3 October 2022
Usage
{{StrengthsAndWeaknesses | intro = Duo Lon is an XYZ charcter who does QWE using ASDF. | pros = *Pro 1 *Pro 2 | cons = *Con 1 *Con 2 }}
Duo Lon is an XYZ charcter who does QWE using ASDF. | |
Pros | Cons |
|
|
{{StrengthsAndWeaknesses | intro = Duo Lon is an XYZ charcter who does QWE using ASDF. | pros = *Pro 1 *Pro 2 | cons = *Con 1 *Con 2 |tablewidth=50 }}
Duo Lon is an XYZ charcter who does QWE using ASDF. | |
Pros | Cons |
|
|
Adjustements
This template was modified to provide description(defaulting to the intro) and image metadata to the page it is used on unless an "seo" parameter is defined to any value at all.
Additionally, if instead of an intro parameter a description one is given, the template will display the description as just plain full text without the pro/con table and the metadata description will default to it unless an intro parameter (now invisible) was still given.
Template:Character Label needs further work.