Difference between revisions of "Template:SemanticTest"

From BattleMaster Wiki
Jump to navigation Jump to search
m (removing line breaks)
m (Replacing page with '{{#if: {{{1}}} | first parameter = {{{1}}} | Empty}}')
Line 1: Line 1:
<includeonly>Region: {{{RegionName}}}<br>
+
{{#if: {{{1}}} | first parameter = {{{1}}} | Empty}}
{{#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>
 
<noinclude>
 
This template is being used for testing [http://www.mediawiki.org/wiki/Help:Extension:ParserFunctions 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:
 
<pre>{{SemanticTest
 
|WantPop =
 
|Pop =
 
}}</pre>
 
 
 
</noinclude>
 

Revision as of 22:22, 11 February 2009

first parameter = {{{1}}}