Log in

View Full Version : WIKI template = MODULE CREATION!



Oberoten
July 4th, 2008, 00:30
Hohum...
... I think I might have found something useful. :)

I host a Wiki and I have been managing to get one of my players to do entry on Data for weapons and the like into a basic template.

(Generally looks like {{{Template| Weapon=Namehere|Damage=DieCode}}} Etc

Now... I just realized this can be done and I can later change how the template displays this on a webpage. Pretty much I (HOPE) automating creation of a beastiary and/or other MODs for the library.

Dang Wikipedia is FUN.

Oberoten
July 4th, 2008, 00:54
I checked this out more thoroughly now and yes, it works.
*grins* For those making a ruleset it might actually pay off in time to get one of those Wiki on a stick things and learn how to make templates.

Pheonix-IV
July 4th, 2008, 11:19
*cough*Make a 4e MM*cough*

Oberoten
July 4th, 2008, 21:04
Now why on earth would I do that? ;) Remember I am not a D&D Player.

I am however willing to share my methods for others that might be willing to use them.

ronalmb
August 3rd, 2008, 02:33
I would be willing to hear your methods :)

Wargamer777
August 3rd, 2008, 06:17
I'll second that.. spout forth thine wisdom! lol

Oberoten
August 3rd, 2008, 06:46
A wiki template works with

{{Name|Parameter1|Parameter2|Parameter3|Parameter4 }}


When called shows a page with the parameters inserted into HTML as a proper webpage. It isn't terribly hard to do a page that shows the formatted XML with {{{Parameter1}}} instead of "Broadsword" etc. :)

Now I have made two Templates with similiar names : {{Conv1}} and {{Conv2}}

{{Conv1}} Shows the data input after the pipes as a table...
Which is REAL useful for just getting to debug your input.

{{Conv2}} on the other hand inputs it into showing finishes XML. Just to copy and paste into the XML of the Modfile.

Example of the Conv2 template page :



<NoWiki><</NoWiki>{{{Name}}}<NoWiki>>
<listlink type="windowreference">

<class>referenceskill</class>

<recordname>reference.virtue.</noWiki>{{{Name}}}<noWiki>@Arm Basic Rules</recordname>

</listlink>

<name type="string"></noWiki>{{{Name}}}<NoWiki></name>

</</NoWiki>{{{Name}}}<NoWiki>></noWiki>



So feeding the template with :
{{Conv2|Name=Keen Eyes |Value=+2|Desc=Gives +3 to PER based rolls for sight.}}

Gives output of Conv2



<Keen Eyes> <listlink type="windowreference"> <class>referenceskill</class> <recordname>reference.virtue.Keen Eyes@Arm Basic Rules</recordname> </listlink> <name type="string">Keen Eyes</name> </Keen Eyes>