Difference between revisions of "User:Crabbe/Sandbox/01"

From The Shartak Wiki
Jump to navigationJump to search
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{User:Crabbe/Sandbox/02|
+
== Testing Clanbox Templates ==
 +
I used the [[Eyecons]] to vary on since that was the first really broken
 +
one I found.  For each of four templates, I display with each of clan_image and official_id empty and specified
 +
to try to test for breakage.
 +
__TOC__
 +
 
 +
== Original Template - [[Template:Clanbox]] ==
 +
Apparently this broke after a MediaWiki update.  This example shows correctly if both
 +
clan_image and official_id are empty, but varying degrees of brokeness else.
 +
{|
 +
|-
 +
|width="1.0em" |  
 +
|width="1.0em" |  
 +
| colspan="2" style="background-color: #cc6666; text-align: center" |'''official_id'''
 +
|- style="background-color: #cc6666; text-align: center"
 +
|
 +
|
 +
|'''Specified'''
 +
|'''Empty'''
 +
|-
 +
| rowspan="2" style="background-color: #cc6666; text-align: center" | '''c l a n _ i m a g e'''
 +
| style="background-color: #cc6666; text-align: center" |'''S p e c i f i e d'''
 +
|{{Clanbox|
 
  clan_name=Eyecons|
 
  clan_name=Eyecons|
 
  official_id=34|
 
  official_id=34|
 
  open_to=natives|
 
  open_to=natives|
  clan_image=http://myspace-361.vo.llnwd.net/00099/16/30/99350361_l.jpg|
+
  clan_image=[[Image:Pslogo.gif]]|
 
  clan_leaders=Live|
 
  clan_leaders=Live|
 
  clan_membership=Seven...and growing|
 
  clan_membership=Seven...and growing|
Line 12: Line 34:
 
  active=no
 
  active=no
 
  }}
 
  }}
 +
