Difference between revisions of "User:©TriMoon™/Sandbox"
From Salem Wiki
m (→Querries: x) |
m (→Querries: x) |
||
Line 134: | Line 134: | ||
<li><code><nowiki>{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}</nowiki></code><br/>{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}</li> | <li><code><nowiki>{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}</nowiki></code><br/>{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}</li> | ||
<li>{{t|PropVals/Group | <command from step above> }} internally using {{t|PropVals/Split}}<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<ul> | <li>{{t|PropVals/Group | <command from step above> }} internally using {{t|PropVals/Split}}<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<ul> | ||
− | <li><code><nowiki>{{#arraymap: {{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}/\ |/\|x|{{PropVals/Group|x}}|}}</nowiki></code><br/>{{#arraymap: {{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}/\ |/\|x|{{PropVals/Group|x}}|}}</li> | + | <li><code><nowiki>{{#arraymap: {{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}{{{grpsep|/\}}} |{{{grpsep|/\}}} |x |{{PropVals/Group |x |sep={{{sep|;}}} |grpsep={{{grpsep|/\}}} }} |}}</nowiki></code><br/>{{#arraymap: {{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}{{{grpsep|/\}}} |{{{grpsep|/\}}} |x |{{PropVals/Group |x |sep={{{sep|;}}} |grpsep={{{grpsep|/\}}} }} |}}</li> |
</ul></li> | </ul></li> | ||
− | <li><code><nowiki><ul>{{#arraymap: <command from step above> |/\ |x |{{PropVals/List|x}} |}}</ul></nowiki></code><br/><ul>{{#arraymap:{{#arraymap:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}/\ |/\ |x |{{PropVals/Group|x}} |}} |/\ |x |<li>{{t|PropVals/List|x}}</li> |}} | + | <li><code><nowiki><ul>{{#arraymap: <command from step above> |{{{grpsep|/\}}} |x |{{PropVals/List|x}} |}}</ul></nowiki></code><br/><ul>{{#arraymap:{{#arraymap:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}{{{grpsep|/\}}} |{{{grpsep|/\}}} |x |{{PropVals/Group |x |sep={{{sep|;}}} |grpsep={{{grpsep|/\}}} }} |}} |{{{grpsep|/\}}} |x |<li>{{t|PropVals/List|x}}</li> |}} |
<li>each using {{t|PropVals/Print Entry}} which will internally use {{t|PropVals/Split}}, to produce outputing something similar to:<ul> | <li>each using {{t|PropVals/Print Entry}} which will internally use {{t|PropVals/Split}}, to produce outputing something similar to:<ul> | ||
<li>'''Startpost:'''<ul> | <li>'''Startpost:'''<ul> | ||
Line 146: | Line 146: | ||
<li><code><nowiki><ul> | <li><code><nowiki><ul> | ||
{{#arraymap: | {{#arraymap: | ||
− | {{#arraymap: {{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}/\ |/\|x|{{PropVals/Group|x}}|}} | + | {{#arraymap: {{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}{{{grpsep|/\}}} |{{{grpsep|/\}}} |x |{{PropVals/Group |x |sep={{{sep|;}}} |grpsep={{{grpsep|/\}}} }} |}} |
− | |/\ | + | |{{{grpsep|/\}}} |
|x | |x | ||
|{{PropVals/List|x}} | |{{PropVals/List|x}} | ||
|}} | |}} | ||
</ul></nowiki></code><br/> | </ul></nowiki></code><br/> | ||
− | <ul>{{#arraymap:{{#arraymap:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}/\ |/\ |x |{{PropVals/Group|x}} |}} |/\|x|{{PropVals/List|x}}|}}</ul> | + | <ul>{{#arraymap:{{#arraymap:{{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}{{{grpsep|/\}}} |{{{grpsep|/\}}} |x |{{PropVals/Group |x |sep={{{sep|;}}} |grpsep={{{grpsep|/\}}} }} |}} |{{{grpsep|/\}}} |x |{{PropVals/List|x}} |}}</ul> |
</li> | </li> | ||
</ul></li> | </ul></li> |
Revision as of 16:38, 22 June 2012
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
- Help:Selecting pages
- Help:Displaying information
- Help:Inline queries (Parser function #show)
- Extension:StringFunctions (#explode:)
- List the set of unique values for a property
- Multiple values for the same field
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
- {{List MenuEntries|menu=Test}}
no Non-menu entries found. ---{{#show: {{FULLPAGENAME}} |?IsinGameMenu}}---
------- Listing values for Property:RequiresObj on current page
{{#show: {{FULLPAGENAME}} |?RequiresObj |link=none |sep=<br/> }}
{{#ask: [[{{FULLPAGENAME}}]] [[RequiresObj::+]] | ?RequiresObj= |link=none |sep=<br/> }}
- Automatic listing in mind: {{PropVals |prop=RequiresObj |page={{PAGENAME}}}}
(example property-data using Stone Hedge){{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}
- {{PropVals/Group | <command from step above> }} internally using {{PropVals/Split}}
Startpost|Lime;15|Flint;15|Stone;30/\ Cornerpost|Lime;8|Flint;8|Stone;15/\ Wallsegment|Flint;1|Stone;3/\ Gate|Board;10|Nails;4{{#arraymap: {{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}{{{grpsep|/\}}} |{{{grpsep|/\}}} |x |{{PropVals/Group |x |sep={{{sep|;}}} |grpsep={{{grpsep|/\}}} }} |}}
<ul>{{#arraymap: <command from step above> |{{{grpsep|/\}}} |x |{{PropVals/List|x}} |}}</ul>
- each using {{PropVals/Print Entry}} which will internally use {{PropVals/Split}}, to produce outputing something similar to:
<ul> {{#arraymap: {{#arraymap: {{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep={{!}} }}{{{grpsep|/\}}} |{{{grpsep|/\}}} |x |{{PropVals/Group |x |sep={{{sep|;}}} |grpsep={{{grpsep|/\}}} }} |}} |{{{grpsep|/\}}} |x |{{PropVals/List|x}} |}} </ul>
- floating code...
- {{PropVals/Split |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/> }}
- {{PropVals/Split |val={{#show:{{FULLPAGENAME}} |?RequiresObj |link=none |sep=/\}} |sep=/\ |part=2 }}
... more about "©TriMoon™/Sandbox"