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

From Salem Wiki
Jump to: navigation, search
 
(12 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><pre>
 
<li><pre>
 
{{#ask: [[{{{page|Weaving}}}]]
 
{{#ask: [[{{{page|Weaving}}}]]
Line 49: Line 34:
 
|format=template
 
|format=template
 
|named args=yes
 
|named args=yes
 +
|userparam=test
 
|template=<query template>
 
|template=<query template>
 
|link=none
 
|link=none
Line 71: Line 57:
 
|format=template
 
|format=template
 
|named args=yes
 
|named args=yes
 +
|userparam=test
 
|template=<query template>
 
|template=<query template>
 
|link=none
 
|link=none
Line 82: 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: [[{{{page|User:©TriMoon™/PropVals testdata}}}]] |?Locations |link=none}}</nowiki></code><br/>{{#ask: [[{{{page|User:©TriMoon™/PropVals testdata}}}]] |?Locations |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><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: [[-Locations::{{{page|Help:Infobox/testdata}}}]] |link=none}}</nowiki></code><br/>{{#ask: [[-Locations::{{{page|Help:Infobox/testdata}}}]] |link=none}}</li>
<li><code><nowiki>{{#ask: [[-Locations::{{{page|User:©TriMoon™/PropVals testdata}}}]] |link=none |format=ul |template=List Locations/query template}}</nowiki></code><br/>{{#ask: [[-Locations::{{{page|User:©TriMoon™/PropVals testdata}}}]] |link=none |format=ul |template=List Locations/query template}}</li>
+
<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>
<li>{{t|List Locations|page<nowiki>=</nowiki>User:©TriMoon™/PropVals testdata}}<br/>{{List Locations}}</li>
+
<li>{{t|List Locations|page<nowiki>=</nowiki>Help:Infobox/testdata}}<br/>{{List Locations}}</li>
 
</ol></li>
 
</ol></li>
 
</ol>
 
</ol>
 
===Alchemical values===
 
===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