% The only example that warns on purpose, four times over, about dates. A citation
% of legislation is a citation of a version of it, so this bundle does not let a
% document leave unsaid as of when it speaks, and says so when the document outruns
% the data of a source.
\IfDocumentMetadataTF{}{\DocumentMetadata{}}
\documentclass[12pt,dutch]{article}
\usepackage{babel}
\usepackage{regulatory}

\newcommand\translation[2]{#2}

\hypersetup{pdftitle={Voorbeeld Datums}}

\loadsources{sources}

% Three sources about the same field. The first does not say when it was checked
% and can therefore never be reported out of date: that is said. The second says as
% much in so many words, and that is a decision, so there it stays silent. The
% third writes a date in another shape, which compares wrongly rather than not
% comparing at all.
\newsource{zonder}{regeling}{%
    citeertitel = Wet zonder datum, afkorting = Wzd, lidwoord = de%
}
\newsource{onbekeken}{regeling}{%
    citeertitel = Wet niet nagelopen, afkorting = Wnn, lidwoord = de,
    geldig = unverified%
}
\newsource{scheef}{regeling}{%
    citeertitel = Wet met een scheve datum, afkorting = Wsd, lidwoord = de,
    geldig = 1 januari 2024%
}

\begin{document}
    \begin{center}
        \Huge Voorbeeld Datums
    \end{center}

    \article{Datums}\label{art:datums}
    \begin{paras}
        % No \sourcedate and no date=: the bundle says once that this document
        % does not say as of when it speaks.
        \item Zonder datum: \srcref[artikel=96]{bw6}.
        % The source was checked on 2024-01-01 and this speaks as of 2026-01-01,
        % so whatever changed between the two is not in this citation.
        \item Met een latere datum: \srcref[artikel=96, date=2026-01-01]{bw6}.
        % The same source once more: the report comes once per source.
        \item Nog eens: \srcref[artikel=97, date=2026-01-01]{bw6}.
    \end{paras}
\end{document}
