Notice: We are aware that many of the Chewiki’s images are still broken. We promise: we will try our best to fix it, but we don't guarantee that the fix will be trivial.

Difference between revisions of "Template:CharBox"

From Chewiki Archive - YouChew: 1% Funny, 99% Hot Gas
(Test)
Line 1: Line 1:
<div class="noprint" style="float:right; border:1px solid {{#switch:{{{name}}}|Fiddligi=red|vvaluidle=blue|Azerbafox=magenta|vvaddle=#660066|blue}};width:200px;margin:10px;background-color:#fff;padding:3px;"><!--
+
<div class="noprint" style="float:right; border:1px solid width:200px;margin:10px;background-color:#fff;padding:3px;"><!--
 
Image
 
Image
 
-->{{ #if: {{{image|}}} | <p align="center">[[Image:{{{image}}}|180px|center]]</p> }}<p><small><!--
 
-->{{ #if: {{{image|}}} | <p align="center">[[Image:{{{image}}}|180px|center]]</p> }}<p><small><!--
Line 6: Line 6:
 
-->{{ #if: {{{name|}}} | <b>Name:</b> {{{name}}}<br /> }}<!--
 
-->{{ #if: {{{name|}}} | <b>Name:</b> {{{name}}}<br /> }}<!--
 
Shows
 
Shows
-->{{ #if: {{{shows|}}} | <b>Appears in:</b> {{{shows}}}<br /> }}
+
-->{{ #if: {{{shows|}}} | <b>Appears in:</b> {{{shows}}}<br /> }}<!--
<hr>
 
<!--
 
 
Sex
 
Sex
 
-->{{ #if: {{{sex|}}} | <b>Sex:</b> {{{sex}}}<br /> }}<!--
 
-->{{ #if: {{{sex|}}} | <b>Sex:</b> {{{sex}}}<br /> }}<!--
Line 24: Line 22:
  
  
-->{{#if:{{{sex|}}}|  {{#ifeq:{{{noaddsex}}}|yes|| {{#ifeq:{{:Category:Characters - {{{sex}}}}} |[[:Category:Characters - {{{sex}} <!--{{DEFAULTSORT:PAGENAME}}-->}]]||[[Category:Characters - {{{sex}}} <!--{{DEFAULTSORT:PAGENAME}}-->]] }}  }}  }}<!--
+
-->{{#if:{{{sex|}}}|  {{#ifeq:{{{noaddsex}}}|yes|| {{#ifeq:{{:Category:Characters - {{{sex}}}}} |[[:Category:Characters - {{{sex}}}}-->}]]||[[Category:Characters - {{{sex}}} {{DEFAULTSORT:PAGENAME}}]] }}  }}  }}<!--
  
 
-->{{#if:{{{shows|}}}|  {{#ifeq:{{{noaddshows}}}|yes|| {{#ifeq:{{:Category:Characters - Appears in {{{shows}}}}} |[[:Category:Characters - Appears in {{{shows}}}]]||[[Category:Characters - Appears in {{{shows}}}]] }}  }}  }}<!--
 
-->{{#if:{{{shows|}}}|  {{#ifeq:{{{noaddshows}}}|yes|| {{#ifeq:{{:Category:Characters - Appears in {{{shows}}}}} |[[:Category:Characters - Appears in {{{shows}}}]]||[[Category:Characters - Appears in {{{shows}}}]] }}  }}  }}<!--
  
-->{{#if:{{{nationality|}}}|  {{#ifeq:{{{noaddnation}}}|yes|| {{#ifeq:{{:Category:Characters - {{{nationality}}}}} |[[:Category:Characters - {{{nationality}}} <!--{{DEFAULTSORT:PAGENAME}}]]||[[Category:Characters - {{{nationality}}} <!--{{DEFAULTSORT:PAGENAME}}-->]] }}  }}  }}<!--
+
-->{{#if:{{{nationality|}}}|  {{#ifeq:{{{noaddnation}}}|yes|| {{#ifeq:{{:Category:Characters - {{{nationality}}}}} |[[:Category:Characters - {{{nationality}}}]]||[[Category:Characters - {{{nationality}}} {{DEFAULTSORT:PAGENAME}}]] }}  }}  }}<!--
  
 
The preceding code automatically adds categories as necessary.
 
The preceding code automatically adds categories as necessary.

Revision as of 03:13, 29 May 2010

Usage

Displays a concise infomation panel designed to contain infomation about a character, in addition to adding to categories. Developed by The Electric Cheese


Recent edit by some random guy involves automatically checking if the gender, shows, or nationality categories exists before placing it, obsoleting the former need to manually add the noadd sex/shows/nation parameters.