RTSemantics: Difference between revisions

From AAFNRPWiki
Jump to navigationJump to search
Line 39: Line 39:


= Other fanciness =
= Other fanciness =
When you refer to an NPC, especially in a game log, use this:
<nowiki>{{npcref|Name of NPC here}}</nowiki>
It will avoid the heartache of redlinks (use the add an NPC button on the front page to add NPC pages) but also link that NPC to that log if there if/when the NPC page gets created.


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


<nowiki>{{ship|Voidspear}}</nowiki> automatically translates to {{ship|Voidspear}}.
<nowiki>{{ship|Voidspear}}</nowiki> automatically translates to {{ship|Voidspear}}.


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

Revision as of 15:00, 20 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

When you refer to an NPC, especially in a game log, use this:

{{npcref|Name of NPC here}}

It will avoid the heartache of redlinks (use the add an NPC button on the front page to add NPC pages) but also link that NPC to that log if there if/when the NPC page gets created.

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.