RTSemantics: Difference between revisions

From AAFNRPWiki
Jump to navigationJump to search
No edit summary
Line 10: Line 10:
<nowiki>[[campaign::YuriRT1| ]]</nowiki><br />
<nowiki>[[campaign::YuriRT1| ]]</nowiki><br />
<nowiki>[[chartype::PC| ]]</nowiki><br />
<nowiki>[[chartype::PC| ]]</nowiki><br />
Or, if you want to be fancy, you can make it into a one-liner:
<nowiki>{{#set: player=Jason Larke|role=Missionary|campaign=YuriRT1|chartype=PC}}</nowiki>


= Markup for ships =
= Markup for ships =

Revision as of 04:58, 7 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.

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 ships

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

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

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.