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

From Salem Wiki
Jump to: navigation, search
m (→‎Infobox: removed)
 
(25 intermediate revisions by 2 users not shown)
Line 5: Line 5:
  
 
fe. [[Blazing Brazier]], would need:
 
fe. [[Blazing Brazier]], would need:
*isGameMenu=n
+
*isGameMenu
*isinGameMenu=Claims & Defenses
 
;See these pages for documentation:
 
*[http://semantic-mediawiki.org/wiki/Help:Selecting_pages Help:Selecting pages]
 
*[http://semantic-mediawiki.org/wiki/Help:Displaying_information Help:Displaying information]
 
*[http://semantic-mediawiki.org/wiki/Help:Inline_queries#Parser_function_.23show Help:Inline queries (Parser function #show)]
 
*[http://www.mediawiki.org/wiki/Extension:StringFunctions#.23explode: Extension:StringFunctions (#explode:)]
 
*[http://smw.referata.com/wiki/List_the_set_of_unique_values_for_a_property List the set of unique values for a property]
 
*[http://www.mediawiki.org/wiki/Extension:Semantic_Forms/Semantic_Forms_and_templates#Multiple_values_for_the_same_field Multiple values for the same field]
 
----
 
__SHOWFACTBOX__
 
 
 
 
===HasProp===
 
===HasProp===
 
<pre>
 
<pre>
{{#if: {{HasProp |page=User:©TriMoon™/PropVals testdata |Has icon}}
+
{{#if: {{HasProp |page=Help:Infobox/testdata |Has icon}}
| [[{{#show:User:©TriMoon™/PropVals testdata|?Has icon|link=none}}]]
+
| [[{{#show:Help:Infobox/testdata|?Has icon|link=none}}]]
}}
+
}
</pre>
 
{{#if: {{HasProp |page=User:©TriMoon™/PropVals testdata |Has icon}}
 
| [[{{#show:User:©TriMoon™/PropVals testdata|?Has icon|link=none}}]]
 
}}
 
  
 
===Skills===
 
===Skills===
 
<ul>
 
<ul>
<li>Skill values for [[User:©TriMoon™/PropVals testdata|©TriMoon™/PropVals testdata]]</li>
+
<li>Skill values for [[Help:Infobox/testdata|Infobox/testdata]]</li>
<li>using default <code>#show</code><br/>
+
<li><pre>
{{#show: User:©TriMoon™/PropVals testdata
+
{{#ask: [[{{{page|Weaving}}}]]
|?arts = Arts & Crafts
+
|?arts
|?cloak = Cloak & Dagger
+
|?cloak
|?faith = Faith & Wisdom
+
|?faith
|?frontier = Frontier & Wilderness
+
|?frontier
|?hammer = Hammer & Nail
+
|?hammer
|?hunting = Hunting & Gathering
+
|?hunting
|?law = Law & Lore
+
|?law
|?mines = Mines & Mountains
+
|?mines
|?pots = Pots & Pans
+
|?pots
|?sparks = Sparks & Embers
+
|?sparks
|?stocks = Stocks & Cultivars
+
|?stocks
|?sugar = Sugar & Spice
+
|?sugar
|?thread = Thread & Needle
+
|?thread
|?natural = Natural Philosophy
+
|?natural
|?perennial = Perennial Philosophy
+
|?perennial
 +
|format=template
 +
|named args=yes
 +
|userparam=test
 +
|template=<query template>
 +
|link=none
 +
}}
 +
</pre>
 +
{{#ask: [[{{{page|Weaving}}}]]
 +
|?arts
 +
|?cloak
 +
|?faith
 +
|?frontier
 +
|?hammer
 +
|?hunting
 +
|?law
 +
|?mines
 +
|?pots
 +
|?sparks
 +
|?stocks
 +
|?sugar
 +
|?thread
 +
|?natural
 +
|?perennial
 +
|format=template
 +
|named args=yes
 +
|userparam=test
 +
|template=<query template>
 +
|link=none
 
}}</li>
 
}}</li>
  
<li>Now lets try to get em 1-per-line<br/>
+
<li>{{t|Infobox/List Skillvals|page<nowiki>=</nowiki>Weaving}}<br/>
{{#show: User:©TriMoon™/PropVals testdata
+
{{Infobox/List Skillvals|page=Weaving}}</li>
|format=ul
 
|?arts = Arts & Crafts
 
|?cloak = Cloak & Dagger
 
|?faith = Faith & Wisdom
 
|?frontier = Frontier & Wilderness
 
|?hammer = Hammer & Nail
 
|?hunting = Hunting & Gathering
 
|?law = Law & Lore
 
|?mines = Mines & Mountains
 
|?pots = Pots & Pans
 
|?sparks = Sparks & Embers
 
|?stocks = Stocks & Cultivars
 
|?sugar = Sugar & Spice
 
|?thread = Thread & Needle
 
|?natural = Natural Philosophy
 
|?perennial = Perennial Philosophy
 
}}</li>
 
 
</ul>
 
</ul>
  
Line 73: Line 69:
 
<ol>
 
<ol>
 
<li>Listing all values for [[Property:Locations]] on certain page<ol type="a">
 
<li>Listing all values for [[Property:Locations]] on certain page<ol type="a">
<li><code><nowiki>{{#ask: [[-Locations::{{{page|User:©TriMoon™/PropVals testdata}}}]] |link=none}}</nowiki></code><br/>{{#ask: [[-Locations::{{{page|User:©TriMoon™/PropVals testdata}}}]] |link=none}}</li>
+
<li><code><nowiki>{{#ask: [[{{{page|Help:Infobox/testdata}}}]] |?Locations |link=none}}</nowiki></code><br/>{{#ask: [[{{{page|Help:Infobox/testdata}}}]] |?Locations |link=none}}</li>
<li><pre>
+
<li><code><nowiki>{{#ask: [[-Locations::{{{page|Help:Infobox/testdata}}}]] |link=none}}</nowiki></code><br/>{{#ask: [[-Locations::{{{page|Help:Infobox/testdata}}}]] |link=none}}</li>
<ul>{{#arraymap:
+
<li><code><nowiki>{{#ask: [[-Locations::{{{page|Help:Infobox/testdata}}}]] |link=none |format=ul |template=List Locations/query template}}</nowiki></code><br/>{{#ask: [[-Locations::{{{page|Help:Infobox/testdata}}}]] |link=none |format=ul |template=List Locations/query template}}</li>
{{#ask: [[-Locations::{{{page|User:©TriMoon™/PropVals testdata}}}]] |link=none}}
+
<li>{{t|List Locations|page<nowiki>=</nowiki>Help:Infobox/testdata}}<br/>{{List Locations}}</li>
|,
 
|xXx
 
|<li>[[xXx]]</li>
 
|}}</ul>
 
</pre>
 
<ul>{{#arraymap:
 
{{#ask: [[-Locations::{{{page|User:©TriMoon™/PropVals testdata}}}]] |link=none}}
 
|,
 
|xXx
 
|<li>[[xXx]]</li>
 
|}}</ul>
 
</li>
 
 
</ol></li>
 
</ol></li>
 
</ol>
 
</ol>
 +
===Alchemical values===
 +
*See {{t|Infobox Food}} for old (current) implementation.
 +
*xXx{{#show:{{{page|Help:Infobox/testdata}}}|?hebl|?sabl|?mebl|?subl|?lebl|link=none|format=list}}xXx
 +
*xXx{{#show:{{{page|Crispy Cricket}}}|?hebl|?sabl|?mebl|?subl|?lebl|link=none|format=list}}xXx
 +
*{{t|Infobox/List AlchemyVals}}{{Infobox/List AlchemyVals}}
 +
*{{t|Infobox/List AlchemyVals|page<nowiki>=</nowiki>Crispy Cricket}}{{Infobox/List AlchemyVals|page=Crispy Cricket}}

Latest revision as of 08:44, 26 October 2012

Semantic Wiki related

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

HasProp

{{#if: {{HasProp |page=Help:Infobox/testdata |Has icon}}
| [[{{#show:Help:Infobox/testdata|?Has icon|link=none}}]]
}

===Skills===
<ul>
<li>Skill values for [[Help:Infobox/testdata|Infobox/testdata]]</li>
<li><pre>
{{#ask: [[{{{page|Weaving}}}]]
|?arts
|?cloak
|?faith
|?frontier
|?hammer
|?hunting
|?law
|?mines
|?pots
|?sparks
|?stocks
|?sugar
|?thread
|?natural
|?perennial
|format=template
|named args=yes
|userparam=test
|template=<query template>
|link=none
}}

{{<query template> |#userparam=test |#querycondition=Weaving |#querylimit=50 |#resultoffset=0 |#rowcount=1 |1=Weaving |Arts= |Cloak= |Faith= |Frontier= |Hammer= |Hunting= |Law= |Mines= |Pots= |Sparks= |Stocks= |Sugar= |Thread= |Natural= |Perennial= |#=0

|#rownumber=1}}

  • {{Infobox/List Skillvals|page=Weaving}}
    Provided skill proficiency:
    Nameval
  • Property:Locations

    1. Listing all values for Property:Locations on certain page
      1. {{#ask: [[{{{page|Help:Infobox/testdata}}}]] |?Locations |link=none}}
         Locations
        Help:Infobox/testdata
      2. {{#ask: [[-Locations::{{{page|Help:Infobox/testdata}}}]] |link=none}}
      3. {{#ask: [[-Locations::{{{page|Help:Infobox/testdata}}}]] |link=none |format=ul |template=List Locations/query template}}
      4. {{List Locations|page=Help:Infobox/testdata}}

    Alchemical values