Jump to content


Photo
wanted

A bit of help for custom template



  • Please log in to reply
6 replies to this topic

#1 Kesta

Kesta

    Thane

  • Mod Authors
  • PipPipPipPipPipPip
  • 471 posts

Posted 04 December 2015 - 12:18 AM

Hello !

 

I'm trying to put together a template for my user-made guide for FO4. The objective is essentially to make it easy to maintain for me, and ensure visual-consistency between every listed mod.

 

Basically, I need a header for the mod (its name with a link to download it), its version and author, and the list of files to download on the mod page.

 

That part was easy. However, I'd like to split the list between the 5 different sections you can find on nexus mods (fyi : main, update, optional, miscellaneous, older). To get one sorted properly, it's okay. However, if there is files to download in two different sections, things get tricky to put in a template, and I'd like a bit of help with that.

 

 

Here is what I've done so far : http://wiki.step-pro...ta/CustomFO4Mod

 

Now, since the number of potential categories is predefined, I'm pretty sure I could do a big ugly thing like this :

includeonly code
 
I don't know for wiki content editor, but as a programmer, this really hurt my eyes. Since I know there is some pretty skilled wiki editor arround, I figured I could just ask for advices :)
 
 
The final objective is to be able to write something like this ;
Wiki content
And have everything layed out nicely.

  • 0

#2 DoubleYou

DoubleYou

    Wiki Stepper

  • Super Moderators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 4,467 posts

Posted 04 December 2015 - 02:27 AM

It will be easier if you label each parameter. What you want is rather simple. You will need to use an array for the filenames.

#3 Kesta

Kesta

    Thane

  • Mod Authors
  • PipPipPipPipPipPip
  • 471 posts

Posted 04 December 2015 - 02:45 AM

Excellent, nor sure why I didn't think of that. Array are completely new to me, maybe I was a bit shy with it. Working like a charm.


  • 0

#4 darkside

darkside

    High King

  • Mod Authors
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 1,331 posts

Posted 04 December 2015 - 02:39 PM

Can you steal template from Neo? I actually like SRLE template. Plan to setup follow your guide soon.
  • 0

#5 Kesta

Kesta

    Thane

  • Mod Authors
  • PipPipPipPipPipPip
  • 471 posts

Posted 04 December 2015 - 06:02 PM

Neo isn't using a template, he's writing everything down. But I could somehow manage to have a similar look now that the template itself is set. (That's the purpose of a template, being able to alter the look of the whole guide just by editing a few lines).

 

But I don't think it'll end-up looking like SR:LE. Available tools and global modding capabilities are expanding, and I expect some part of mod management to be far more complex with FO4 than it used to be with Skyrim (1st reason being MO2 not managing .BA2 as MO1 did with .bsa, and the new ;ba2 caching), so using "old" layout might present some clarity issues at one point.


Edited by Kesta, 04 December 2015 - 06:03 PM.

  • 0

#6 TechAngel85

TechAngel85

    Akatosh

  • Administrators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 11,944 posts

Posted 04 December 2015 - 06:48 PM

Neo isn't using a template, he's writing everything down. But I could somehow manage to have a similar look now that the template itself is set. (That's the purpose of a template, being able to alter the look of the whole guide just by editing a few lines).

I akin the wiki templates to the old HTML includes with SSI. Edit one file (aka page), and it changes it throughout the entire site. Of course if anyone wasn't designing web sites back in the days when SSI was very popular (think pre-WordPress), this would be just as foreign as the wiki templates.



#7 z929669

z929669

    Ixian Inventor

  • Administrators
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 9,250 posts

Posted 08 December 2015 - 12:10 PM

It is very simple to create/use various look/feel templates, but it is almost just as simple to use standard look/feel if it works (as neo does). Templates are useful for article elements that use a specific format that employs wiki code reuse. Normal text and wiki code lists and such are not good candidates for handling via template. Repetitive custom layout and/or look/feel deviations are.

 

For example, it is not necessary to convert the followign to template:

some information:
* bulleted list

However, it may be convenient to use a template for the following:

some information:
: {{Fs|0.9em|{{Fc|white|'''Exceptions to said info'''}}}} 
*bulleted list




Also tagged with one or more of these keywords: wanted

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users