Pottery Record View Template
Page layout for Pottery records

04 October 2026 - 14:16 | Version 13 |


INCLUDE - ClassifiedTopicViewTemplate

%TMPL:INCLUDE{"Applications/ClassificationApp.ClassifiedTopicView"}%


DEF - text

%TMPL:DEF{"text"}%%IF{
   "'%TOPIC%'/attachments"
   else="$percntUSERACTIONS{format=\"$attach\" unique=\"off\"}$percnt"
}%%IMAGEGALLERY{warn="off"
  format="$percntIMAGE{\"$name\" "
                  +"topic=\"$web.$topic\" type=\"plain\" size=\"200\" title=\"$formfield(TopicTitle)\" "
                  +"tooltip=\"$web.$topic\" href=\"\" titles=\"off\" defaultimage=\"true\" tooltip=\"on\" "
                  +"tooltipheight=\"500\" crop=\"on\" "
               +"}$percnt"
}%
%SET{"GW"
   value="%FORMFIELD{"GreenWidth" topic="%BASEWEB%.%BASETOPIC%" default="nada"}%"
}%%SET{"GH"
   value="%FORMFIELD{"GreenHeight" topic="%BASEWEB%.%BASETOPIC%" default="nada"}%"
}%%SET{"BDW"
   value="%FORMFIELD{"BoneDryWidth" topic="%BASEWEB%.%BASETOPIC%" default="nada"}%"
}%%SET{"BDH"
   value="%FORMFIELD{"BoneDryHeight" topic="%BASEWEB%.%BASETOPIC%" default="nada"}%"
}%%SET{"BW"
   value="%FORMFIELD{"BisqueWidth" topic="%BASEWEB%.%BASETOPIC%" default="nada"}%"
}%%SET{"BH"
   value="%FORMFIELD{"BisqueHeight" topic="%BASEWEB%.%BASETOPIC%" default="nada"}%"
}%%SET{"FW"
   value="%FORMFIELD{"FinishedWidth" topic="%BASEWEB%.%BASETOPIC%" default="nada"}%"
}%%SET{"FH"
   value="%FORMFIELD{"FinishedHeight" topic="%BASEWEB%.%BASETOPIC%" default="nada"}%"
}%

<div class='foswikiRight' style='margin:1em;position:relative;top:1.5em;'> *My Rating: %INCLUDE{"Applications/LocalApps/PotteryRating" section="rating"}%* <br />
*Overall Rating: %INCLUDE{"Applications/LocalApps/PotteryRating" section="rating" WHO="%WIKIUSERNAME%"}%* <br />
%NEWMETADATA{"PotteryRating"
   topic="%BASEWEB%.%BASETOPIC%"
   buttontitle="Rate This Piece"
   icon="fa-thumbs-up"
   title="Rate this Pottery Piece"
}%
</div>

