RTSemantics: Difference between revisions

From AAFNRPWiki
Jump to navigationJump to search
No edit summary
Line 30: Line 30:
If you want to create a page for a ship, the markup is a little longer:
If you want to create a page for a ship, the markup is a little longer:


<nowiki>[[Category:Ship]]</nowiki><br />
<nowiki>{{Infobox ship </nowiki><br />
<nowiki>{{Infobox ship </nowiki><br />
<nowiki>| Class = ship class</nowiki><br />
<nowiki>| Class = ship class</nowiki><br />

Revision as of 09:24, 10 July 2010

The Semantic extension for the Wiki lets us treat parts of a Wiki article as though they were database fields, which other pages can query. That means other Wiki authors can make lists of information without having to copy and paste information. The downside to all this awesomeness is that you need to make sure your articles have all the right magic tags to them.

Navigation Bar

Put this navigation bar code at the top of every page.

{{Template:YuriRT1_Nav_Bar}}

Markup for PCs

For new PCs, put this block at the bottom of your character's page:

[[player::Your Name| ]]
[[role::Your character's class or function in the party.| ]]
[[campaign::YuriRT1| ]]
[[chartype::PC| ]]

Or, if you want to be fancy, you can make it into a one-liner:

{{#set: player=Jason Larke|role=Missionary|campaign=YuriRT1|chartype=PC}}

Markup for NPCS

{{#set role=half-line description of how this NPC fits into the game|campaign=YuriTR1|chartype=NPC}}

Markup for ships

If you want to create a page for a ship, the markup is a little longer:

{{Infobox ship
| Class = ship class
| Desc = A short (15 words or so max) description of the ship
| Campaign = YuriRT1
}}

If you need to fully stat a ship out, you want Template:Rtshipstats & Template:Rtshipwep. Form:Rtshipstats can make statting out a ship much easier.

Other fanciness

If you're referring to a ship, you can avoid the mess of brackets and apostrophes and just use this magic:

{{ship|ship's name here}}

Example:

{{ship|Voidspear}} automatically translates to Voidspear.


You can also insert that ship's class with this magic:

{{#show: ship's name here | ?Class}}

Example:

{{#show: Voidspear | ?Class}} turns into Lunar-class Cruiser.