Help:Infobox
Contents |
About
Here i will try to explain how to add/edit pages that contain my {{Infobox}}.
- To ease in creating new pages, or edit existing ones, see the sections listed in the index on right side under Code for types.
- On many (some?) occasions, you will notice an
image being displayed when, for-whatever reason, the needed image can't be found, in such cases you are able to click this image to upload the needed image, with the correct filename pre-selected.
- My Infobox system is setup as a 2-stage system, that separates data and presentation.
- It first needs some SMW-Properties set.
- {{SetProp}} is used for this purpose, it automatically calculating values for some, like the list of “Required By”, by consolidating other pages as needed.
- All properties can be combined but not all are required to be set, you can view an overview at the testdata page where all supported properties are being used and can be seen as a showcase.
- As second step {{Infobox}} is used to request the values and display those that are possibility set.
- Because of this “2-stage approach”, sometimes its necessary to “Refresh” the page, or even to make “null-edits” after saving to show updates due to changes in other pages.
Code for types
Actions
Actions | |
|---|---|
“some words...” | |
| Technology Required: | |
| Object(s) Required: |
|
| Back to GameMenu | |
{{SetProp
|IsinGameMenu=menuname
|Has icon=
|Caption=
|Has fullview={{SUBPAGENAME}}.png
|RequiresTech=
|RequiresObj=
}}{{Infobox}}
==About==Using the code shown might result in a page starting with an Infobox like on right-side.
- IsinGameMenu - Replace the value for this with the menu-name where the action can be found in-game.
This will only accept valid values and will reject any unknown ones, see Property:IsinGameMenu for a list. - Has icon - Don't provide a value for this unless you want to explicitly set a value manually.
{{SetProp}} will automatically set a proper value by default. - Has fullview - The value shown is to automatically calculate the image to use for full-view from the pagename the code is used in.
This will take the last part of the pagename when the name-space has subpages enabled.
You can leave this empty when your subject won't have fullview images to use. - RequiresTech - List the technologies that are needed to learn/gain this action.
This can accept multiple entries, separated by a comma, when multiple. - RequiresObj - You can leave the value for this empty if the action doesn't require an object to perform.
This can accept multiple entries, separated by a comma, when multiple.
The entries are composed like a Record in the form of “name;amount;heading”, the last part “;heading” can be left away when not used/needed.
Animals & Creatures
Creatures | |
|---|---|
“some words...” | |
| Locations found: | |
| Hit Points: | 3 |
| Possible Loot: |
|
| Back to Objects | |
{{SetProp
|IsinGameMenu=no (or the menu-name)
|Has icon=
|Caption=
|Has fullview={{SUBPAGENAME}}.png
|Locations=
|HP=
|Loot=
}}{{Infobox}}
==About==- This type is still under development, thats why some parameters are not fully documented yet...
Using the code shown might result in a page starting with an Infobox like on right-side.
- IsinGameMenu - Replace the value for this with the menu-name where the object can be found in-game, or “no” when only found in game world and not via a menu of the character.
This will only accept valid values and will reject any unknown ones, see Property:IsinGameMenu for a list. - Has icon - Don't provide a value for this unless you want to explicitly set a value manually.
{{SetProp}} will automatically set a proper value by default. - Has fullview - The value shown is to automatically calculate the image to use for full-view from the pagename the code is used in.
This will take the last part of the pagename when the name-space has subpages enabled.
You can leave this empty when your subject won't have fullview images to use. - Locations - List the Terrain types this Animal/Creature can be found in, or use “Any” when found in all.
This can accept multiple entries, separated by a comma, when multiple. - HP - Mention the amount of Hit Points this Animal/Creature has.
This can hold only numeric values.
Use “0” when you don't know the amount but you know it has some.
This is still under development, and will get the possibility to record the min/max/avg amounts. - Loot -
Food & Alchemical items
Food | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
“some words...” | |||||||||||||||||||||||||||||||||
| Technology Required: | |||||||||||||||||||||||||||||||||
| Object(s) Required: |
| ||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
| Back to GameMenu | Food | |||||||||||||||||||||||||||||||||
{{SetProp
|IsinGameMenu=no (or the menu-name)
|Has icon=
|Caption=
|Has fullview={{SUBPAGENAME}}.png
|RequiresTech=
|RequiresObj=
|Locations=
|purity=1
|heals=;;;
|events1=;;;
|events2=;;;
|events3=;;;
|events4=;;;
}}{{Infobox}}
==About==Using the code shown might result in a page starting with an Infobox like on right-side.
- IsinGameMenu - Replace the value for this with the menu-name where the object can be found in-game, or “no” when only found in game world and not via a menu of the character.
This will only accept valid values and will reject any unknown ones, see Property:IsinGameMenu for a list.
If the item is made only using a structure or tool you should add[[Category:PlayerMade|{{SUBPAGENAME}}]]to the page. - Has icon - Don't provide a value for this unless you want to explicitly set a value manually.
{{SetProp}} will automatically set a proper value by default. - Has fullview - The value shown is to automatically calculate the image to use for full-view from the pagename the code is used in.
This will take the last part of the pagename when the name-space has subpages enabled.
You can leave this empty when your subject won't have fullview images to use. - RequiresTech - List the technologies that are needed to craft/gain this object.
This can accept multiple entries, separated by a comma, when multiple. - RequiresObj - List the objects required to craft this object.
This can accept multiple entries, separated by a comma, when multiple.
The entries are composed like a Record in the form of “name;amount;heading”, the last part “;heading” can be left away when not used/needed, but is very useful to group requirements for certain parts or purposes. - Locations - Don't provide a value, unless the object can only be found in the game world.
List the Terrain types this object can be found in, or use “Any” when found in all.
This can accept multiple entries, separated by a comma, when multiple. - Alchemical values - Provide the values as provided in game.
- purity - The purity multiplier.
(This is not fully implemented yet on wiki, eg. no re-calculation yet, because its disabled in game at moment) - heals - List the amounts that this object heals your humours, separated by dot-comma's, in sequence as it's been listed in game.
- events1 - List the RED numbers, separated by dot-comma's, in sequence as it's been listed in game.
- events2 - List the GREEN numbers, separated by dot-comma's, in sequence as it's been listed in game.
- events3 - List the BLUE numbers, separated by dot-comma's, in sequence as it's been listed in game.
- events4 - List the YELLOW numbers, separated by dot-comma's, in sequence as it's been listed in game.
- purity - The purity multiplier.
Inspirationals
Inspirationals | |
|---|---|
“some words...” | |
| Technology Required: | |
| Object(s) Required: |
|
| Back to Objects | |
{{SetProp
|IsinGameMenu=no (or the menu-name)
|Has icon=
|Caption=
|Has fullview={{SUBPAGENAME}}.png
|RequiresTech=
|RequiresObj=
|purity=1
|arts=
|cloak=
|faith=
|frontier=
|hammer=
|hunting=
|law=
|mines=
|pots=
|sparks=
|stocks=
|sugar=
|thread=
|natural=
|perennial=
}}{{Infobox}}
==About==
Using the code shown might result in a page starting with an Infobox like on right-side.
- IsinGameMenu - Replace the value for this with, the menu-name where this Inspirational can be found in-game, or “no” when only found in game world and not via a menu of the character.
This will only accept valid values and will reject any unknown ones, see Property:IsinGameMenu for a list.
If the item is made only using a structure or tool you should add[[Category:PlayerMade|{{SUBPAGENAME}}]]to the page. - Has icon - Don't provide a value for this unless you want to explicitly set a value manually.
{{SetProp}} will automatically set a proper value by default. - Has fullview - The value shown is to automatically calculate the image to use for full-view from the pagename the code is used in.
This will take the last part of the pagename when the name-space has subpages enabled.
You can leave this empty when your subject won't have fullview images to use. - RequiresTech - List the technologies that are needed to craft this Inspirational.
This can accept multiple entries, separated by a comma, when multiple. - RequiresObj - List the objects required to craft this Inspirational.
This can accept multiple entries, separated by a comma, when multiple.
The entries are composed like a Record in the form of “name;amount;heading”, the last part “;heading” can be left away when not used/needed, but is very useful to group requirements for certain parts or purposes. - Proficiencies - Give the proficiency-values, that this inspirational grants when studied, for the respective Skills, while leaving unused ones empty.
These can hold only numeric values.
Use “0” when you don't know the amount but you know it has some.- purity - The purity multiplier.
(This is not fully implemented yet on wiki, eg. no re-calculations yet, because its disabled in game at moment) - 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
- purity - The purity multiplier.
Items & Structures
Items | |
|---|---|
“some words...” | |
| Technology Required: | |
| Object(s) Required: |
|
| Repaired With: | |
| Liftable? | No |
| Hit Points: | 100 |
| Soak Value: | 100 |
| Back to GameMenu | |
{{SetProp
|IsinGameMenu=no (or the menu-name)
|Has icon=
|Caption=
|Has fullview={{SUBPAGENAME}}.png
|RequiresTech=
|RequiresObj=
|RepairedWith=
|IsLiftable=y/n or IsLiftableWhenEmpty=y
|HP=
|Soak=
}}{{Infobox}}
==About==
Structures | |
|---|---|
“some words...” | |
| Technology Required: | |
| Object(s) Required: |
|
| Repaired With: | |
| Liftable? | Only when empty |
| Hit Points: | 100 |
| Soak Value: | 100 |
| Back to GameMenu | |
Using the code shown might result in a page starting with an Infobox like on right-side.
- IsinGameMenu - Replace the value for this with, the menu-name where the action can be found in-game, or “no” when only found in game world and not via a menu of the character.
This will only accept valid values and will reject any unknown ones, see Property:IsinGameMenu for a list.
If the item is made only using a structure or tool you should add[[Category:PlayerMade|{{SUBPAGENAME}}]]to the page. - Has icon - Don't provide a value for this unless you want to explicitly set a value manually.
{{SetProp}} will automatically set a proper value by default. - Has fullview - The value shown is to automatically calculate the image to use for full-view from the pagename the code is used in.
This will take the last part of the pagename when the name-space has subpages enabled.
You can leave this empty when your subject won't have fullview images to use. - RequiresTech - List the technologies that are needed to craft/build this Item/Structure.
This can accept multiple entries, separated by a comma, when multiple. - RequiresObj - List the objects required to craft/build this Item/Structure.
This can accept multiple entries, separated by a comma, when multiple.
The entries are composed like a Record in the form of “name;amount;heading”, the last part “;heading” can be left away when not used/needed, but is very useful to group requirements for certain parts or purposes. - RepairedWith - List objects used in repairing when this Item/Structure can be repaired.
This can accept multiple entries, separated by a comma, when multiple.
The entries are composed like a Record in the form of “name;amount;heading”, the last part “;heading” can be left away when not used/needed, but is very useful to group requirements for certain parts or purposes.
The value in “amount” won't be shown and can be omitted (left empty). - Replace these values, or remove the parameters completely:
- IsLiftable - Use a Boolean value to indicate if this Item/Structure can be lifted using the
Lift action
Not needed when using IsLiftableWhenEmpty instead.
Not needed when not applicable. (in case of Items that only go in your characters inventory) - IsLiftableWhenEmpty - Use a Boolean “
true” value to indicate that this Item/Structure can be lifted when empty only, using the
Lift action.
Not needed in other cases.
- IsLiftable - Use a Boolean value to indicate if this Item/Structure can be lifted using the
- HP - Mention the amount of Hit Points this Item/Structure has.
This can hold only numeric values.
Use “0” when you don't know the amount but you know it has some.
This is still under development, and will get the possibility to record the min/max/avg amounts. - Soak - Mention the Soak amount this Item/Structure has.
This can hold only numeric values.
Use “0” when you don't know the amount but you know it has some.
Technology
Technology | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
“some words...” | |||||||||||||||||||||||||||||||||||
| Technology Required: | |||||||||||||||||||||||||||||||||||
| Technology Unlocked: | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
| Back to GameMenu | Technologies | |||||||||||||||||||||||||||||||||||
{{SetProp
|IsinGameMenu=Technologies
|Has icon=
|Caption=
|Has fullview={{SUBPAGENAME}}.png
|RequiresTech=
|UnlocksTech=
|arts=
|cloak=
|faith=
|frontier=
|hammer=
|hunting=
|law=
|mines=
|pots=
|sparks=
|stocks=
|sugar=
|thread=
|natural=
|perennial=
}}{{Infobox}}
==About==
Using the code shown might result in a page starting with an Infobox like on right-side.
Due to technical reasons the lead-in shown on right as example is incorrect, and will read “Required skill proficiency” on use in main namespace.
- IsinGameMenu - Don't replace the value for this, it selects the page as being part of
Technologies and thus mark it as being a Technology.
This will only accept valid values and will reject any unknown ones, see Property:IsinGameMenu for a list. - Has icon - Don't provide a value for this unless you want to explicitly set a value manually.
{{SetProp}} will automatically set a proper value by default. - Has fullview - The value shown is to automatically calculate the image to use for full-view from the pagename the code is used in.
This will take the last part of the pagename when the name-space has subpages enabled.
You can leave this empty when your subject won't have fullview images to use. - RequiresTech - List the technologies that are needed to unlock this Technology.
This can accept multiple entries, separated by a comma, when multiple. - UnlocksTech - List the technologies that are unlocked after you have learned this Technology.
This can accept multiple entries, separated by a comma, when multiple. - Proficiencies - Give the minimum proficiency-values, that are needed to be able to learn this Technology, for the respective Skills, while leaving unused ones empty.
These can hold only numeric values.
Use “0” when you don't know the amount but you know it has some.- 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
Datapages used
These are the pages used as data to display the infoboxes on this page, for reference and maintenance:
- Help:Infobox/testdata ⇐ an overview with all supported properties set to some value, used as test-data for development.
- Help:Infobox/Actions
- Help:Infobox/Creatures
- Help:Infobox/Food
- Help:Infobox/Inspirationals
- Help:Infobox/Items
- Help:Infobox/Structures
- Help:Infobox/Technology
