Template:40kstar: Difference between revisions

From AAFNRPWiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 20: Line 20:
</noinclude>
</noinclude>
  <includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}{{#set:has40kstar=Yes|Campaign={{{Campaign}}}|Star Name={{#if: {{{Star Name|}}}|{{{Star Name}}}|{{#titleparts: {{PAGENAME}}||-1}}}}}}
  <includeonly>{{DISPLAYTITLE:{{SUBPAGENAME}}}}{{#set:has40kstar=Yes|Campaign={{{Campaign}}}|Star Name={{#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}}}}
{{#if: {{{Star type|}}}|'''Star type''': {{{Star type}}}|}}{{#if: {{{Star type|}}}|{{#set:Star type={{{Star type}}}}}}}
{{#ask: [[Has40kplanet::true]] [[Campaign::{{{Campaign}}}]] [[Starpage::{{PAGENAME}}]]
{{#ask: [[Has40kplanet::true]] [[Campaign::{{{Campaign}}}]] [[Starpage::{{PAGENAME}}]]
| link=none
| link=none
Line 34: Line 33:
| ?Planet Name
| ?Planet Name
| ?40kipd
| ?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 19:02, 28 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