|{{Clanbox|
 +
clan_name=Eyecons|
 +
official_id=|
 +
open_to=natives|
 +
clan_image=[[Image:Pslogo.gif]]|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|-
 +
| style="background-color: #cc6666; text-align: center" |'''E m p t y'''
 +
|{{Clanbox|
 +
clan_name=Eyecons|
 +
official_id=34|
 +
open_to=natives|
 +
clan_image=|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|{{Clanbox|
 +
clan_name=Eyecons|
 +
official_id=|
 +
open_to=natives|
 +
clan_image=|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|}
 +
== SkullFace Template - [[Template:Clanbox_fix]] ==
 +
I think this is a copy of [[User:Skull_Face/Template:Clanbox_fix]], in any event it was
 +
last touched by [[User:Skull_Face|Skull Face]] on September 5, 2008.
 +
This breaks if both are specified, it is fine otherwise.
 +
{|
 +
|-
 +
|width="1.0em" |  
 +
|width="1.0em" |  
 +
| colspan="2" style="background-color: #cc6666; text-align: center" |'''official_id'''
 +
|- style="background-color: #cc6666; text-align: center"
 +
|
 +
|
 +
|'''Specified'''
 +
|'''Empty'''
 +
|-
 +
| rowspan="2" style="background-color: #cc6666; text-align: center" | '''c l a n _ i m a g e'''
 +
| style="background-color: #cc6666; text-align: center" |'''S p e c i f i e d'''
 +
|{{Clanbox_fix|
 +
clan_name=Eyecons|
 +
official_id=34|
 +
open_to=natives|
 +
clan_image=[[Image:Pslogo.gif]]|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|{{Clanbox_fix|
 +
clan_name=Eyecons|
 +
official_id=|
 +
open_to=natives|
 +
clan_image=[[Image:Pslogo.gif]]|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|-
 +
| style="background-color: #cc6666; text-align: center" |'''E m p t y'''
 +
|{{Clanbox_fix|
 +
clan_name=Eyecons|
 +
official_id=34|
 +
open_to=natives|
 +
clan_image=|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|{{Clanbox_fix|
 +
clan_name=Eyecons|
 +
official_id=|
 +
open_to=natives|
 +
clan_image=|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|}
 +
== Alien pirate demon Template - [[Template:Clanbox_test]] ==
 +
This version is by [[User:Alien_pirate_demon|Alien pirate demon]] on September 5, 2008.
 +
'''It was edited March 12, 2010 by [[User:Johan_Crichton|Johan Crichton]] to change one of the <code>Category:Clans</code> references to <code>Category:Officially recognized clans</code>.'''
 +
 +
It is slightly broken when <code>clan_image</code> is empty (colspan="2" in extra row).  When <code>official_id</code> is empty it still gives a link that doesn't go anywhere.  This is because Alien pd removed the conditional code in the original template and cleaned up what was left in order to fix the broken template.
 +
{|
 +
|-
 +
|width="1.0em" | &nbsp;
 +
|width="1.0em" | &nbsp;
 +
| colspan="2" style="background-color: #cc6666; text-align: center" |'''official_id'''
 +
|- style="background-color: #cc6666; text-align: center"
 +
|
 +
|
 +
|'''Specified'''
 +
|'''Empty'''
 +
|-
 +
| rowspan="2" style="background-color: #cc6666; text-align: center" | '''c l a n _ i m a g e'''
 +
| style="background-color: #cc6666; text-align: center" |'''S p e c i f i e d'''
 +
|{{Clanbox_test|
 +
clan_name=Eyecons|
 +
official_id=34|
 +
open_to=natives|
 +
clan_image=[[Image:Pslogo.gif]]|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|{{Clanbox_test|
 +
clan_name=Eyecons|
 +
official_id=|
 +
open_to=natives|
 +
clan_image=[[Image:Pslogo.gif]]|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|-
 +
| style="background-color: #cc6666; text-align: center" |'''E m p t y'''
 +
|{{Clanbox_test|
 +
clan_name=Eyecons|
 +
official_id=34|
 +
open_to=natives|
 +
clan_image=|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|{{Clanbox_test|
 +
clan_name=Eyecons|
 +
official_id=|
 +
open_to=natives|
 +
clan_image=|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|}
 +
== My Template - [[User:Crabbe/Sandbox/02]] ==
 +
This is my (Crabbe's) version, 17:35, 15 May 2010 (UTC).  In order to get the original template functioning I cleaned up the formatting.  This should allow the conditionals to work properly again.
 +
 +
This seems to work for this test file.  <strike>I get two extra rows when both are empty.</strike> Fixed.
 +
{|
 +
|-
 +
|width="1.0em" | &nbsp;
 +
|width="1.0em" | &nbsp;
 +
| colspan="2" style="background-color: #cc6666; text-align: center" |'''official_id'''
 +
|- style="background-color: #cc6666; text-align: center"
 +
|
 +
|
 +
|'''Specified'''
 +
|'''Empty'''
 +
|-
 +
| rowspan="2" style="background-color: #cc6666; text-align: center" | '''c l a n _ i m a g e'''
 +
| style="background-color: #cc6666; text-align: center" |'''S p e c i f i e d'''
 +
|{{User:Crabbe/Sandbox/02|
 +
clan_name=Eyecons|
 +
official_id=34|
 +
open_to=natives|
 +
clan_image=[[Image:Pslogo.gif]]|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|{{User:Crabbe/Sandbox/02|
 +
clan_name=Eyecons|
 +
official_id=|
 +
open_to=natives|
 +
clan_image=[[Image:Pslogo.gif]]|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|-
 +
| style="background-color: #cc6666; text-align: center" |'''E m p t y'''
 +
|{{User:Crabbe/Sandbox/02|
 +
clan_name=Eyecons|
 +
official_id=34|
 +
open_to=natives|
 +
clan_image=|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|{{User:Crabbe/Sandbox/02|
 +
clan_name=Eyecons|
 +
official_id=|
 +
open_to=natives|
 +
clan_image=|
 +
clan_leaders=Live|
 +
clan_membership=Seven...and growing|
 +
clan_goals=Eradicate the outsiders|
 +
clan_recruit=Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.|
 +
clan_contact=All contact will (for now) be made through my email: Munkymaniac@hotmail.com.|
 +
sort_as=|
 +
active=no
 +
}}
 +
|}

Latest revision as of 18:53, 15 May 2010

Testing Clanbox Templates

I used the Eyecons to vary on since that was the first really broken one I found. For each of four templates, I display with each of clan_image and official_id empty and specified to try to test for breakage.

Original Template - Template:Clanbox

Apparently this broke after a MediaWiki update. This example shows correctly if both clan_image and official_id are empty, but varying degrees of brokeness else.

    official_id
Specified Empty
c l a n _ i m a g e S p e c i f i e d
Eyecons|-style="background-color: #ffffff; text-align: center;" Pslogo.gif|-style="background-color: #c3ddc3; text-align: center;" In-game page
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
Eyecons|-style="background-color: #ffffff; text-align: center;" Pslogo.gif
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
E m p t y
Eyecons|-style="background-color: #c3ddc3; text-align: center;" In-game page
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
Eyecons
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.

SkullFace Template - Template:Clanbox_fix

I think this is a copy of User:Skull_Face/Template:Clanbox_fix, in any event it was last touched by Skull Face on September 5, 2008. This breaks if both are specified, it is fine otherwise.

    official_id
Specified Empty
c l a n _ i m a g e S p e c i f i e d
Eyecons
Pslogo.gif|-style="background-color: #c3ddc3; text-align: center;" In-game page
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
Eyecons
Pslogo.gif
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
E m p t y
Eyecons
In-game page
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
Eyecons
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.

Alien pirate demon Template - Template:Clanbox_test

This version is by Alien pirate demon on September 5, 2008. It was edited March 12, 2010 by Johan Crichton to change one of the Category:Clans references to Category:Officially recognized clans.

It is slightly broken when clan_image is empty (colspan="2" in extra row). When official_id is empty it still gives a link that doesn't go anywhere. This is because Alien pd removed the conditional code in the original template and cleaned up what was left in order to fix the broken template.

    official_id
Specified Empty
c l a n _ i m a g e S p e c i f i e d
Eyecons
Pslogo.gif
In-game page
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
Eyecons
Pslogo.gif
In-game page
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
E m p t y
Eyecons
colspan="2"
In-game page
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
Eyecons
colspan="2"
In-game page
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.

My Template - User:Crabbe/Sandbox/02

This is my (Crabbe's) version, 17:35, 15 May 2010 (UTC). In order to get the original template functioning I cleaned up the formatting. This should allow the conditionals to work properly again.

This seems to work for this test file. I get two extra rows when both are empty. Fixed.

    official_id
Specified Empty
c l a n _ i m a g e S p e c i f i e d
Eyecons
Pslogo.gif
In-game page
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
Eyecons
Pslogo.gif
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
E m p t y
Eyecons
In-game page
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.
Eyecons
Leadership: Live
Members: Seven...and growing
Goals: Eradicate the outsiders
Recruitment policy: Email Live at: Munkymaniac@hotmail.com; enter "Eyecon" in your character description.
Contact: All contact will (for now) be made through my email: Munkymaniac@hotmail.com.