Template:40kstar: Difference between revisions

From AAFNRPWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(40 intermediate revisions by the same user not shown)
Line 3: Line 3:


<nowiki>
<nowiki>
{{40kstar|Star Type=K|Orbital bodies=* Planet 1 (unnamed metallic rock)
{{40kstar|Star type=K|Orbital bodies=* Planet 1 (unnamed metallic rock)
* Planet 2 (unnamed metallic rock)
* Planet 2 (unnamed metallic rock)
* Planet 3 (unnamed Death World with high sulfuric acid content in atmosphere, uninhabitable
* Planet 3 (unnamed Death World with high sulfuric acid content in atmosphere, uninhabitable
Line 12: Line 12:
produces this result:
produces this result:


{{40kstar|Star Type=K|Orbital bodies=* Planet 1 (unnamed metallic rock)
{{40kstar|Star type=K|Orbital bodies=* Planet 1 (unnamed metallic rock)
* Planet 2 (unnamed metallic rock)
* Planet 2 (unnamed metallic rock)
* Planet 3 (unnamed Death World with high sulfuric acid content in atmosphere, uninhabitable
* Planet 3 (unnamed Death World with high sulfuric acid content in atmosphere, uninhabitable
Line 19: Line 19:
|Player Assets=Family-owned warehouse & loading facility near the Navy fortress}}
|Player Assets=Family-owned warehouse & loading facility near the Navy fortress}}
</noinclude>
</noinclude>
  <includeonly>__NOTITLE__
  <includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}{{#set:has40kstar=Yes|Campaign={{{Campaign}}}|Star Name={{#if: {{{Star Name|}}}|{{{Star Name}}}|{{#titleparts: {{PAGENAME}}||-1}}}}}}
= {{#if: {{{Star Name|}}}|{{{Star Name}}}|{{#titleparts: {{PAGENAME}}||-1}}}} =
{{#if: {{{Star type|}}}|'''Star type''': {{{Star type}}}|}}{{#if: {{{Star type|}}}|{{#set:Star type={{{Star type}}}}}}}{{#if: {{{nomoreplanets|}}}|{{#set:nomoreplanets={{{nomoreplanets}}}}}|{{#set:nomoreplanets=false}}}}
 
{{#ask: [[Has40kplanet::true]] [[Campaign::{{{Campaign}}}]] [[Starpage::{{PAGENAME}}]]
{{#set:has40kstar=Yes|Campaign={{{Campaign}}}|Star Name={{#if: {{{Star Name|}}}|{{{Star Name}}}|{{#titleparts: {{PAGENAME}}||-1}}}}}}
 
{{#if: {{{Star type|}}}|* '''Star type''': [[Star type::{{{Star type}}}]]}}
{{#ask: [[Has40kplanet::true]] [[Campaign::{{{Campaign}}}]] [[Star::{{#if: {{{Star Name|}}}|{{{Star Name}}}|{{#titleparts: {{PAGENAME}}||-1}}}}]]
| link=none
| link=none
| format=template
| format=template
| template=40kstarplanets
| template=40kstarplanets
| sort=Planet Number
| order=ASC
| intro=
| intro=
==  Documented Planets  ==
==  Documented Planets  ==
Line 34: Line 32:
| outro=</ul>
| outro=</ul>
| ?Planet Name
| ?Planet Name
| ?40kipd
| ?Planet Number
}}
}}
 
{{#ifeq: {{{nomoreplanets}}}|Yes||{{#forminput:form=40kplanet|query string=super page=YuriRT1&40kplanet[Campaign]={{{Campaign}}}&40kplanet[Star]={{SUBPAGENAME}}&40kplanet[Planet Number]={{#expr: 1 + {{#ask: [[Has40kplanet::true]] [[Campaign::{{{Campaign}}}]] [[Starpage::{{PAGENAME}}]]||?Planet Number#-|link=none|sort=Planet Number|order=DESC|limit=1|mainlabel=-|headers=hide|searchlabel=|default=0}}}}|button text=Add Planet}}}}
{{#if: {{{Orbital Bodies|}}}|==  Orbital Bodies ==
{{#if: {{{Orbital Bodies|}}}|==  Orbital Bodies ==


Line 45: Line 45:


{{{Player Assets}}}
{{{Player Assets}}}
}}
}}[[Page has default form::Form:40kstar|&nbsp;]]</includeonly>

Latest revision as of 04:02, 29 April 2011

Template describing a star in the Fantasy Flight 40k games. This markup:

{{40kstar|Star type=K|Orbital bodies=* Planet 1 (unnamed metallic rock) * Planet 2 (unnamed metallic rock) * Planet 3 (unnamed Death World with high sulfuric acid content in atmosphere, uninhabitable * Imperial Navy Blackstone Fortress in solar orbit between planets 3 and 4 * Planet 4 (gas giant) |Player Assets=Family-owned warehouse & loading facility near the Navy fortress}} produces this result:


Property "Campaign" (as page type) with input value "{{{Campaign}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.

Star type: K


Notes

Player Assets

Family-owned warehouse & loading facility near the Navy fortress