Subscribe to rss feed

Using templates for workgroup Wiki pages | Project management | Forum

 
You must be logged in to post user permissions login Login register Register


Register? | Lost Your Password?

Search Forums:


searchicon 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

topic

Using templates for workgroup Wiki pages

print
small tagNo Tags
UserPost

11:02 pm
November 18, 2009


Luke Maurits

Adelaide, Australia

Admin

posts 1483

offline
link
print
1
0
ratedowngrey
rateupgrey

Driven mad by 49 C (111 F) heat, I have taken a second stab at using templates in our Wiki, to somewhat greater success this time.

Check out the page Template:CLLARE_Workgroup.  This is a template for the main page of a CLLARE workgroup.  The template is given a single argument (the workgroup name) and from that it puts together a nice looking page of boxes which includes the contents of the pages "{ARGUMENT} Workgroup Purpose" and "{ARGUMENT} Workgroup Main Tasks", and includes a link to the page "{ARGUMENT} Workgroup suggested reading".

You look at the NGW main page for an example of this template in use.  The code for that page (which you can see just by editing it) is now nothing but "{{CLLARE Workgroup|Navigation and Guidance}}".  All the actual content has been pulled in from this article and this article.

The advantage of using this approach to do all of our workgroup main pages is that they will look perfectly consistent.  We can change the CLLARE Workgroup template at any stage in the future (to make it more informative or prettier) and all the workgroup pages will automatically change to reflect it.

NGW is the only workgroup I've changed to work this way so far.  Eventually it would be good if they all worked this way (in fact, the idea makes no sense if they don't all do it), but I'm not sure when we are migrating Wiki content or how so I'm holding off for now.

Workgroups probably aren't the only place we can use templates like this to increase consistency and reduce work.  If people could make some effort to understand how the templating works and use them where they think it makes sense, our Wiki will probably turn out being more awesome than it otherwise would.  Thanks!

Main CLLARE workgroups: Mission Planning, Navigation and Guidance. I do maths, physics, C, Python and Java.

11:07 pm
November 18, 2009


Rocket-To-The-Moon

Altus, Oklahoma, USA

Member

posts 685

offline
link
print
2
0
ratedowngrey
rateupgrey

I like it. How do you create templates as opposed to new pages?

Main Workgroups: Propulsion & Spacecraft Engineering

11:22 pm
November 18, 2009


Luke Maurits

Adelaide, Australia

Admin

posts 1483

offline
link
print
3
0
ratedowngrey
rateupgrey

You create new templates just like you would create new pages, just make sure you start the page name with "Template:".  E.g. if you wanted to create a template for, say, vehicles, you could make a page called "Template:Vehicle".  Then you could create a page with the title "CLLARE Command Module" and make the code for that page "{{Vehicle|arg1|arg2|…|argn}}".  Then CLLARE Command Module would look just like the vehicle template but with all the template's occurences of {{{1}}} replaced by "arg1", etc.  You can pass named parameters, too, check out this page for examples.

Main CLLARE workgroups: Mission Planning, Navigation and Guidance. I do maths, physics, C, Python and Java.

11:51 pm
November 18, 2009


Luke Maurits

Adelaide, Australia

Admin

posts 1483

offline
link
print
4
0
ratedowngrey
rateupgrey

I notice you have changed the list of workgroups (which is included into the main page via the templating mechanism) to contain links to the Selene booster pages.

This is just my opinion and I'm open to discussion, but I think it might be best if that is kept purely as a list of workgroups, both since that's that the title above it on the mainpage says and because that way if we ever need a list of all the workgroups somewhere else we can just include it there conveniently.

At the same time, I understand that you want the Selene pages somewhere prominent.  Take a look at the NGW page now – I've changed the workgroup template to include an "important wiki pages" box.  Perhaps you could switch the PG page to the template and put the modular booster / Selene links in that position?  This would keep the overall structure of things neatest in my view, but like I said, I'm up for persuasion, I certainly don't want people to start thinking of me as some kind of Wiki Nazi (if they haven't already!).

Main CLLARE workgroups: Mission Planning, Navigation and Guidance. I do maths, physics, C, Python and Java.

small tagNo Tags

About the CSTART – Collaborative Space Travel and Research Team Forum

Forum Timezone: UTC -6

Most Users Ever Online: 59

Currently Online:
8 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 4
Forums: 36
Topics: 512
Posts: 3809

Membership:

There are 1133 Members

There are 2 Admins

Top Posters:

Rocket-To-The-Moon – 685
brmj – 402
rpulkrabek – 348
DenisG – 69
antinode – 64
J. Simmons – 46

Recent New Members: jmwright, uhwuggawuh, seikialice88, bishvabis, alijayadv, harris

Administrators: Luke Maurits (1483 Posts), Rizwan (170 Posts)



 
share save 120 16