Difference between revisions of "Template:SemanticTest"

From BattleMaster Wiki
Jump to navigation Jump to search
m (more testing)
m (more testing)
Line 1: Line 1:
<includeonly>{{#ifeq: {{{WantPop}}} | Yes |[[population::{{{Pop}}}]]<br>| }}
+
<includeonly>Region: {{{RegionName}}}<br>
{{#ifeq: {{{WantCapital}}} | Yes |[[capital of::{{{CapitalOf}}}]]<br>| }}
+
{{#ifeq: {{{WantCapital}}} | Yes |Capital of: [[capital of::{{{CapitalOf}}}]]<br>|}}
{{#ifeq: {{{WantRegionType}}} | Yes |[[is region type::{{{RegionType}}}]]<br>| }}</includeonly>
+
{{#ifeq: {{{WantPop}}} | Yes |Population: [[population::{{{Pop}}}]]<br>|}}
{{#ifeq: {{{WantFeature}}} | Yes |[[has feature::{{{Feature}}}]]<br>| }}</includeonly>
+
{{#ifeq: {{{WantRegionType}}} | Yes |Region type: [[is region type::{{{RegionType}}}]]<br>|}}
 +
{{#ifeq: {{{WantFeature}}} | Yes |Notable feature: [[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]].
  
 
Parameters:
 
Parameters:
 +
* RegionName
 +
* WantCapital
 +
* CapitalOf
 
* WantPop - Yes if you want population shown.
 
* WantPop - Yes if you want population shown.
 
* Pop - the population value
 
* Pop - the population value
 
* WantRegionType
 
* WantRegionType
 
* RegionType
 
* RegionType
* WantCapital
 
* CapitalOf
 
 
* WantFeature
 
* WantFeature
 
* Feature
 
* Feature

Revision as of 20:12, 10 February 2009


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

Parameters:

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


Usage:

{{SemanticTest
|WantPop = 
|Pop = 
}}