User:Dovid/Sandbox

Sample Infobox member of the Knesset - for use with template changes proposed. These changes are to exclude (current in bold) where it is not appropriate

The infobox to the right shows the current template in use

The three side-by-side below use my modified template. Of those three
 * the one on the left has a date of death (same would occur if it had a place of death or both date and place)
 * the one in the middle has no date or place of death
 * the one on the right uses a new parameter

The basic idea: There is text next to Ministerial posts that says (current in bold) However, frequently there is no current post, i.e., no bolded items. The temaplte can't easily parse out whether there are bold entries... I suppose a complex string parse formula could search for and only show the text if that's present, but that's complicated, and subject to missing a use case. Instead, I'm doing two things:
 * if there is a date of death listed, don't put in the message
 * if there is a place of death listed, don't put in the message
 * even if there is no date/place of death, allow a new parameter to exclude the message; the new parameter is out with a default value of no. If the value is yes, then the message is excluded. This is for a living person who does not have a current post (and therefore no bolded items should be present)

The logic is essentially:

If date of death is blank Then If place of death is blank Then If out=no Then display message

Any value but NO skips the message. By leaving the value out, it takes on its default value of NO, leaving the message in.

I haven't written it yet, so let's see if the idea pans out

The following are based on the new test template at User:Dovid/Sandbox/IMOK