Difference between revisions of "Template:SemanticTest"

From BattleMaster Wiki
Jump to navigation Jump to search
m (*sigh* typos...)
m (more parameters)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{WantPop}}} | Yes | [[population:: {{{Pop}}}]] | }}</includeonly>
+
<includeonly>{{#ifeq: {{{WantPop}}} | Yes | [[population:: {{{Pop}}}]]<br> | }}
 +
{{#ifeq: {{{WantCapital}}} | Yes | [[capital of:: {{{CapitalOf}}}]]<br> | }}
 +
{{#ifeq: {{{WantRegionType}}} | Yes | [[is region type:: {{{RegionType}}}]]<br> | }}</includeonly>
 +
{{#ifeq: {{{WantFeature}}} | Yes | [[has feature:: {{{Feature}}}]]<br> | }}</includeonly>
 
<noinclude>
 
<noinclude>
 
This template is being used for testing [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions parser functions] for use in the [[Semantic Wiki]].
 
This template is being used for testing [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions parser functions] for use in the [[Semantic Wiki]].
  
Params:
+
Parameters:
 
* WantPop - Yes if you want population shown.
 
* WantPop - Yes if you want population shown.
 
* Pop - the population value
 
* Pop - the population value
 +
* WantRegionType
 +
* RegionType
 +
* WantCapital
 +
* CapitalOf
 +
* WantFeature
 +
* Feature
  
  

Revision as of 19:48, 10 February 2009

</includeonly>

This template is being used for testing parser functions for use in the Semantic Wiki.

Parameters:

  • WantPop - Yes if you want population shown.
  • Pop - the population value
  • WantRegionType
  • RegionType
  • WantCapital
  • CapitalOf
  • WantFeature
  • Feature


Usage:

{{SemanticTest
|WantPop = 
|Pop = 
}}