%RENDERFORDISPLAY{"%TOPIC%"   
   fields="Series,ClayBody,Glaze,GlazeInside,Weight,Status,GreenWidth,GreenHeight,"
      +"BoneDryWidth,BoneDryHeight,BisqueWidth,BisqueHeight,FinishedWidth,FinishedHeight"
   autolink="on"
   hideempty="on"
   GlazeInside_title="Inside"
   Glaze_title="Outside"
   editable="on"
   BoneDryWidth_format="<tr><th class='foswikiTableFirstCol'> $title: </th><td class='foswikiFormValue'>$value "
         +"$percntIF{\"'%GW%'!='nada'\" "
            +"then=\"(-$dollarpercntCALC{\\"$FORMAT(PERCENT, 1, $EVAL((%GW% - $value) / %GW%))\\"}$dollarpercnt)\""
         +"}$percnt</td></tr>"
   BoneDryHeight_format="<tr><th class='foswikiTableFirstCol'> $title: </th><td class='foswikiFormValue'>$value "
         +"$percntIF{\"'%GH%'!='nada'\" "
            +"then=\"(-$dollarpercntCALC{\\"$FORMAT(PERCENT, 1, $EVAL((%GH% - $value) / %GH%))\\"}$dollarpercnt)\""
         +"}$percnt</td></tr>"
   BisqueWidth_format="<tr><th class='foswikiTableFirstCol'> $title: </th><td class='foswikiFormValue'>$value "
         +"$percntIF{\"'%BDW%'!='nada'\" "
            +"then=\"/-$dollarpercntCALCULATE{\\"$FORMAT(PERCENT, 1, $EVAL((%BDW% - $value) / %BDW%))\\"}$dollarpercnt\" "
         +"}$percnt"
         +"$percntIF{\"'%GW%'!='nada'\" "
            +"then=\"/-$dollarpercntCALC{\\"$FORMAT(PERCENT, 1, $EVAL((%GW% - $value) / %GW%))\\"}$dollarpercnt\" "
         +"}$percnt</td></tr>"
   BisqueHeight_format="<tr><th class='foswikiTableFirstCol'> $title: </th><td class='foswikiFormValue'>$value "
      +"$percntIF{\"'%BDH%'!='nada'\" "
         +"then=\"/-$dollarpercntCALCULATE{\\"$FORMAT(PERCENT, 1, $EVAL((%BDH% - $value) / %BDH%))\\"}$dollarpercnt\" "
      +"}$percnt"
      +"$percntIF{\"'%GH%'!='nada'\" "
         +"then=\"/-$dollarpercntCALC{\\"$FORMAT(PERCENT, 1, $EVAL((%GH% - $value) / %GW%))\\"}$dollarpercnt\""
      +"}$percnt</td></tr>"
   FinishedWidth_format="<tr><th class='foswikiTableFirstCol'> $title: </th><td class='foswikiFormValue'>$value "
         +"$percntIF{\"'%BH%'!='nada'\" "
            +"then=\"/-$dollarpercntCALCULATE{\\"$FORMAT(PERCENT, 1, $EVAL((%BW% - $value) / %BW%))\\"}$dollarpercnt\" "
         +"}$percnt"
         +"$percntIF{\"'%GW%'!='nada'\" "
            +"then=\"/-$dollarpercntCALC{\\"$FORMAT(PERCENT, 1, $EVAL((%GW% - $value) / %GW%))\\"}$dollarpercnt\" "
         +"}$percnt</td></tr>"
   FinishedHeight_format="<tr><th class='foswikiTableFirstCol'> $title: </th><td class='foswikiFormValue'>$value "
         +"$percntIF{\"'%BH%'!='nada'\" "
            +"then=\"/-$dollarpercntCALCULATE{\\"$FORMAT(PERCENT, 1, $EVAL((%BH% - $value) / %BH%))\\"}$dollarpercnt\" "
         +"}$percnt"
         +"$percntIF{\"'%GH%'!='nada'\" "
            +"then=\"/-$dollarpercntCALC{\\"$FORMAT(PERCENT, 1, $EVAL((%GH% - $value) / %GW%))\\"}$dollarpercnt\""
         +"}$percnt</td></tr>"
}%

%CLEAR%
%TEXT%

%TWISTY{
    link="%BUTTON{
    "See Rating Details"
    icon="fa-plus"
  }%%CLEAR%"
  mode="div"
}%
<noautolink><div style='overflow-x:scroll'>
%RENDERMETADATA{
  "PotteryRating" 
  topic="%BASEWEB%.%BASETOPIC%"
  fields="Who, Form, Trimming, Glazing, Surface, Execution, Concept, Comment"
  header="<div class='metaDataView timeTrackerView'>$n| *Who* | *Form* | *Trimming* | *Glazing* | *Surface* | *Execution* | *Concept*| *Overall Rating*| *Comments* |$n"
  format="|  $Who  |  $Form  |  $Trimming  |  $Glazing  |  $Surface  |  $Execution  |  $Concept  |  $percntTMPL:P{\"rate_avg\"}$percnt$actions  | $Comment  |$n"
  footer="|   *Averages:* |  $percntTMPL:P{\"sumabove\"}$percnt  |  $percntTMPL:P{\"sumabove\"}$percnt  |   $percntTMPL:P{\"sumabove\"}$percnt  |"
        +"  $percntTMPL:P{\"sumabove\"}$percnt  |  $percntTMPL:P{\"sumabove\"}$percnt  |  $percntTMPL:P{\"sumabove\"}$percnt  |"
        +"  $percntTMPL:P{\"sumabove\"}$percnt  |  |$n</div>"
}%
</div></noautolink>
%ENDTWISTY%
%TMPL:END%


DEF - rate_avg

%TMPL:DEF{"rate_avg"}%%CALC{"$FORMAT(NUMBER, 1, $AVERAGE($LEFT()))"}%%TMPL:END%

DEF - sumabove

%TMPL:DEF{"sumabove"}%%CALC{"$FORMAT(NUMBER, 1, $AVERAGE($ABOVE()))"}%%TMPL:END%
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Middle Fork Home Wiki? Send feedback
Syndicate this site RSS