RTSemantics: Difference between revisions
(Created page with '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…') |
No edit summary |
||
Line 5: | Line 5: | ||
For new PCs, put this block at the bottom of your character's page: | For new PCs, put this block at the bottom of your character's page: | ||
<nowiki> | <nowiki>[[player::Your Name| ]]</nowiki><br /> | ||
[[player::Your Name| ]]<br /> | <nowiki>[[role::Your character's class or function in the party.| ]]</nowiki><br /> | ||
[[role::Your character's class or function in the party.| ]]<br /> | <nowiki>[[campaign::YuriRT1| ]]</nowiki><br /> | ||
[[campaign::YuriRT1| ]]<br /> | <nowiki>[[chartype::PC| ]]</nowiki><br /> | ||
[[chartype::PC| ]]< | |||
</ | |||
= Markup for ships = | = Markup for ships = | ||
Line 16: | Line 14: | ||
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> | <nowiki>[[Category:Ship]]</nowiki><br /> | ||
[[Category:Ship]]<br /> | <nowiki>{{Infobox ship </nowiki><br /> | ||
{{Infobox ship <br /> | <nowiki>| Class = ship class</nowiki><br /> | ||
| Class = ship class<br /> | <nowiki>| Desc = A short (15 words or so max) description of the ship</nowiki><br /> | ||
| Desc = A short (15 words or so max) description of the ship<br /> | <nowiki>| Campaign = YuriRT1</nowiki><br /> | ||
| Campaign = YuriRT1<br /> | <nowiki>}}</nowiki> | ||
}}</nowiki> | |||
= Other fanciness = | = Other fanciness = |
Revision as of 16:21, 11 February 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| ]]
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.