X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/f398ad035b973608d380c9939ea845d8e2a0cdc2..6d7848829174f0d472d508e75c4f5d9b8af69d13:/doc/plugins/contrib/getfield.mdwn diff --git a/doc/plugins/contrib/getfield.mdwn b/doc/plugins/contrib/getfield.mdwn index 0a92894f1..61e80c58a 100644 --- a/doc/plugins/contrib/getfield.mdwn +++ b/doc/plugins/contrib/getfield.mdwn @@ -26,7 +26,7 @@ One can get the value of a field by using special markup in the page. This does not use directive markup, in order to make it easier to use the markup inside other directives. There are four forms: -* {{$*fieldname*}} +* \{{$*fieldname*}} This queries the value of *fieldname* for the source page. @@ -39,7 +39,7 @@ use the markup inside other directives. There are four forms:

My Long and Complicated Title With Potential For Spelling Mistakes

-* {{$*pagename*#*fieldname*}} +* \{{$*pagename*#*fieldname*}} This queries the value of *fieldname* for the page *pagename*. @@ -53,13 +53,13 @@ use the markup inside other directives. There are four forms: On PageBar: - For more info, see \[[{{$PageFoo#title}}|PageFoo]]. + For more info, see \[[\{{$PageFoo#title}}|PageFoo]]. When PageBar is displayed: <p>For more info, see <a href="PageFoo">I Am Page Foo</a>.</p> -* {{+$*fieldname*+}} +* \{{+$*fieldname*+}} This queries the value of *fieldname* for the destination page; that is, the value when this page is included inside another page. @@ -88,16 +88,22 @@ use the markup inside other directives. There are four forms:

I Am Page B

Stuff about A.

-* {{+$*pagename*#*fieldname*+}} +* \{{+$*pagename*#*fieldname*+}} This queries the value of *fieldname* for the page *pagename*; the - only difference between this and {{$*pagename*#*fieldname*}} is + only difference between this and \{{$*pagename*#*fieldname*}} is that the full name of *pagename* is calculated relative to the destination page rather than the source page. I can't really think of a reason why this should be needed, but this format has been added for completeness. +### Escaping + +Getfield markup can be escaped by putting a backwards slash `\` +in front of the markup. +If that is done, then the markup is displayed as-is. + ### No Value Found If no value is found for the given field, then the field name is returned.