• Welcome to NIWA Community Forums.
 

The Wiki Help Desk V2: Our Hero, Tacopill

Started by Member#36, June 11, 2010, 07:32:49 PM

Previous topic - Next topic

Member#36

Do you want to understand patrolling?  ...Does HTML coding bring you down?  This thread is here to answer the questions you couldn't answer with your wiki's help pages.  However, please remember to look at your wiki's help pages because they are likely to answer a lot of the questions you may come up with.

All posts should folllow the rules, and try to be detailed as possible with the subject matter you wish to find answers on.  Also, all questions should be wiki-related, as all non-wiki related questions will be deleted on sight.

With that, ask away!

Lazor Shroom Midna Freak

#1
Quote from: ????  link=topic=245.msg4610#msg4610 date=1276284769
as all non-wiki related questions will be deleted on sight.
It's sight. S-I-G-H-T.

Member#36

Quote from: Lazor Shroom Midna Freak on August 30, 2010, 06:21:08 PM
Quote from: ????  on June 11, 2010, 07:32:49 PM
as all non-wiki related questions will be deleted on sight.
It's sight. S-I-G-H-T.

What?  ...You MUST be seeing things....


Member#36

#4
Quote from: tacopill on August 30, 2010, 08:48:42 PM
;)

http://www.niwanetwork.org/forums/index.php?topic=346.0

I saw that, but didn't want to merge it due to the WR board construction.

tacopill








Seritinajii

I'm working on the Fire Emblem Wiki. I checked MediaWiki Help: Tables and made this template:
Template:CharacterStats.
The code is pretty long, but not that complicated:
{|style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
!width=100; style="border-style: solid; border-width: 0 1px 1px 0"| Class
!width=50; style="border-style: solid; border-width: 0 1px 1px 0"| Affin
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Lv
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| HP
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Str
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Skill
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Spd
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Luck
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Def
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Res
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Move
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Con
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Aid
!width=100; style="border-style: solid; border-width: 0 1px 1px 0"| Weapon level
|-


Also, when I posted it on the Eirika page I can only get borders to work for the stats part like this:

{{Template:CharacterStats}}
|style="border-style: solid; border-width: 0 1px 1px 0"|Lord
|style="border-style: solid; border-width: 0 1px 1px 0"|Light
|style="border-style: solid; border-width: 0 1px 1px 0"|1
|style="border-style: solid; border-width: 0 1px 1px 0"|6
|style="border-style: solid; border-width: 0 1px 1px 0"|4
|style="border-style: solid; border-width: 0 1px 1px 0"|8
|style="border-style: solid; border-width: 0 1px 1px 0"|9
|style="border-style: solid; border-width: 0 1px 1px 0"|5
|style="border-style: solid; border-width: 0 1px 1px 0"|3
|style="border-style: solid; border-width: 0 1px 1px 0"|1
|style="border-style: solid; border-width: 0 1px 1px 0"|5
|style="border-style: solid; border-width: 0 1px 1px 0"|5
|style="border-style: solid; border-width: 0 1px 1px 0"|4
|style="border-style: solid; border-width: 0 1px 1px 0"|Sword: E
|}


Is there any way I can make this shorter? Also, I grabbed the code from MediaWiki's table help page...


Justin

#7
Quote from: Seritinajii on September 10, 2010, 11:54:35 PM
I'm working on the Fire Emblem Wiki. I checked MediaWiki Help: Tables and made this template:
Template:CharacterStats.
The code is pretty long, but not that complicated:
{|style="border-collapse: collapse; border-width: 1px; border-style: solid; border-color: #000"
!width=100; style="border-style: solid; border-width: 0 1px 1px 0"| Class
!width=50; style="border-style: solid; border-width: 0 1px 1px 0"| Affin
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Lv
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| HP
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Str
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Skill
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Spd
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Luck
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Def
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Res
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Move
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Con
!width=35; style="border-style: solid; border-width: 0 1px 1px 0"| Aid
!width=100; style="border-style: solid; border-width: 0 1px 1px 0"| Weapon level
|-


Also, when I posted it on the Eirika page I can only get borders to work for the stats part like this:

{{Template:CharacterStats}}
|style="border-style: solid; border-width: 0 1px 1px 0"|Lord
|style="border-style: solid; border-width: 0 1px 1px 0"|Light
|style="border-style: solid; border-width: 0 1px 1px 0"|1
|style="border-style: solid; border-width: 0 1px 1px 0"|6
|style="border-style: solid; border-width: 0 1px 1px 0"|4
|style="border-style: solid; border-width: 0 1px 1px 0"|8
|style="border-style: solid; border-width: 0 1px 1px 0"|9
|style="border-style: solid; border-width: 0 1px 1px 0"|5
|style="border-style: solid; border-width: 0 1px 1px 0"|3
|style="border-style: solid; border-width: 0 1px 1px 0"|1
|style="border-style: solid; border-width: 0 1px 1px 0"|5
|style="border-style: solid; border-width: 0 1px 1px 0"|5
|style="border-style: solid; border-width: 0 1px 1px 0"|4
|style="border-style: solid; border-width: 0 1px 1px 0"|Sword: E
|}


Is there any way I can make this shorter? Also, I grabbed the code from MediaWiki's table help page...


