Module:WikidataIB/doc: Difference between revisions

Content deleted Content added
Parameters to getValue: clarify, as this tripped me up (it'd be better if the parameter were just "icon" to avoid the double negative)
Helper templates: typo: Wiki-markup > wiki markup, see wikt:wiki markup
Line 662:
; [[Template:If then wikilink]] : tests whether the first unnamed parameter is not an empty string and if it isn't, it returns the parameter formatted as piped wiki-link using an optional namespace prefix.
; [[Template:Formatter link]] : takes an external identifier code as {{para|code}} and uses a formatter url as {{para|url}} to construct a link to the external resource, which uses the code as display.
; [[Template:Emptyor]] : tests a piece of text to ascertain whether it's effectively empty or contains some text. If the unnamed parameter consists only of html tags, punctuation (e.g. Wiki-wiki markup) and whitespace, then Emptyor returns nothing; otherwise it returns the parameter unchanged. Wrapper for p.emptyor function.
 
== Example of use: Infobox book ==