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

From Salem Wiki
Jump to: navigation, search
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{tocright}}
 
{{tocright}}
==Infobox==
 
{| class="wikitable?"
 
|+{{t|infobox}}:
 
|-
 
| {{Infobox/debugTheme|type=1}}
 
| {{Infobox/debugTheme
 
|themeName=Blue
 
|type=1
 
|page={{PAGENAME}}
 
|name={{{name|}}}
 
|icon={{{icon|}}}
 
|caption={{{caption|}}}
 
|image={{{image|}}}
 
|skillreq={{{skillreq|}}}
 
|objectsreq={{{objectsreq|}}}
 
|reqby={{{reqby|}}}
 
|repwith={{{repwith|}}}
 
|lift={{{lift|}}}
 
|hp={{{hp|}}}
 
|soak={{{soak|}}}
 
|inlineTheme={{{inlineTheme|yes}}}
 
|inlineThemeBorderColor=#3366CC
 
|inlineThemeColor1=black
 
|inlineThemeColor2=white
 
|inlineThemeColor3={{{inlineThemeColor3|}}}
 
|inlineThemeBkgColor1=gray
 
|inlineThemeBkgColor2={{{inlineThemeBkgColor2|}}}
 
|inlineThemeBkgColor3=#527acc
 
|inlineThemeBkgColor4=#708fcc
 
|inlineThemeBkgColor5=#aaaaaa
 
|inlineThemeBkgColor6=#8fa3cc
 
}}
 
|-
 
| {{Infobox/debugTheme
 
|themeName=Brown
 
|type=1
 
|page={{PAGENAME}}
 
|name={{{name|}}}
 
|icon={{{icon|}}}
 
|caption={{{caption|}}}
 
|image={{{image|}}}
 
|skillreq={{{skillreq|}}}
 
|objectsreq={{{objectsreq|}}}
 
|reqby={{{reqby|}}}
 
|repwith={{{repwith|}}}
 
|lift={{{lift|}}}
 
|hp={{{hp|}}}
 
|soak={{{soak|}}}
 
|inlineTheme={{{inlineTheme|yes}}}
 
|inlineThemeBorderColor=#68341a
 
|inlineThemeColor1=black
 
|inlineThemeColor2=white
 
|inlineThemeColor3={{{inlineThemeColor3|}}}
 
|inlineThemeBkgColor1=gray
 
|inlineThemeBkgColor2={{{inlineThemeBkgColor2|}}}
 
|inlineThemeBkgColor3=#683f2a
 
|inlineThemeBkgColor4=#684939
 
|inlineThemeBkgColor5=#aaaaaa
 
|inlineThemeBkgColor6=#685349
 
}}
 
| {{Infobox/debugTheme
 
|themeName=Brown-Inverted
 
|type=1
 
|page={{PAGENAME}}
 
|name={{{name|}}}
 
|icon={{{icon|}}}
 
|caption={{{caption|}}}
 
|image={{{image|}}}
 
|skillreq={{{skillreq|}}}
 
|objectsreq={{{objectsreq|}}}
 
|reqby={{{reqby|}}}
 
|repwith={{{repwith|}}}
 
|lift={{{lift|}}}
 
|hp={{{hp|}}}
 
|soak={{{soak|}}}
 
|inlineTheme={{{inlineTheme|yes}}}
 
|inlineThemeBorderColor=#685349
 
|inlineThemeColor1=black
 
|inlineThemeColor2=white
 
|inlineThemeColor3={{{inlineThemeColor3|}}}
 
|inlineThemeBkgColor1=gray
 
|inlineThemeBkgColor2={{{inlineThemeBkgColor2|}}}
 
|inlineThemeBkgColor3=#684939
 
|inlineThemeBkgColor4=#683f2a
 
|inlineThemeBkgColor5=#aaaaaa
 
|inlineThemeBkgColor6=#68341a
 
}}
 
 
|}
 
 
 
==Semantic Wiki related==
 
==Semantic Wiki related==
 
Lets try to describe properties of [[:Category:Objects|Objects]] using their placement in the game-menus to aid in later auto-categorization....
 
Lets try to describe properties of [[:Category:Objects|Objects]] using their placement in the game-menus to aid in later auto-categorization....
Line 95: 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|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|Has icon}}
 
| [[{{#show:User:©TriMoon™/PropVals testdata|?Has icon|link=none}}]]
 
}}
 
  
 
===Skills===
 
===Skills===
===Property:RequiredBy===
+
<ul>
<ol>
+
<li>Skill values for [[Help:Infobox/testdata|Infobox/testdata]]</li>
<li>Listing all values for [[Property:RequiredBy]] on certain page<ol type="a">
+
<li><pre>
<li><code><nowiki>{{#ask: [[Axe]] |?RequiredBy |link=none |format=template |template=PropVals/List RequiredBy/query template |named args=yes}}</nowiki></code><br/>{{#ask: [[Axe]] |?RequiredBy |link=none |format=template |template=<nowiki>PropVals/List RequiredBy/query template</nowiki> |named args=yes}}</li>
+
{{#ask: [[{{{page|Weaving}}}]]
<li><pre>
+
|?arts
{{#ask:[[-RequiredBy::{{{page|Nails}}}]]
+
|?cloak
|format=ul
+
|?faith
|limit=10
+
|?frontier
 +
|?hammer
 +
|?hunting
 +
|?law
 +
|?mines
 +
|?pots
 +
|?sparks
 +
|?stocks
 +
|?sugar
 +
|?thread
 +
|?natural
 +
|?perennial
 +
|format=template
 +
|named args=yes
 +
|userparam=test
 +
|template=<query template>
 
|link=none
 
|link=none
|template=PropVals/Print Entry
 
 
}}
 
}}
 
</pre>
 
</pre>
{{#ask:[[-RequiredBy::{{{page|Nails}}}]]
+
{{#ask: [[{{{page|Weaving}}}]]
|format=ul
+
|?arts
|limit=10
+
|?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
 
|link=none
|template=PropVals/Print Entry
+
}}</li>
}}
+
 
</li>
+
<li>{{t|Infobox/List Skillvals|page<nowiki>=</nowiki>Weaving}}<br/>
 +
{{Infobox/List Skillvals|page=Weaving}}</li>
 +
</ul>
 +
 
 +
===Property:Locations===
 +
<ol>
 +
<li>Listing all values for [[Property:Locations]] on certain page<ol type="a">
 +
<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|Help:Infobox/testdata}}}]] |link=none}}</nowiki></code><br/>{{#ask: [[-Locations::{{{page|Help:Infobox/testdata}}}]] |link=none}}</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>Help:Infobox/testdata}}<br/>{{List Locations}}</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