name
refer to the name of the infobox which will be used in the infobox caption. This property does not need to be defined in the templatetext
(the default type for an infobox property), then the value will be used directly. For example:
<property key="prop1" value="my value" />
url
, then the value must refer to an external link. For example:
<property key="prop3" value="http://docs.oracle.com/javase/8/docs/api/index.html" />
url
, then the value must to an image. For example:
<property key="prop4" value="image1" />
<infoboxDefinition id="infobox1"> <property key="prop1" desc="property 1" keyRef="article2" /> <property key="prop2" desc="property 2" /> <property key="prop3" desc="property 3" type="url" /> <property key="prop4" desc="property 4" type="image" /> </infoboxDefinition>If we have the following instance:
<article desc="article20"> <infobox id="infobox1"> <property key="name" value="the name" /> <property key="prop1" value="my value" /> <property key="prop2">The text</property> <property key="prop3" value="http://docs.oracle.com/javase/8/docs/api/index.html" /> <property key="prop4" value="image1" /> </infobox> a text. </article>The result will be:
<infoboxDefinition id="infobox1"> <property key="prop1" desc="property 1" keyRef="article2" /> <enumProperty key="prop2" desc="property 2"> <state value="one" desc="the first value" /> <state value="two" desc="the second value" /> </enumProperty> </infoboxDefinition>We can have the following instance:
<article desc="article20"> <infobox id="infobox1"> <property key="name" value="the name" /> <property key="prop1" value="my value" /> <property key="prop2" value="one"</property> </infobox> a text. </article>
<infoboxDefinition id="infobox1"> <property key="prop1" desc="property 1" keyRef="article2" defaultState="two" /> <enumProperty key="prop2" desc="property 2"> <state value="one" desc="the first value" /> <state value="two" desc="the second value" /> </enumProperty> </infoboxDefinition>If we have the following instance:
<article desc="article20"> <infobox id="infobox1"> <property key="name" value="the name" /> <property key="prop1" value="my value" /> </infobox> a text. </article>The result will be equivalent to:
<article desc="article20"> <infobox id="infobox1"> <property key="name" value="the name" /> <property key="prop1" value="my value" /> <property key="prop2" value="two"</property> </infobox> a text. </article>
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.