/* * [FeedbackEnvirHead.java] * * Summary: Produce the header for feedback about one of the environment essays. * * Copyright: (c) 2009-2017 Roedy Green, Canadian Mind Products, http://mindprod.com * * Licence: This software may be copied and used freely for any purpose but military. * http://mindprod.com/contact/nonmil.html * * Requires: JDK 1.8+ * * Created with: JetBrains IntelliJ IDEA IDE http://www.jetbrains.com/idea/ * * Version History: * 1.8 2009-02-06 include go package in ZIP bundle. */ package com.mindprod.htmlmacros.macro; import static java.lang.System.*; /** * Produce the header for feedback about one of the environment essays. * * @author Roedy Green, Canadian Mind Products * @version 1.8 2009-02-06 include go package in ZIP bundle. * @since 2009 */ public final class FeedbackEnvirHead extends FeedbackSubSectionHead { /** * how to use the macro */ private static final String USAGE = "\nFeedbackEnvirHead macro needs just a title."; /** * Generate the header for feedback about one of the peace and war essays * * @param parms parameters from macro command line. parms[0] = title description of fragment. * @param quiet true if want output suppressed. * @param verbose @return expanded macro HTML */ public String expandMacro( String[] parms, final boolean quiet, final boolean verbose ) { if ( !quiet ) { out.print( "P" ); } if ( parms.length != 1 ) { throw new IllegalArgumentException( USAGE ); } // unqualified e.g. bio.html final String title = parms[ 0 ]; final String keywords = "environment, Roedy Green, Canadian Mind Products, feedback"; final String subSectionFile = "feedback/environment/environment.html"; final String subSectionTitle = "feedback about the environment essays"; return super.expand( keywords, subSectionFile, subSectionTitle, title, "icon64/environment.png" ); } }