I know why.
border-style and border-width are deprecated. Use
border: (width) (style) (color);
~~~~
Server bureaucrat of Zelda Wiki. I fix what you break.

Also a tech administrator for Poniverse.





Seritinajii

Wait, but, I'm not experienced in wiki table formatting, so how should I input the HTML or width & style values?

tacopill

#10
you put in html attributes in the wiki syntax, like so:



{| style="border:3px solid orange;"
This box has a solid html border.
|}


Edit:  Taking a close look at it, have you tried puting "px" on the width=#; . border-width is still allowed if you wish to be specific on width for specific sides of the cell(s).







Seritinajii

So thanks to tacopill, I have the template table code quite cleared up.

{|style="border:1px solid black"
! width=100px|Class
! width=50px|Affin
! width=35px|Lv
! width=35px|HP
! width=35px|Str
! width=35px|Skill
! width=35px|Spd
! width=35px|Luck
! width=35px|Def
! width=35px|Res
! width=35px|Move
! width=35px|Con
! width=35px|Aid
! width=100px|Weapon level
|-

And same with the page that uses it. Here's the template now, and there aren't any lines between the different stats.
So I have individual box widths, but how can I make borders between the individual stat boxes?

tacopill


{| style="border:3px solid orange;"
! width=100px style="border-right:3px solid red;" |Class
! width=50px style="border-right:3px solid orange;"  |Affin
! width=35px style="border-right:3px solid yellow;"  |Lv
! width=35px style="border-right:3px solid green;"  |HP
! width=35px style="border-right:3px solid blue;"  |Str
! width=35px style="border-right:3px solid purple;"  |Skill
! width=35px style="border-right:3px solid red;"  |Spd
! width=35px style="border-right:3px solid orange;"  |Luck
! width=35px style="border-right:3px solid yellow;"  |Def
! width=35px style="border-right:3px solid green;"  |Res
! width=35px style="border-right:3px solid blue;"  |Move
! width=35px style="border-right:3px solid purple;"  |Con
! width=35px style="border-right:3px solid red;"  |Aid
! width=100px |Weapon level
|-

try this out. and happy to help out.







Seritinajii

I actually think the rainbow design looks kinda nice... but anyway.
Here's the current template; how can I make the cell borders reach the top and bottom of the table?

tacopill

do you mind if i experiment on wiki that template? also. with that table ever have more than 2 rows? (the header row and 1 data row). 







Seritinajii

Nope..

It seems that someone's changed the template - Here's the current template, and I think it looks better than what I was trying to put together. So I guess this is done..

tacopill

ok, nevermind on that then.

The information in the header row, is any of it important enough to get it's own page?







Seritinajii

They probably all warrant pages. Or, possibly, most of them can be allocated to a "stats" page or something. Class, afffinity, and weapon level probably would get their own pages.

Tappy

Ello! I'm starting to work on SSB Wiki and I've got a question about templates.

Is it possible to hide certain parts of a template if it's not used?

Say I have template:

{| style="border: 1px #cecece solid; width: 500px;" cellspacing="0" cellpadding="0"
|-
! colspan="2" style="text-align: center;font-weight: bold;background: #e9e9e9;border-bottom: 1px #cecece solid;"| {{PAGENAME}} Moves in SSBB
|-
| style="background: #e9e9e9; border-right: 1px #cecece solid; border-bottom: 1px #cecece solid; text-align: center; width: 50%;"| Standard Special Move
| style="background: #fbfbfb; border-bottom: 1px #cecece solid; padding-left: 3px;"| {{{standard}}}
|-
| style="background: #e9e9e9; border-right: 1px #cecece solid; border-bottom: 1px #cecece solid; text-align: center;width: 50%;"| Side Special Move
| style="background: #fbfbfb; border-bottom: 1px #cecece solid; padding-left: 3px;"| {{{side}}}
|-
| style="background: #e9e9e9; border-right: 1px #cecece solid; border-bottom: 1px #cecece solid; text-align: center;width: 50%;"| Up Special Move
| style="background: #fbfbfb; border-bottom: 1px #cecece solid; padding-left: 3px;"| {{{up}}}
|-
| style="background: #e9e9e9; border-right: 1px #cecece solid; border-bottom: 1px #cecece solid; text-align: center;width: 50%;"| Down Special Move
| style="background: #fbfbfb; border-bottom: 1px #cecece solid; padding-left: 3px;"| {{{down}}}
|-
| style="background: #e9e9e9; border-right: 1px #cecece solid; text-align: center;width: 50%;"| Final Smash
| style="background: #fbfbfb; padding-left: 3px;"| {{{final}}}
|}


But perhaps X Character doesn't have let's say Up Special Move and we ignore it on the article page when including the template:

{{Moves(SSBB)
| standard = sdg
| side = asdf
| down = uio2b365
| final = sdgf
}}


How do you make it so it doesn't apply the template and stick in this case {{{up}}} ?

Thanks :)
Webmaster of Hyrule.net (a mastermind of ZeldaWiki.org)

tacopill

There's a smash bros. wiki? why have i not heard of this?  ???



Anyway,

one way you could do it, is to follow tina's example with the Character infobox over at WikiBound. In it, she specifies a sepearte varible to be set to true, if she wants certain fields/rows to appear. if they are ignored, the row simply doesn't appear.

This uses the following pages:
# 1
# 2