User talk:Wraith0x29a

From BattleMaster Wiki
Jump to navigation Jump to search
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. - edit: incorrect, see reply below.
  • This technique cannot be used for parameters that need a hard-coded default - edit: incorrect, see reply below.
  • 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.
Wraith0x29a 21:58 4th November 2009 (UTC)
You're right, I screwed up the formatting in my examples. :) I meant to show it like this: {{{FirstParameter | {{{1}}} }}}. I use this in a couple of my templates, and some of the semantic template, too. You can nest this a couple levels deep, too, or even provide a default value, like this: {{{FirstParameter | {{{1|Kepler}}} }}}. I hope my screw up didn't cause you too much extra work. --Indirik (talk), Editor (talk) 18:06, 7 December 2009 (UTC)
No problems, extra learning is never wasted. I'd not thought about nesting to get default values either, that is very useful.
Wraith0x29a 19:32 7 November 2009

Unique Item Template

Regarding your comment on Silver Shield's last edit, auto-linking to characters would be bad as not everyone has a family page, let alone a character page. However, if you are successful in allowing links within the template (to be added manually), that would be incredibly helpful. --Ethan Lee Vita (Talk), Editor and Community Manager 10:32, 2 April 2010 (UTC)

I was thinking of having the item template call something like Template:HadezUtilFamilyLinks which only creates a link if the family and/or character exists. Now that I've actually thought about it, though, that would not work unless there was a way to denote the family and character parts of the name in the item template (because surnames or forenames with spaces cause ambiguity) and that would require changing the interface to the item template which is not practical. I'll have a look at how to allow manual links to work in the template, though. wraith0x29a 11:57, 2 April 2010 (UTC)
I've looked into allowing links to be passed as values to the Unique Item Template but it seems problematic. Firstly we need a way to only assign the label of a link (rather than the entire link mark-up) to the owner property. Secondly there seems to be a restriction/bug that prevents passing a sub-page link of the form [[page/subpage]] as a parameter to a template; the link mark-up is converted to just the label in bold text before it is assigned as a template parameter. wraith0x29a 15:12, 2 April 2010 (UTC)

Wiki Battle Report Template?

Hii Janna, just wondering how you did the Mansbridge Battle report for Norland (Ah the good old days) , ie - http://wiki.battlemaster.org/wiki/Norland/Battles/2009-11-07-pm-mansbridge, as if possible I'd like to poach it to record some battles also. Thanks! --The Scipii Family 14:23, 9 January 2011 (CET)

I wrote a php script where you just cut-and paste the html 'source' from a battle report page into it and get it back formatted for wikitext. It's on my intranet just now but I'll adapt it and stick it online somewhere soon. If you want it before then I can mail you the source though you'll have to hack out all the stuff that is specific to my site. It's not pretty as it relies on quirks of formatting in battle reports to work out some stuff but it seems to work on all the battles I've tested it on. -- wraith0x29a 17:49, 13 January 2011 (CET)

Template:Hadezchardata

I don't know how it flew under my radar all this time, but I just wanted to say that your semantic character template is superb! --Revan (talk) 01:16, 16 August 2013 (CEST)