Difference between revisions of "Template talk:SkillBox1"

From Fallen Sword Wiki
Jump to: navigation, search
(Parameters)
 
(26 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
== Problem ==
 
== Problem ==
  
I know it's a bad template but I don't know how to make a real one, and I did the best I could not knowing how. If someone tells me I would be glad to make it into a real template
+
I know it's a bad template but I don't know how to make a real one, and I did the best I could not knowing how. If someone tells me I would be glad to make it into a real template.SUBST:User:Greggacam/SigX
  
-greggacam, Maker of Page
 
 
--[[User:Greggacam|Greggacam]] 20:58, 27 May 2008 (BST)
 
  
 
:<span style="color:#060">To make a real template, it needs to be able to be put into another page by typing <tt><nowiki>{{templateName|parameters}}</nowiki></tt> instead of just copying some code and pasting it into the other page. I recommend reading [http://www.mediawiki.org/wiki/Help:Templates http://www.mediawiki.org/wiki/Help:Templates] to learn more about how templates work and how to make them.</span><br>{{User:Belgrave/Sig}}
 
:<span style="color:#060">To make a real template, it needs to be able to be put into another page by typing <tt><nowiki>{{templateName|parameters}}</nowiki></tt> instead of just copying some code and pasting it into the other page. I recommend reading [http://www.mediawiki.org/wiki/Help:Templates http://www.mediawiki.org/wiki/Help:Templates] to learn more about how templates work and how to make them.</span><br>{{User:Belgrave/Sig}}
Line 19: Line 16:
 
OK so can someone change the title to SkillBox1 for me? And also I don't know what happened with the pages on the Template page, they are listen under }. If anyone can fix that it would be okay, you may edit it if you want.
 
OK so can someone change the title to SkillBox1 for me? And also I don't know what happened with the pages on the Template page, they are listen under }. If anyone can fix that it would be okay, you may edit it if you want.
  
I think I made a good improvement in 3 minutes, no?
+
I think I made a good improvement in 3 minutes, no?{{User:Greggacam/Sig}}
  
 
:<span style="color:#060">I fixed your problem with the categorizing under <tt>}</tt>. The problem was you used <tt><nowiki>[[Category:Templates|{}]]</nowiki></tt> instead of <tt><nowiki>[[Category:Templates|{{PAGENAME}}]]</nowiki></tt>. I also noticed a few other code errors in the template which I did not fix... specifically the extra <tt>!!</tt> at the end of <tt>!Skills!!Image!!Level!!Price!!</tt> which creates a fifth but empty column in the table. Other than that, there weren't any other problems that blatantly stuck out at me.</span><br>{{User:Belgrave/Sig}}
 
:<span style="color:#060">I fixed your problem with the categorizing under <tt>}</tt>. The problem was you used <tt><nowiki>[[Category:Templates|{}]]</nowiki></tt> instead of <tt><nowiki>[[Category:Templates|{{PAGENAME}}]]</nowiki></tt>. I also noticed a few other code errors in the template which I did not fix... specifically the extra <tt>!!</tt> at the end of <tt>!Skills!!Image!!Level!!Price!!</tt> which creates a fifth but empty column in the table. Other than that, there weren't any other problems that blatantly stuck out at me.</span><br>{{User:Belgrave/Sig}}
  
OK thanks, and what about the title problem?
+
OK thanks, and what about the title problem?{{User:Greggacam/Sig}}
 
:<span style="color:#060">Fixed! All that needed done was moving the page to the new title.</span><br>{{User:Belgrave/Sig}}
 
:<span style="color:#060">Fixed! All that needed done was moving the page to the new title.</span><br>{{User:Belgrave/Sig}}
  
 
Thanks! There isn't a way for me to get a signature like yours without being a sysop, right? And do you notice any more bugs?
 
Thanks! There isn't a way for me to get a signature like yours without being a sysop, right? And do you notice any more bugs?
:<span style="color:"#f00>Actually, you can read Belgrave's profile.  It will lead you to a page where it teaches you how to create your own signature.</span><br>{{User:CHiNback/Sig}}
+
:<span style="color:#f00">Actually, you can read Belgrave's profile.  It will lead you to a page where it teaches you how to create your own signature.</span><br>{{User:CHiNback/Sig}}
 +
::<span style="color:#060">You can find instructions at: [[:Category:User_Signatures]]. Anyone can make one; you just have to carefully follow the directions and know how to use it.</span><br>{{User:Belgrave/Sig}}
 +
 
 +
OK thanks I'm making one right now. Any bugs?{{User:Greggacam/Sig}}
 +
 
 +
Why is my signature not working?
 +
:<span style="color:#060">Click on 'my preferences' at the top of the page. This will bring up a page where you can change all your wiki user settings. Partway down is a box for 'Nickname:'. In that box you put <tt><nowiki>{{SUBST:User:Greggacam/SigX}}</nowiki></tt>. Once you do this, it should work properly. I fixed [[User:Greggacam/SigX]] for you too.</span><br>{{User:Belgrave/Sig}}
 +
 
 +
OK thanks it works now! Do you notice ''any'' issues with the template? {{User:Greggacam/Sig}}
 +
 
 +
== For a fun time... ==
 +
<span style="color:#060">How about altering the template to make the table more customizable? For instance, you could make parameters that change the borders, background colors, and just about everything else while keeping the default values! If you'd like to see an example of a template that customizable, check out [[Template:EnhancementBar]].</span><br>{{User:Belgrave/Sig}}
 +
 
 +
:Will work on it {{User:Greggacam/Sig}}
 +
 
 +
:One Q - how do you make it so that if you don't include the parameter it will be one color or you can change it? Like you can make the color a parameter but then you ''have'' to put in the parameter. In the Enhancement Bar it's optional. {{User:Greggacam/Sig}}
 +
::<span style="color:#060">What I did was use numbers instead of names for my parameters (not necessary, but makes it easier to keep track of them all with less typing. To give them a default, I used:</span>
 +
::<pre>{{{1|default}}}</pre>
 +
::<span style="color:#060">If you look through some of the other templates I've done ([[Template:BPSlots]]), you'll find various other things I've used default parameters for.</span><br>{{User:Belgrave/Sig}}
 +
 
 +
:::Thanks it worked I'll publish it in a bit, working on it. {{User:Greggacam/Sig}}
 +
 
 +
== Parameters ==
 +
 
 +
OK, so I know it looks cool with all the parameters but I think nonbody will use them all, so I'm going to switch it back to what it was, with all the necessary parameters. Belgrave don't take it personally, if you want to make a template like that that's sweet and it'll be cool but I'm just going to stick with the basics, thanks. {{User:Greggacam/Sig}}
 +
 
 +
I'll get to the other 4 templates tomorrow {{User:Greggacam/Sig}}
 +
 
 +
Why doesn't the gold image work? {{User:Greggacam/Sig}}
 +
:<span style="color:#060">You needed a space between the parameter and the gold for the wiki to properly render the page. Otherwise it just reads it as onebigruntogetherlinethatmayhavemoremeaningbutitcannotinterpretitthatway. I fixed it for you.</span><br>{{User:Belgrave/Sig}}
 +
 
 +
On my use of the template at [[User:Greggacam/Skills]] the cell spacing doesn't seem to be doing anything, is there a reason for that? {{User:Greggacam/Sig}}
 +
:<span style="color:#060">When in doubt, look for tiny errors in the code... I just checked and found that all it was missing was a <tt>"</tt> right after the parameter. Without it, you're just left with <tt>cellspacing="3</tt> instead of <tt>cellspacing="3"</tt>. I fixed it on this template... you can do the others.</span><br>{{User:Belgrave/Sig}}
 +
 
 +
::As you can see I'm not very good at coding, thanks for helping me out again. {{User:Greggacam/Sig}}
 +
:::<span style="color:#060">Actually, going back through the page history, it looks like it was my fault it was missing. Yes, even I sometimes make mistakes!</span><br>{{User:Belgrave/Sig}}
 +
 
 +
::::Well there's a first for everything lol. And by the way, can you give a brief explanation of what the span tag is? Thanks! {{User:Greggacam/Sig}}
 +
:::::<span style="color:#060">You can find my previous explaination of span tags at [[User talk:CHiNback#Span Tags]].</span><br>{{User:Belgrave/Sig}}
 +
 
 +
OK I get it now, is there any way I can do a parameter so you can just type in 1 and it'll be in gold and 2 for FSPs? Like 2 defaults. {{User:Greggacam/Sig}}
 +
:<span style="color:#060">It isn't possible right now. HCS would have to install [http://www.mediawiki.org/wiki/Extension:ParserFunctions http://www.mediawiki.org/wiki/Extension:ParserFunctions] to let us do that.</span><br>{{User:Belgrave/Sig}}
 +
 
 +
::Oh well that would really help me with my template, should I make a mandatory parameter of whether it's gold or FSPs?
 +
:::<span style="color:#060">You could just have one parameter for that entire cell... Then anyone that uses it could fill it in themselves. You'd just have to be sure to include instructions to fill it in with either (<tt><nowiki># {{Gold}}</nowiki></tt>) or (<tt><nowiki># {{FSP}}</nowiki></tt>) to get the correct appearance.</span><br>{{User:Belgrave/Sig}}
 +
 
 +
 
 +
::::Ya I was thinking of doing that, I'll go ahead and do it, thanks. {{User:Greggacam/Sig}}

Latest revision as of 02:18, 2 June 2008

Uh, why sort it at "{" within the templates page?

-Phoxtrot 09:00, 26 May 2008 (BST)

Personally, I think this template either needs remade into an actual template or deleted. It's not mine so I'm not going to take the time to edit it.
 Belgrave, Moderator / Sysop  Talk  Message PM 

Contents

Problem

I know it's a bad template but I don't know how to make a real one, and I did the best I could not knowing how. If someone tells me I would be glad to make it into a real template.SUBST:User:Greggacam/SigX


To make a real template, it needs to be able to be put into another page by typing {{templateName|parameters}} instead of just copying some code and pasting it into the other page. I recommend reading http://www.mediawiki.org/wiki/Help:Templates to learn more about how templates work and how to make them.
 Belgrave, Moderator / Sysop  Talk  Message PM 

Bugs

OK so can someone change the title to SkillBox1 for me? And also I don't know what happened with the pages on the Template page, they are listen under }. If anyone can fix that it would be okay, you may edit it if you want.

I think I made a good improvement in 3 minutes, no? Greggacam [Talk Message PM Contributions]

I fixed your problem with the categorizing under }. The problem was you used [[Category:Templates|{}]] instead of [[Category:Templates|{{PAGENAME}}]]. I also noticed a few other code errors in the template which I did not fix... specifically the extra !! at the end of !Skills!!Image!!Level!!Price!! which creates a fifth but empty column in the table. Other than that, there weren't any other problems that blatantly stuck out at me.
 Belgrave, Moderator / Sysop  Talk  Message PM 

OK thanks, and what about the title problem? Greggacam [Talk Message PM Contributions]

Fixed! All that needed done was moving the page to the new title.
 Belgrave, Moderator / Sysop  Talk  Message PM 

Thanks! There isn't a way for me to get a signature like yours without being a sysop, right? And do you notice any more bugs?

Actually, you can read Belgrave's profile. It will lead you to a page where it teaches you how to create your own signature.
                 CHiNback - [ Talk - Message - PM ]
You can find instructions at: Category:User_Signatures. Anyone can make one; you just have to carefully follow the directions and know how to use it.
 Belgrave, Moderator / Sysop  Talk  Message PM 

OK thanks I'm making one right now. Any bugs? Greggacam [Talk Message PM Contributions]

Why is my signature not working?

Click on 'my preferences' at the top of the page. This will bring up a page where you can change all your wiki user settings. Partway down is a box for 'Nickname:'. In that box you put {{SUBST:User:Greggacam/SigX}}. Once you do this, it should work properly. I fixed User:Greggacam/SigX for you too.
 Belgrave, Moderator / Sysop  Talk  Message PM 

OK thanks it works now! Do you notice any issues with the template?  Greggacam [Talk Message PM Contributions]

For a fun time...

How about altering the template to make the table more customizable? For instance, you could make parameters that change the borders, background colors, and just about everything else while keeping the default values! If you'd like to see an example of a template that customizable, check out Template:EnhancementBar.
 Belgrave, Moderator / Sysop  Talk  Message PM 

Will work on it  Greggacam [Talk Message PM Contributions]
One Q - how do you make it so that if you don't include the parameter it will be one color or you can change it? Like you can make the color a parameter but then you have to put in the parameter. In the Enhancement Bar it's optional.  Greggacam [Talk Message PM Contributions]
What I did was use numbers instead of names for my parameters (not necessary, but makes it easier to keep track of them all with less typing. To give them a default, I used:
{{{1|default}}}
If you look through some of the other templates I've done (Template:BPSlots), you'll find various other things I've used default parameters for.
 Belgrave, Moderator / Sysop  Talk  Message PM 
Thanks it worked I'll publish it in a bit, working on it.  Greggacam [Talk Message PM Contributions]

Parameters

OK, so I know it looks cool with all the parameters but I think nonbody will use them all, so I'm going to switch it back to what it was, with all the necessary parameters. Belgrave don't take it personally, if you want to make a template like that that's sweet and it'll be cool but I'm just going to stick with the basics, thanks.  Greggacam [Talk Message PM Contributions]

I'll get to the other 4 templates tomorrow  Greggacam [Talk Message PM Contributions]

Why doesn't the gold image work?  Greggacam [Talk Message PM Contributions]

You needed a space between the parameter and the gold for the wiki to properly render the page. Otherwise it just reads it as onebigruntogetherlinethatmayhavemoremeaningbutitcannotinterpretitthatway. I fixed it for you.
 Belgrave, Moderator / Sysop  Talk  Message PM 

On my use of the template at User:Greggacam/Skills the cell spacing doesn't seem to be doing anything, is there a reason for that?  Greggacam [Talk Message PM Contributions]

When in doubt, look for tiny errors in the code... I just checked and found that all it was missing was a " right after the parameter. Without it, you're just left with cellspacing="3 instead of cellspacing="3". I fixed it on this template... you can do the others.
 Belgrave, Moderator / Sysop  Talk  Message PM 
As you can see I'm not very good at coding, thanks for helping me out again.  Greggacam [Talk Message PM Contributions]
Actually, going back through the page history, it looks like it was my fault it was missing. Yes, even I sometimes make mistakes!
 Belgrave, Moderator / Sysop  Talk  Message PM 
Well there's a first for everything lol. And by the way, can you give a brief explanation of what the span tag is? Thanks!  Greggacam [Talk Message PM Contributions]
You can find my previous explaination of span tags at User talk:CHiNback#Span Tags.
 Belgrave, Moderator / Sysop  Talk  Message PM 

OK I get it now, is there any way I can do a parameter so you can just type in 1 and it'll be in gold and 2 for FSPs? Like 2 defaults.  Greggacam [Talk Message PM Contributions]

It isn't possible right now. HCS would have to install http://www.mediawiki.org/wiki/Extension:ParserFunctions to let us do that.
 Belgrave, Moderator / Sysop  Talk  Message PM 
Oh well that would really help me with my template, should I make a mandatory parameter of whether it's gold or FSPs?
You could just have one parameter for that entire cell... Then anyone that uses it could fill it in themselves. You'd just have to be sure to include instructions to fill it in with either (# {{Gold}}) or (# {{FSP}}) to get the correct appearance.
 Belgrave, Moderator / Sysop  Talk  Message PM 


Ya I was thinking of doing that, I'll go ahead and do it, thanks.  Greggacam [Talk Message PM Contributions]