Difference between revisions of "User talk:Wraith0x29a"

From BattleMaster Wiki
Jump to navigation Jump to search
(Response to comments by Indirik)
m
Line 56: Line 56:
 
--[[User:Indirik|Indirik]] ([[User talk:Indirik|talk]]), [[BattleMaster Wiki:Editors|Editor]] ([[BattleMaster Wiki:User-Editors Talk|talk]]) 15:16, 4 December 2009 (UTC)
 
--[[User:Indirik|Indirik]] ([[User talk:Indirik|talk]]), [[BattleMaster Wiki:Editors|Editor]] ([[BattleMaster Wiki:User-Editors Talk|talk]]) 15:16, 4 December 2009 (UTC)
  
::Although template inclusion tags using numeric parameters can only use the horizontal format those using named parameters can be horizontally or vertically formatted so I prefer to call them the 'named' and 'numeric' formats, I'll do that in the following text for clarity.
+
 
 +
 
 +
::Although template inclusion tags using numeric parameters can only use the horizontal format those using named parameters can be horizontally or vertically formatted so I prefer to call them the ''named'' and ''numeric'' formats, I'll do that in the following text for clarity.
  
 
::According to the MediaWiki docs (http://www.mediawiki.org/wiki/Templates#Parameters) the <nowiki>{{ParamName|Value}}</nowiki> syntax is for setting a default value for the parameter.
 
::According to the MediaWiki docs (http://www.mediawiki.org/wiki/Templates#Parameters) the <nowiki>{{ParamName|Value}}</nowiki> syntax is for setting a default value for the parameter.
Line 73: Line 75:
 
::..to..<br>
 
::..to..<br>
 
::<nowiki>{{{ family | {{{1}}} }}}</nowiki> and <nowiki>{{{ char | {{{2}}} }}}</nowiki><br>
 
::<nowiki>{{{ family | {{{1}}} }}}</nowiki> and <nowiki>{{{ char | {{{2}}} }}}</nowiki><br>
::..in the template works fine when using named parameters or either <nowiki>{{HadezUtilFamilyLinks|Da Hadez|Erisha|}}</nowiki> or <nowiki>{{HadezUtilFamilyLinks|2=Erisha|1=Da Hadez}}</nowiki><br>
+
::..in the template works fine when using<br>
 +
::<nowiki>{{HadezUtilFamilyLinks|family=Da Hadez|char=Erisha|}}</nowiki> or<br>
 +
::<nowiki>{{HadezUtilFamilyLinks|Da Hadez|Erisha|}}</nowiki> or<br>
 +
::<nowiki>{{HadezUtilFamilyLinks|2=Erisha|1=Da Hadez}}</nowiki><br>
 
::..so long as you make that change for every mention of the parameter in your template.<br>
 
::..so long as you make that change for every mention of the parameter in your template.<br>
  
Line 80: Line 85:
 
::*Required parameters should be coded to use the first numbers (1,2,3..)
 
::*Required parameters should be coded to use the first numbers (1,2,3..)
 
::*The user must put the parameters in the right order.  
 
::*The user must put the parameters in the right order.  
::*If skipping any optional parameters the user must put in blank values for that parameter if any others follow, eg. <nowiki>{{HadezUtilFamilyLinks|Da Hadez|Erisha||Erisha}}</nowiki>
+
::*If skipping any optional parameters the user must put in blank values for that parameter if any others follow..<br>
 +
::eg. <nowiki>{{HadezUtilFamilyLinks|Da Hadez|Erisha||Erisha}}</nowiki>
 
::*Any optional parameters that are skipped will default to no value.
 
::*Any optional parameters that are skipped will default to no value.
 
::*This technique cannot be used for parameters that need a hard-coded default.
 
::*This technique cannot be used for parameters that need a hard-coded default.

Revision as of 00:02, 5 December 2009

Stuart
Home Country
UK
  Game Family
Da Hadez
(Wiki Page)

Hi

Hi ! I don't know what is your character in Oritolon, but I want to congratulate you about the work you are doing for Oritolon in the wiki ! It is really great work !!! I have a character in Oritolon called Abraham, but he is currently paused for at least 9 month :)


Hi back at you. My character in Oritolon is Erisha Da Hadez who knows Abraham well. Her brother Balian in Norland knows her brother Krash well too. ;-)

Glad you like the stuff I've put up so far. Oritolon is in a bit of a slump right now and I'm trying to kick-start interest from old and new Oritolon nobles alike.


Minor edit?

Is the death of Balian De Hades really a minor edit? In Wikis, minor is usually only used when you change something minor, like spelling or grammar, not when you add a paragraph to an article. --OOC Habap 20:01, 18 April 2007 (CEST)


Just too modest I guess. I had to stop editing when I got kicked out the door at work so they could lock up. Once I've finished editing the article I'll submit it as a normal edit so it will show up where minor edits are filtered out.

Editing

Please don't use underscores, spaces are part of the style. I hope you don't mind the minor edits to the page, just trying to keep it organized. Feel free to revert that you don't like. --Vita Family 20:36, 10 December 2008 (CET)

Thanks, I thought links needed underscores (IIRC they do when you link to a wiki page in the game but you have to use HTML entities for the nunderscores)
Nah, they don't use underscores in game. Thats the url, and that gets converted to underlined and kills the link. To link to stuff in game you use basic wiki linking such as Vita Family, Ohnar West, or Da Hadez Family/Severn. --Vita Family 20:55, 10 December 2008 (CET)

Karith

You'd be happy to know his death is causing quite an uproar with death duel challenges to Ethialans galore, debates, and political fallout from Ethiala's allies. --Vita Family 08:35, 22 December 2008 (CET)

Good to know, it came as a bit of a shock to see him executed as a traitor to a realm I don't remember him ever being a member of! To be fair he had murdered nearly 100 Ethalian militia so was not innocent by any means but still.. those legal loopholes can be deadly! Oh well, such is the fate of all who choose the shadows.
Apparently you left the realm as a commoner. Ironically, Duke and General Primus of Ethiala had done the same thing to the same realm. lol --Vita Family 09:24, 22 December 2008 (CET)
By the way, I made a mistake. Chancellor Feo Delgado executed you. Silly Ethiala with vague title names. --Vita Family 09:25, 22 December 2008 (CET)
Just noticed that myself - will fix my entries

Another useful template hint

Another good thing I found while working on templates is to include the possibility to specify parameters using the horizontal format. That way the user doesn't have to remember the parameter name syntax. Even better is to allow both. That way the user can specify parameters either way, like this:

Vertical Format:

{{TemplateName
|FirstParameter = Something
|SecondParameter = Something Else}}

Horizontal Format:

{{TemplateName|Something|Something Else}}

The horizontal format is especially useful for templates that only require one or two parameters. The really useful thing is to allow people to use either one. You can do it using the following syntax in your template:

This is the first parameter: {{{FirstParameter|1}}}
This is the Second parameter: {{{SecondParameter|2}}}

Something like that could be really good for Template:HadezUtilFamilyLinks. --Indirik (talk), Editor (talk) 15:16, 4 December 2009 (UTC)


Although template inclusion tags using numeric parameters can only use the horizontal format those using named parameters can be horizontally or vertically formatted so I prefer to call them the named and numeric formats, I'll do that in the following text for clarity.
According to the MediaWiki docs (http://www.mediawiki.org/wiki/Templates#Parameters) the {{ParamName|Value}} syntax is for setting a default value for the parameter.
eg. In the case of your example {{FirstParameter|1}} if FirstParameter=something was not explicitly set in the template inclusion tag (if the numeric format was used or it was an optional parameter) then the value of FirstParameter would be set to '1' in the template.
A template using that code still works when correct named parameter format is used for the template inclusion tag but not when numeric format is used and even using named format any missing parameters will cause unexpected results as their values will be set to the given default number.
You got me thinking how to do this, though.
You can support both numeric and named parameters with some reworking of the template and some restrictions.
Technique
Setting the default value of a named parameter in a template to be the submitted value of a numeric parameter seems to work; converting..
{{{ family }}} and {{{ char }}}
..to..
{{{ family | {{{1}}} }}} and {{{ char | {{{2}}} }}}
..in the template works fine when using
{{HadezUtilFamilyLinks|family=Da Hadez|char=Erisha|}} or
{{HadezUtilFamilyLinks|Da Hadez|Erisha|}} or
{{HadezUtilFamilyLinks|2=Erisha|1=Da Hadez}}
..so long as you make that change for every mention of the parameter in your template.
Restrictions
  • Required parameters should be coded to use the first numbers (1,2,3..)
  • The user must put the parameters in the right order.
  • If skipping any optional parameters the user must put in blank values for that parameter if any others follow..
eg. {{HadezUtilFamilyLinks|Da Hadez|Erisha||Erisha}}
  • Any optional parameters that are skipped will default to no value.
  • This technique cannot be used for parameters that need a hard-coded default.
  • As with any template if it is included more than once on the same page parameter values are inherited from the previous use of the template then overwritten by the values given for the current use. If values that were set in the previous use are not set in the current use (omitted optional parameters or invalid parameter values) strange results can occur.
As the Template:HadezUtilFamilyLinks does not need hard-coded defaults for any of it's parameters I've adapted the template to use this technique and allow numeric or named parameters to be used. I have updated the docs accordingly.
Wriaht0x29a 21:58 4th November 2009 (UTC)