Template talk:SharedData Fish

From Ring of Brodgar
Jump to navigation Jump to search

Extended product details

Added a bunch more info into this page. I'm wondering if it's possible to display only the FEP data that has a value with it, and display it in a regular text format. --Ricky (talk) 06:56, 21 March 2020 (EDT)

Looks awful with those tables. Asking questions like that should, in my view, be done before fully implementing something like that in an actively used SharedData template. But speed seems to have been the higher propriety here. The answers to your questions are of course yes and yes.
Thinking of splitting off this particular part into a separate wip-template until it looks better.
--.MvGulik. 09:06, 21 March 2020 (EDT)
(still crap) Definitely going to split it off ... just lack the motivation to look into that at the moment. --.MvGulik. 15:37, 21 March 2020 (EDT)


Did my best to clean up the formatting so it was a little more readable -- basically the headers were centered, adding extra whitespace on the second row. Left aligning fixes that. Unfortunately the way I had to do it makes the source tables harder to read, but basically I just added <div align="left"> before each attribute and nbsp after each +2. --Cerulean19 (talk) 08:52, 14 January 2023 (UTC)


Added some additional css classes to do the same job. In this case all those <div align="left">" cases 'could'(not directly needed though) be replaced by "class=h0l" in the SMW call. (note: just =h0l, not ="h0l"). Needles to say it would effect all column headers. See MediaWiki:Common.css for additional table related css classes. --.MvGulik. 12:49, 14 January 2023 (UTC)
Great, done! --Cerulean19 (talk) 21:23, 14 January 2023 (UTC)


Okay, I did some more serious fiddling, I was wondering about a structure similar to this, so we get FEP comparisons side by side but also the zeros grayed out. I just filled in INT and PER+2 with queried data to make sure it works (and zeros are grayed out). Obviously the hardcoded "Cod" references would be references to the pagename like they currently are. Anyway, I'm not super familiar with wiki stuff so just piggybacking on the templates that already exist.

Roast Filet of Cod Dried Filet of Cod Spitroast Filet of Cod
FEPs +1 +2 Sum%
STR 0 0 0%
AGI 0 0 0%
INT 2 0 100%
CON 0 0 0%
PER 0 0 0%
CHA 0 0 0%
DEX 0 0 0%
WIL 0 0 0%
PSY 0 0 0%
Sum 2 0 --
Hunger per FEP 0
FEP per Hunger N/A
FEPs +1 +2 Sum%
STR 0 0 0%
AGI 0 0 0%
INT 7.5 0 100%
CON 0 0 0%
PER 0 0 0%
CHA 0 0 0%
DEX 0 0 0%
WIL 0 0 0%
PSY 0 0 0%
Sum 7.5 0 --
Hunger per FEP 0
FEP per Hunger N/A
FEPs +1 +2 Sum%
STR 0 0 0%
AGI 0 0 0%
INT 3 0 100%
CON 0 0 0%
PER 0 0 0%
CHA 0 0 0%
DEX 0 0 0%
WIL 0 0 0%
PSY 0 0 0%
Sum 3 0 --
Hunger per FEP 0
FEP per Hunger N/A
Although using the same FEP tables that are used in the related cooked-fish pages for this shared-data template seems a bit overkill. On the other hand. They are definitely more appealing and easier to read. So yea, that looks like a good alternative to the current shared-fish-data tables. --.MvGulik. 10:25, 15 January 2023 (UTC)
Implement infobox style FEP-data tables. Yea, much better. :) --.MvGulik. 19:48, 15 January 2023 (UTC)