Wikidata now has a property for organisations' Scottish Charity numbers:
https://www.wikidata.org/wiki/Property:P3163
Only a small number have been imported from Wikipedia, because the corresponding template:
https://en.wikipedia.org/wiki/Template:Scottish_charity
is not well used.
For English and Welsh charity numbers, another property is already available;
https://www.wikidata.org/wiki/Property:P3057
in turn used by
https://en.wikipedia.org/wiki/Template:EW_charity
Both templates now call data from Wikidata, so once a value is added to the latter, it can be removed from the templates in Wikipedia, like this;
https://en.wikipedia.org/w/index.php?title=Wildfowl_%26_Wetlands_Trust&d...
You can help by adding the templates to articles (converting existing links if necessary) and/ or migrating the numbers to Wikidata.