Yup! Another question! I’m in a new project and as I said before I never used mediawiki and its extensions. So I’m a bit overwhelmed
I installed Semantic MediaWiki extension because I got a lot of informations to sort and I’d like to reuse them as much as possible so in case I need to modify (or just reuse) the information, it will be much easier.
I got an article of a game character. I’d like to set his name, of course, but also a list of his abilities.
My issue is with the fact that a character have multiple abilities and each ability require an icon, a text description, some stats, etc. I would like to avoid creating a single page for each abilities cause I’d be create 1000 pages just to add those abilities and they are not that complicated so not much to show on each page. I’d also like to be able to translate those text string.
I cannot think of a proper way to do this without creating a mess.
I saw a wiki making a template for each field and writing the required data in them but if someone want to modify or add an ability, it will require a lot of template updates.
I already have an extension for that and it look great.
right now all I can think of would be something like:
{{#set:
Has Name=Somename
|Has Type=Killer
|Has Power Icon=File:someicon.png
|Has Power=Some power description here. This might be two sentences.
|Has ability Name=My super ability
|Has Ability Icon One=
|Has Ability Description One=
|Has ability One Triggerchance=40%
|Has Ability Icon Two=
|Has Ability Description Two=
}}
Now the problem, obviously, is that the abilities are spliced out and this will be hard to search or to display a template table with all the abilities and icons for each character.
I need to display each abilities of a single character, but also be able to retrieve one ability without knowing if I stored it in One or Two.
I’d like to avoid changing the code and adding PHP into it to manage data. Also I believe Semantic is powerful enough to accomplish what I need, I just need to find the right way of doing it.
Sorry for this long thread.
Here’s a beer to cheer you up