Difference between revisions of "Sandbox"

From BattleMaster Wiki
Jump to navigation Jump to search
m (testing)
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
* The region of Sirion City: <nowiki>{{L|Rg|Sirion}}</nowiki> = {{L|Rg|Sirion}}
 
* The duchy of Sirion: <nowiki>{{L|D|Sirion}}</nowiki> = {{L|D|Sirion}}
 
* The realm of Sirion: <nowiki>{{L|R|Sirion}}</nowiki> = {{L|R|Sirion}}
 
 
== Parser Functions ==
 
{{#if: true | 1 | 2}}
 
 
{{#if:  | 1 | 2}}
 
 
The page [[Sandbox]] {{#ifexist: Sandbox | exists |  does not exist }}.
 
 
 
The page [[Standbox]] {{#ifexist: Standbox | exists |  does not exist }}.
 
 
{{SemanticTest}}
 
 
{{SemanticTest
 
|Param =
 
}}
 
 
{{SemanticTest
 
|Param = Test
 
}}
 
 
 
 
==BM wiki search for Firefox 2.0!==
 
==BM wiki search for Firefox 2.0!==
[[Image:Goldenfeather.jpg|right]]
+
[http://www.lilwolf.biz/bm/ Courtesy of LilWolf]
[[Image:Goldenfeather.jpg|left]]
 
  
[http://www.lilwolf.biz/bm/ Courtesy of LilWolf]
 
 
==This is the Sandbox, feel free to play==
 
==This is the Sandbox, feel free to play==
  
Feel free to add or delete anything on this page. It is for getting used to the wiki, and for experimenting with syntax. Just don't be surprised if it disappears.
+
{{#ask:[[Category:Realms]][[Category:East Island]]
----
+
| ? #
 
+
| headers = hide
* '''Bold text '''
+
| format = template
* ''Italic text''
+
| template = MultiColListItem
 
+
| introtemplate = MultiColListTop{{!}}300{{!}}2{{!}}left{{!}}Realms
{| border="3" cellspacing="0" cellpadding="10"
+
| outrotemplate = MultiColListBottom
| This
 
! is
 
! a
 
|-
 
| table
 
! you
 
| see
 
|-
 
| feel
 
| free
 
| to
 
|-
 
|
 
| try it
 
|
 
|}
 
 
 
 
 
== Semantic tests ==
 
Lords of the realm of [[Keplerstan]]:
 
{{#ask: [[part of::Keplerstan]] | mainlabel=region | ?has lord=Lord | format = table | headers = hide | default=Unknown}}
 
 
 
 
 
Largest city on Atamara:
 
{{#ask: [[is regiontype::Stronghold||City]] [[located on::Atamara]] | limit = 1 | sort = population | order = desc | default=Unknown}}<br>
 
''Won't work until more regions get island associations...''
 
 
 
Cities and Strongholds:
 
{{#ask: [[is regiontype::Stronghold||City]] | limit = 10 | format = ul | default=Unknown}}
 
 
 
Number of cities:
 
{{#ask: [[is regiontype::City]] | format = count | default = 0}}
 
 
 
Number of strongholds:
 
{{#ask: [[is regiontype::Stronghold]] | format = count | default = 0}}
 
 
 
Number of rurals:
 
{{#ask: [[is regiontype::Rural]] | format = count | default = 0}}
 
 
 
If all regions were properly tagged via category and regiontype property, the following numbers would be equal:
 
 
 
Number of regions (via category):
 
{{#ask: [[Category:Regions]] | format = count | default = 0}}
 
 
 
Number of regions (via regiontype property):
 
{{#ask: [[is regiontype::+]] | format = count | default = 0}}
 
 
 
 
 
{{SemanticTest
 
| RegionName = Sandbox Town
 
| WantPop = Yes
 
| Pop = 2
 
| WantCapital = Yes
 
| CapitalOf = Sandboxville
 
| WantRegionType = Yes
 
| RegionType = sand lot
 
| WantFeature = Yes
 
| Feature = Newbie Training Grounds
 
}}
 
 
 
 
 
{{SemanticTest
 
| RegionName = Sandbox Town
 
| WantPop = No
 
| Pop = 2
 
| WantCapital = No
 
| CapitalOf = Sandboxville
 
| WantRegionType = No
 
| RegionType = sand lot
 
| WantFeature = Yes
 
| Feature = Newbie Training Grounds
 
}}
 
 
 
 
 
Regions of Beluaterra, sorted by population:
 
{{#ask: [[Category:Regions]] [[Located on::Beluaterra]]
 
| ?Population
 
| mainlabel=Region
 
| order=descending
 
| limit = 10
 
| format = table
 
}}
 
 
 
The population of {{Reglink|BT|Zod}} is: {{#show: Beluaterra/Zod | ?population}}.
 
 
 
All regions/realms with population greater than 9,999:
 
{{#ask: [[Category:Regions||Realms]] [[population::>9999]]
 
| ?Population
 
| mainlabel = Realm/Region
 
| sort = population
 
| order = descending
 
| limit = 10
 
| format = table
 
 
}}
 
}}
  
Realms of Beluaterra, showing max ten, ascending alphabetical order:
+
Test...
{{#ask: [[Category:Realms]] [[Located on::Beluaterra]]
 
| order=ascending
 
| limit = 10
 
| format = ul
 
}}
 
 
 
Capitals:
 
{{#ask: [[capital of::]]
 
| mainlabel = Capital
 
| ?capital of = Realm
 
| format = table
 
}}
 
 
 
==Pipe Tricks==
 
http://en.wikipedia.org/wiki/Help:Pipe_trick
 
 
 
* [[/subpage/]]
 
* [[Meta:Style guide|Style guide]]
 
 
 
 
 
== Factbox ==
 
btw. you can enable the factbox:
 
__SHOWFACTBOX__
 

Latest revision as of 18:52, 28 March 2014

BM wiki search for Firefox 2.0!

Courtesy of LilWolf

This is the Sandbox, feel free to play

Realms

Test...