Difference between revisions of "Template:SemanticTest"

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

Revision as of 20:28, 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 = 
}}