Difference between revisions of "User:©TriMoon™/Sandbox"

From Salem Wiki
Jump to: navigation, search
Line 124: Line 124:
  
 
===Querries===
 
===Querries===
#{{t|List MenuEntries|menu<nowiki>=</nowiki>Test}}<br/>{{List MenuEntries|menu=Test}}
+
<ol>
#<code><nowiki>---{{#show: {{FULLPAGENAME}} |?IsinGameMenu}}---</nowiki></code><br/>---{{#show:{{FULLPAGENAME}} |?IsinGameMenu}}---
+
<li>{{t|List MenuEntries|menu<nowiki>=</nowiki>Test}}<br/>{{List MenuEntries|menu=Test}}</li>
#Listing values for [[Property:RequiresObj]] on current page
+
<li><code><nowiki>---{{#show: {{FULLPAGENAME}} |?IsinGameMenu}}---</nowiki></code><br/>---{{#show:{{FULLPAGENAME}} |?IsinGameMenu}}---</li>
#*<code><nowiki>{{#show: {{FULLPAGENAME}} |?RequiresObj |link=none |sep=<br/> }}</nowiki></code><br/>{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=<br/> }}
+
<li>Listing values for [[Property:RequiresObj]] on current page<ol type="a">
#*<code><nowiki>{{#ask: [[{{FULLPAGENAME}}]] [[RequiresObj::+]] | ?RequiresObj= |link=none |sep=<br/> }}</nowiki></code><br/>{{#ask: [[{{FULLPAGENAME}}]] [[RequiresObj::+]] | ?RequiresObj= |link=none |sep=<br/> }}
+
<li><code><nowiki>{{#show: {{FULLPAGENAME}} |?RequiresObj |link=none |sep=<br/> }}</nowiki></code><br/>{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=<br/> }}</li>
#*{{t|Split PropertyVal|part<nowiki>=</nowiki>head|val<nowiki>={{#show:{{FULLPAGENAME}} |?RequiresObj|link=none}}</nowiki>}}<br/>{{Split PropertyVal|part=head|val={{#show:{{FULLPAGENAME}} |?RequiresObj|link=none}}}}
+
<li><code><nowiki>{{#ask: [[{{FULLPAGENAME}}]] [[RequiresObj::+]] | ?RequiresObj= |link=none |sep=<br/> }}</nowiki></code><br/>{{#ask: [[{{FULLPAGENAME}}]] [[RequiresObj::+]] | ?RequiresObj= |link=none |sep=<br/> }}</li>
#*{{t|Split PropertyVal|part<nowiki>=</nowiki>tail|val<nowiki>={{#show:{{FULLPAGENAME}} |?RequiresObj|link=none}}</nowiki>}}<br/>{{Split PropertyVal|part=tail|val={{#show:{{FULLPAGENAME}} |?RequiresObj|link=none}}}}
+
</ol></li>
#*<code><nowiki>{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}</nowiki></code><br/>{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}
+
<li><code><nowiki>{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}</nowiki></code><br/>{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}</li>
#*<code><nowiki>{{#replace:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}|;|{{!}} }}</nowiki></code><br/>{{#replace:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}|;|{{!}} }}
+
<li><code><nowiki>{{Group PropVals| <command from step above> }}</nowiki></code> internally using {{t|Split PropertyVal}}<br/>Startpost{{!}}Lime;15{{!}}Flint;15{{!}}Stone;30/\ Cornerpost{{!}}Lime;8{{!}}Flint;8{{!}}Stone;15/\ Wallsegment{{!}}Flint;1{{!}}Stone;3/\ Gate{{!}}Board;10{{!}}Nails;4
#*<code><nowiki>{{#arraymap: {{#replace:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}|;|{{!}} }} |/\|x|{{t|t|x}}|<br/> }}</nowiki></code><br/>{{#arraymap: {{#replace:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}|;|{{!}} }} |/\|x|{{t|t|x}}|<br/> }}
+
<ul>
 +
<li>{{t|Split PropertyVal |val<nowiki>={{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}</nowiki> |sep<nowiki>=</nowiki>/\ |part<nowiki>=</nowiki>2 }}<br/>{{Split PropertyVal |val={{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}} |sep=/\ |part=2 }}</li>
 +
<li><code><nowiki>{{#replace:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}|;|{{!}} }}</nowiki></code><br/>{{#replace:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}|;|{{!}} }}</li>
 +
<li><code><nowiki>{{#arraymap: {{#replace:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}|;|{{!}} }} |/\|x|{{t|t|x}}|<br/> }}</nowiki></code><br/>{{#arraymap: {{#replace:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}|;|{{!}} }} |/\|x|{{t|t|x}}|<br/> }}</li>
 +
</ul></li>
 +
</ol>

Revision as of 01:24, 21 June 2012

Infobox

{{infobox}}:
Template:Infobox/debugTheme Template:Infobox/debugTheme
Template:Infobox/debugTheme Template:Infobox/debugTheme

Semantics use

Lets try to describe properties of Objects using their placement in the game-menus to aid in later auto-categorization....

See Property:IsinGameMenu for current menu-names.

fe. Blazing Brazier, would need:

  • isGameMenu=n
  • isinGameMenu=Claims & Defenses
See these pages for documentation

Property settings

  • isGameMenu=n
  • isinGameMenu=Test
  • String=Board;6
  • String=Wooden Plugs;4
  • String=Nails;2
  • RequiresObj=Lime;15;Startpost
  • RequiresObj=Flint;15;Startpost
  • RequiresObj=Stone;30;Startpost
  • RequiresObj=Lime;8;Cornerpost
  • RequiresObj=Flint;8;Cornerpost
  • RequiresObj=Stone;15;Cornerpost
  • RequiresObj=Flint;1;Wallsegment
  • RequiresObj=Stone;3;Wallsegment
  • RequiresObj=Board;10;Gate
  • RequiresObj=Nails;4;Gate

Querries

  1. {{List MenuEntries|menu=Test}}
    no Non-menu entries found.
  2. ---{{#show: {{FULLPAGENAME}} |?IsinGameMenu}}---
    ------
  3. Listing values for Property:RequiresObj on current page
    1. {{#show: {{FULLPAGENAME}} |?RequiresObj |link=none |sep=<br/> }}
    2. {{#ask: [[{{FULLPAGENAME}}]] [[RequiresObj::+]] | ?RequiresObj= |link=none |sep=<br/> }}
  4. {{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}
  5. {{Group PropVals| <command from step above> }} internally using {{Split PropertyVal}}
    Startpost|Lime;15|Flint;15|Stone;30/\ Cornerpost|Lime;8|Flint;8|Stone;15/\ Wallsegment|Flint;1|Stone;3/\ Gate|Board;10|Nails;4
    • {{Split PropertyVal |val={{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}} |sep=/\ |part=2 }}
    • {{#replace:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}|;|{{!}} }}
    • {{#arraymap: {{#replace:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}}|;|{{!}} }} |/\|x|{{t|t|x}}|<br/> }}
... more about "©TriMoon™/Sandbox"
Lime;15;Startpost +, Flint;15;Startpost +, Stone;30;Startpost +, Lime;8;Cornerpost +, Flint;8;Cornerpost +, Stone;15;Cornerpost +, Flint;1;Wallsegment +, Stone;3;Wallsegment +, Board;10;Gate +, Nails;4;Gate +  and + +
TextThis property is a special property in this wiki.
Board;6 +, Wooden Plugs;4 +  and Nails;2 +