Difference between revisions of "User:Crabbe/Sandbox/01"
m (Testing Clanbox templates) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 25: | Line 25: | ||
official_id=34| | official_id=34| | ||
open_to=natives| | open_to=natives| | ||
− | clan_image= | + | clan_image=[[Image:Pslogo.gif]]| |
clan_leaders=Live| | clan_leaders=Live| | ||
clan_membership=Seven...and growing| | clan_membership=Seven...and growing| | ||
Line 38: | Line 38: | ||
official_id=| | official_id=| | ||
open_to=natives| | open_to=natives| | ||
− | clan_image= | + | clan_image=[[Image:Pslogo.gif]]| |
clan_leaders=Live| | clan_leaders=Live| | ||
clan_membership=Seven...and growing| | clan_membership=Seven...and growing| | ||
Line 97: | Line 97: | ||
official_id=34| | official_id=34| | ||
open_to=natives| | open_to=natives| | ||
− | clan_image= | + | clan_image=[[Image:Pslogo.gif]]| |
clan_leaders=Live| | clan_leaders=Live| | ||
clan_membership=Seven...and growing| | clan_membership=Seven...and growing| | ||
Line 110: | Line 110: | ||
official_id=| | official_id=| | ||
open_to=natives| | open_to=natives| | ||
− | clan_image= | + | clan_image=[[Image:Pslogo.gif]]| |
clan_leaders=Live| | clan_leaders=Live| | ||
clan_membership=Seven...and growing| | clan_membership=Seven...and growing| | ||
Line 170: | Line 170: | ||
official_id=34| | official_id=34| | ||
open_to=natives| | open_to=natives| | ||
− | clan_image= | + | clan_image=[[Image:Pslogo.gif]]| |
clan_leaders=Live| | clan_leaders=Live| | ||
clan_membership=Seven...and growing| | clan_membership=Seven...and growing| | ||
Line 183: | Line 183: | ||
official_id=| | official_id=| | ||
open_to=natives| | open_to=natives| | ||
− | clan_image= | + | clan_image=[[Image:Pslogo.gif]]| |
clan_leaders=Live| | clan_leaders=Live| | ||
clan_membership=Seven...and growing| | clan_membership=Seven...and growing| | ||
Line 224: | Line 224: | ||
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 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. | + | This seems to work for this test file. <strike>I get two extra rows when both are empty.</strike> Fixed. |
{| | {| | ||
|- | |- | ||
Line 242: | Line 242: | ||
official_id=34| | official_id=34| | ||
open_to=natives| | open_to=natives| | ||
− | clan_image= | + | clan_image=[[Image:Pslogo.gif]]| |
clan_leaders=Live| | clan_leaders=Live| | ||
clan_membership=Seven...and growing| | clan_membership=Seven...and growing| | ||
Line 255: | Line 255: | ||
official_id=| | official_id=| | ||
open_to=natives| | open_to=natives| | ||
− | clan_image= | + | clan_image=[[Image:Pslogo.gif]]| |
clan_leaders=Live| | clan_leaders=Live| | ||
clan_membership=Seven...and growing| | clan_membership=Seven...and growing| |
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.
Contents
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 |
|
||||||||||||||||||||||||||
E m p t y |
|
|
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 |
|
||||||||||||||||||||||||||||
E m p t y |
|
|
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 |
|
| ||||||||||||||||||||||||||||||||||||
E m p t y |
|
|
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 |
|
||||||||||||||||||||||||||
E m p t y |
|
|