class WikidataPositionHistory::Check::WrongPredecessor
Does the 'replaces' match the previous item in the list?
Public Instance Methods
headline()
click to toggle source
# File lib/wikidata_position_history/checks.rb, line 99 def headline 'Inconsistent predecessor' end
possible_explanation()
click to toggle source
# File lib/wikidata_position_history/checks.rb, line 103 def possible_explanation "#{current.officeholder.qlink} has a {{P|1365}} of #{predecessor_qlink}, but follows #{earlier.officeholder.qlink} here" end
problem?()
click to toggle source
# File lib/wikidata_position_history/checks.rb, line 95 def problem? earlier_holder? && !!predecessor_qlink && (earlier.officeholder.qlink != predecessor_qlink) end